odoo-addon-l10n-br-fiscal 16.0.2.9.0__py3-none-any.whl → 16.0.2.11.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of odoo-addon-l10n-br-fiscal might be problematic. Click here for more details.
- odoo/addons/l10n_br_fiscal/README.rst +1 -1
- odoo/addons/l10n_br_fiscal/__manifest__.py +1 -1
- odoo/addons/l10n_br_fiscal/models/document.py +2 -2
- odoo/addons/l10n_br_fiscal/models/document_line_mixin.py +9 -9
- odoo/addons/l10n_br_fiscal/models/document_line_mixin_methods.py +10 -8
- odoo/addons/l10n_br_fiscal/models/document_mixin_fields.py +56 -56
- odoo/addons/l10n_br_fiscal/models/document_mixin_methods.py +1 -1
- odoo/addons/l10n_br_fiscal/models/tax.py +8 -12
- odoo/addons/l10n_br_fiscal/static/description/index.html +1 -1
- {odoo_addon_l10n_br_fiscal-16.0.2.9.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.11.0.dist-info}/METADATA +2 -2
- {odoo_addon_l10n_br_fiscal-16.0.2.9.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.11.0.dist-info}/RECORD +13 -13
- {odoo_addon_l10n_br_fiscal-16.0.2.9.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.11.0.dist-info}/WHEEL +0 -0
- {odoo_addon_l10n_br_fiscal-16.0.2.9.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.11.0.dist-info}/top_level.txt +0 -0
|
@@ -7,7 +7,7 @@ Módulo fiscal brasileiro
|
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
|
8
8
|
!! changes will be overwritten. !!
|
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
-
!! source digest: sha256:
|
|
10
|
+
!! source digest: sha256:d5efcb2fb28c72fece973e2e339e006b1204cbe321f855bccc13e9e1d2aec226
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
|
@@ -350,8 +350,8 @@ class Document(models.Model):
|
|
|
350
350
|
"fiscal_line_ids.amount_tax_not_included",
|
|
351
351
|
"fiscal_line_ids.amount_tax_withholding",
|
|
352
352
|
)
|
|
353
|
-
def
|
|
354
|
-
return super().
|
|
353
|
+
def _compute_fiscal_amount(self):
|
|
354
|
+
return super()._compute_fiscal_amount()
|
|
355
355
|
|
|
356
356
|
@api.model_create_multi
|
|
357
357
|
def create(self, vals_list):
|
|
@@ -192,7 +192,7 @@ class FiscalDocumentLineMixin(models.AbstractModel):
|
|
|
192
192
|
)
|
|
193
193
|
|
|
194
194
|
amount_fiscal = fields.Monetary(
|
|
195
|
-
compute="
|
|
195
|
+
compute="_compute_fiscal_amounts",
|
|
196
196
|
)
|
|
197
197
|
|
|
198
198
|
price_gross = fields.Monetary(
|
|
@@ -201,38 +201,38 @@ class FiscalDocumentLineMixin(models.AbstractModel):
|
|
|
201
201
|
"Total value of products or services (quantity x unit price)"
|
|
202
202
|
"before any discounts."
|
|
203
203
|
),
|
|
204
|
-
compute="
|
|
204
|
+
compute="_compute_fiscal_amounts",
|
|
205
205
|
)
|
|
206
206
|
|
|
207
207
|
amount_untaxed = fields.Monetary(
|
|
208
|
-
compute="
|
|
208
|
+
compute="_compute_fiscal_amounts",
|
|
209
209
|
)
|
|
210
210
|
|
|
211
211
|
amount_tax = fields.Monetary(
|
|
212
|
-
compute="
|
|
212
|
+
compute="_compute_fiscal_amounts",
|
|
213
213
|
)
|
|
214
214
|
|
|
215
215
|
amount_taxed = fields.Monetary(
|
|
216
|
-
compute="
|
|
216
|
+
compute="_compute_fiscal_amounts",
|
|
217
217
|
)
|
|
218
218
|
|
|
219
219
|
amount_total = fields.Monetary(
|
|
220
|
-
compute="
|
|
220
|
+
compute="_compute_fiscal_amounts",
|
|
221
221
|
)
|
|
222
222
|
|
|
223
223
|
financial_total = fields.Monetary(
|
|
224
224
|
string="Amount Financial",
|
|
225
|
-
compute="
|
|
225
|
+
compute="_compute_fiscal_amounts",
|
|
226
226
|
)
|
|
227
227
|
|
|
228
228
|
financial_total_gross = fields.Monetary(
|
|
229
229
|
string="Financial Gross Amount",
|
|
230
230
|
help="Total amount before any discounts are applied.",
|
|
231
|
-
compute="
|
|
231
|
+
compute="_compute_fiscal_amounts",
|
|
232
232
|
)
|
|
233
233
|
|
|
234
234
|
financial_discount_value = fields.Monetary(
|
|
235
|
-
compute="
|
|
235
|
+
compute="_compute_fiscal_amounts",
|
|
236
236
|
)
|
|
237
237
|
|
|
238
238
|
amount_tax_included = fields.Monetary()
|
|
@@ -127,27 +127,29 @@ class FiscalDocumentLineMixinMethods(models.AbstractModel):
|
|
|
127
127
|
"company_id",
|
|
128
128
|
"price_unit",
|
|
129
129
|
"quantity",
|
|
130
|
+
"icms_relief_id",
|
|
131
|
+
"fiscal_operation_line_id",
|
|
130
132
|
)
|
|
131
|
-
def
|
|
133
|
+
def _compute_fiscal_amounts(self):
|
|
132
134
|
for record in self:
|
|
133
135
|
round_curr = record.currency_id or self.env.ref("base.BRL")
|
|
134
136
|
|
|
135
137
|
# Total value of products or services
|
|
136
138
|
record.price_gross = round_curr.round(record.price_unit * record.quantity)
|
|
137
|
-
|
|
138
|
-
record.amount_untaxed = record.price_gross - record.discount_value
|
|
139
|
-
|
|
140
139
|
record.amount_fiscal = record.price_gross - record.discount_value
|
|
141
|
-
|
|
142
140
|
record.amount_tax = record.amount_tax_not_included
|
|
143
141
|
|
|
144
142
|
add_to_amount = sum(record[a] for a in record._add_fields_to_amount())
|
|
145
143
|
rm_to_amount = sum(record[r] for r in record._rm_fields_to_amount())
|
|
144
|
+
record.amount_untaxed = (
|
|
145
|
+
record.price_gross
|
|
146
|
+
- record.discount_value
|
|
147
|
+
+ add_to_amount
|
|
148
|
+
- rm_to_amount
|
|
149
|
+
)
|
|
146
150
|
|
|
147
151
|
# Valor do documento (NF)
|
|
148
|
-
record.amount_total =
|
|
149
|
-
record.amount_untaxed + record.amount_tax + add_to_amount - rm_to_amount
|
|
150
|
-
)
|
|
152
|
+
record.amount_total = record.amount_untaxed + record.amount_tax
|
|
151
153
|
|
|
152
154
|
# Valor Liquido (TOTAL + IMPOSTOS - RETENÇÕES)
|
|
153
155
|
record.amount_taxed = record.amount_total - record.amount_tax_withholding
|
|
@@ -99,337 +99,337 @@ class FiscalDocumentMixinFields(models.AbstractModel):
|
|
|
99
99
|
)
|
|
100
100
|
|
|
101
101
|
amount_price_gross = fields.Monetary(
|
|
102
|
-
compute="
|
|
102
|
+
compute="_compute_fiscal_amount",
|
|
103
103
|
store=True,
|
|
104
104
|
string="Amount Gross",
|
|
105
105
|
help="Amount without discount.",
|
|
106
106
|
)
|
|
107
107
|
|
|
108
108
|
amount_untaxed = fields.Monetary(
|
|
109
|
-
compute="
|
|
109
|
+
compute="_compute_fiscal_amount",
|
|
110
110
|
store=True,
|
|
111
111
|
)
|
|
112
112
|
|
|
113
113
|
amount_icms_base = fields.Monetary(
|
|
114
114
|
string="ICMS Base",
|
|
115
|
-
compute="
|
|
115
|
+
compute="_compute_fiscal_amount",
|
|
116
116
|
store=True,
|
|
117
117
|
)
|
|
118
118
|
|
|
119
119
|
amount_icms_value = fields.Monetary(
|
|
120
120
|
string="ICMS Value",
|
|
121
|
-
compute="
|
|
121
|
+
compute="_compute_fiscal_amount",
|
|
122
122
|
store=True,
|
|
123
123
|
)
|
|
124
124
|
|
|
125
125
|
amount_icmsst_base = fields.Monetary(
|
|
126
126
|
string="ICMS ST Base",
|
|
127
|
-
compute="
|
|
127
|
+
compute="_compute_fiscal_amount",
|
|
128
128
|
store=True,
|
|
129
129
|
)
|
|
130
130
|
|
|
131
131
|
amount_icmsst_value = fields.Monetary(
|
|
132
132
|
string="ICMS ST Value",
|
|
133
|
-
compute="
|
|
133
|
+
compute="_compute_fiscal_amount",
|
|
134
134
|
store=True,
|
|
135
135
|
)
|
|
136
136
|
|
|
137
137
|
amount_icmssn_credit_value = fields.Monetary(
|
|
138
138
|
string="ICMSSN Credit Value",
|
|
139
|
-
compute="
|
|
139
|
+
compute="_compute_fiscal_amount",
|
|
140
140
|
store=True,
|
|
141
141
|
)
|
|
142
142
|
|
|
143
143
|
amount_icmsfcp_base = fields.Monetary(
|
|
144
144
|
string="ICMS FCP Base",
|
|
145
|
-
compute="
|
|
145
|
+
compute="_compute_fiscal_amount",
|
|
146
146
|
store=True,
|
|
147
147
|
)
|
|
148
148
|
|
|
149
149
|
amount_icmsfcp_value = fields.Monetary(
|
|
150
150
|
string="ICMS FCP Value",
|
|
151
|
-
compute="
|
|
151
|
+
compute="_compute_fiscal_amount",
|
|
152
152
|
store=True,
|
|
153
153
|
)
|
|
154
154
|
|
|
155
155
|
amount_icmsfcpst_value = fields.Monetary(
|
|
156
156
|
string="ICMS FCP ST Value",
|
|
157
|
-
compute="
|
|
157
|
+
compute="_compute_fiscal_amount",
|
|
158
158
|
store=True,
|
|
159
159
|
)
|
|
160
160
|
|
|
161
161
|
amount_icms_destination_value = fields.Monetary(
|
|
162
162
|
string="ICMS Destination Value",
|
|
163
|
-
compute="
|
|
163
|
+
compute="_compute_fiscal_amount",
|
|
164
164
|
store=True,
|
|
165
165
|
)
|
|
166
166
|
|
|
167
167
|
amount_icms_origin_value = fields.Monetary(
|
|
168
168
|
string="ICMS Origin Value",
|
|
169
|
-
compute="
|
|
169
|
+
compute="_compute_fiscal_amount",
|
|
170
170
|
store=True,
|
|
171
171
|
)
|
|
172
172
|
|
|
173
173
|
amount_ipi_base = fields.Monetary(
|
|
174
174
|
string="IPI Base",
|
|
175
|
-
compute="
|
|
175
|
+
compute="_compute_fiscal_amount",
|
|
176
176
|
store=True,
|
|
177
177
|
)
|
|
178
178
|
|
|
179
179
|
amount_ipi_value = fields.Monetary(
|
|
180
180
|
string="IPI Value",
|
|
181
|
-
compute="
|
|
181
|
+
compute="_compute_fiscal_amount",
|
|
182
182
|
store=True,
|
|
183
183
|
)
|
|
184
184
|
|
|
185
185
|
amount_ii_base = fields.Monetary(
|
|
186
186
|
string="II Base",
|
|
187
|
-
compute="
|
|
187
|
+
compute="_compute_fiscal_amount",
|
|
188
188
|
store=True,
|
|
189
189
|
)
|
|
190
190
|
|
|
191
191
|
amount_ii_value = fields.Monetary(
|
|
192
192
|
string="II Value",
|
|
193
|
-
compute="
|
|
193
|
+
compute="_compute_fiscal_amount",
|
|
194
194
|
store=True,
|
|
195
195
|
)
|
|
196
196
|
|
|
197
197
|
amount_ii_customhouse_charges = fields.Monetary(
|
|
198
198
|
string="Customhouse Charges",
|
|
199
|
-
compute="
|
|
199
|
+
compute="_compute_fiscal_amount",
|
|
200
200
|
store=True,
|
|
201
201
|
)
|
|
202
202
|
|
|
203
203
|
amount_pis_base = fields.Monetary(
|
|
204
204
|
string="PIS Base",
|
|
205
|
-
compute="
|
|
205
|
+
compute="_compute_fiscal_amount",
|
|
206
206
|
store=True,
|
|
207
207
|
)
|
|
208
208
|
|
|
209
209
|
amount_pis_value = fields.Monetary(
|
|
210
210
|
string="PIS Value",
|
|
211
|
-
compute="
|
|
211
|
+
compute="_compute_fiscal_amount",
|
|
212
212
|
store=True,
|
|
213
213
|
)
|
|
214
214
|
|
|
215
215
|
amount_pisst_base = fields.Monetary(
|
|
216
216
|
string="PIS ST Base",
|
|
217
|
-
compute="
|
|
217
|
+
compute="_compute_fiscal_amount",
|
|
218
218
|
store=True,
|
|
219
219
|
)
|
|
220
220
|
|
|
221
221
|
amount_pisst_value = fields.Monetary(
|
|
222
222
|
string="PIS ST Value",
|
|
223
|
-
compute="
|
|
223
|
+
compute="_compute_fiscal_amount",
|
|
224
224
|
store=True,
|
|
225
225
|
)
|
|
226
226
|
|
|
227
227
|
amount_pis_wh_base = fields.Monetary(
|
|
228
228
|
string="PIS Ret Base",
|
|
229
|
-
compute="
|
|
229
|
+
compute="_compute_fiscal_amount",
|
|
230
230
|
store=True,
|
|
231
231
|
)
|
|
232
232
|
|
|
233
233
|
amount_pis_wh_value = fields.Monetary(
|
|
234
234
|
string="PIS Ret Value",
|
|
235
|
-
compute="
|
|
235
|
+
compute="_compute_fiscal_amount",
|
|
236
236
|
store=True,
|
|
237
237
|
)
|
|
238
238
|
|
|
239
239
|
amount_cofins_base = fields.Monetary(
|
|
240
240
|
string="COFINS Base",
|
|
241
|
-
compute="
|
|
241
|
+
compute="_compute_fiscal_amount",
|
|
242
242
|
store=True,
|
|
243
243
|
)
|
|
244
244
|
|
|
245
245
|
amount_cofins_value = fields.Monetary(
|
|
246
246
|
string="COFINS Value",
|
|
247
|
-
compute="
|
|
247
|
+
compute="_compute_fiscal_amount",
|
|
248
248
|
store=True,
|
|
249
249
|
)
|
|
250
250
|
|
|
251
251
|
amount_cofinsst_base = fields.Monetary(
|
|
252
252
|
string="COFINS ST Base",
|
|
253
|
-
compute="
|
|
253
|
+
compute="_compute_fiscal_amount",
|
|
254
254
|
store=True,
|
|
255
255
|
)
|
|
256
256
|
|
|
257
257
|
amount_cofinsst_value = fields.Monetary(
|
|
258
258
|
string="COFINS ST Value",
|
|
259
|
-
compute="
|
|
259
|
+
compute="_compute_fiscal_amount",
|
|
260
260
|
store=True,
|
|
261
261
|
)
|
|
262
262
|
|
|
263
263
|
amount_cofins_wh_base = fields.Monetary(
|
|
264
264
|
string="COFINS Ret Base",
|
|
265
|
-
compute="
|
|
265
|
+
compute="_compute_fiscal_amount",
|
|
266
266
|
store=True,
|
|
267
267
|
)
|
|
268
268
|
|
|
269
269
|
amount_cofins_wh_value = fields.Monetary(
|
|
270
270
|
string="COFINS Ret Value",
|
|
271
|
-
compute="
|
|
271
|
+
compute="_compute_fiscal_amount",
|
|
272
272
|
store=True,
|
|
273
273
|
)
|
|
274
274
|
|
|
275
275
|
amount_issqn_base = fields.Monetary(
|
|
276
276
|
string="ISSQN Base",
|
|
277
|
-
compute="
|
|
277
|
+
compute="_compute_fiscal_amount",
|
|
278
278
|
store=True,
|
|
279
279
|
)
|
|
280
280
|
|
|
281
281
|
amount_issqn_value = fields.Monetary(
|
|
282
282
|
string="ISSQN Value",
|
|
283
|
-
compute="
|
|
283
|
+
compute="_compute_fiscal_amount",
|
|
284
284
|
store=True,
|
|
285
285
|
)
|
|
286
286
|
|
|
287
287
|
amount_issqn_wh_base = fields.Monetary(
|
|
288
288
|
string="ISSQN Ret Base",
|
|
289
|
-
compute="
|
|
289
|
+
compute="_compute_fiscal_amount",
|
|
290
290
|
store=True,
|
|
291
291
|
)
|
|
292
292
|
|
|
293
293
|
amount_issqn_wh_value = fields.Monetary(
|
|
294
294
|
string="ISSQN Ret Value",
|
|
295
|
-
compute="
|
|
295
|
+
compute="_compute_fiscal_amount",
|
|
296
296
|
store=True,
|
|
297
297
|
)
|
|
298
298
|
|
|
299
299
|
amount_csll_base = fields.Monetary(
|
|
300
300
|
string="CSLL Base",
|
|
301
|
-
compute="
|
|
301
|
+
compute="_compute_fiscal_amount",
|
|
302
302
|
store=True,
|
|
303
303
|
)
|
|
304
304
|
|
|
305
305
|
amount_csll_value = fields.Monetary(
|
|
306
306
|
string="CSLL Value",
|
|
307
|
-
compute="
|
|
307
|
+
compute="_compute_fiscal_amount",
|
|
308
308
|
store=True,
|
|
309
309
|
)
|
|
310
310
|
|
|
311
311
|
amount_csll_wh_base = fields.Monetary(
|
|
312
312
|
string="CSLL Ret Base",
|
|
313
|
-
compute="
|
|
313
|
+
compute="_compute_fiscal_amount",
|
|
314
314
|
store=True,
|
|
315
315
|
)
|
|
316
316
|
|
|
317
317
|
amount_csll_wh_value = fields.Monetary(
|
|
318
318
|
string="CSLL Ret Value",
|
|
319
|
-
compute="
|
|
319
|
+
compute="_compute_fiscal_amount",
|
|
320
320
|
store=True,
|
|
321
321
|
)
|
|
322
322
|
|
|
323
323
|
amount_irpj_base = fields.Monetary(
|
|
324
324
|
string="IRPJ Base",
|
|
325
|
-
compute="
|
|
325
|
+
compute="_compute_fiscal_amount",
|
|
326
326
|
store=True,
|
|
327
327
|
)
|
|
328
328
|
|
|
329
329
|
amount_irpj_value = fields.Monetary(
|
|
330
330
|
string="IRPJ Value",
|
|
331
|
-
compute="
|
|
331
|
+
compute="_compute_fiscal_amount",
|
|
332
332
|
store=True,
|
|
333
333
|
)
|
|
334
334
|
|
|
335
335
|
amount_irpj_wh_base = fields.Monetary(
|
|
336
336
|
string="IRPJ Ret Base",
|
|
337
|
-
compute="
|
|
337
|
+
compute="_compute_fiscal_amount",
|
|
338
338
|
store=True,
|
|
339
339
|
)
|
|
340
340
|
|
|
341
341
|
amount_irpj_wh_value = fields.Monetary(
|
|
342
342
|
string="IRPJ Ret Value",
|
|
343
|
-
compute="
|
|
343
|
+
compute="_compute_fiscal_amount",
|
|
344
344
|
store=True,
|
|
345
345
|
)
|
|
346
346
|
|
|
347
347
|
amount_inss_base = fields.Monetary(
|
|
348
348
|
string="INSS Base",
|
|
349
|
-
compute="
|
|
349
|
+
compute="_compute_fiscal_amount",
|
|
350
350
|
store=True,
|
|
351
351
|
)
|
|
352
352
|
|
|
353
353
|
amount_inss_value = fields.Monetary(
|
|
354
354
|
string="INSS Value",
|
|
355
|
-
compute="
|
|
355
|
+
compute="_compute_fiscal_amount",
|
|
356
356
|
store=True,
|
|
357
357
|
)
|
|
358
358
|
|
|
359
359
|
amount_inss_wh_base = fields.Monetary(
|
|
360
360
|
string="INSS Ret Base",
|
|
361
|
-
compute="
|
|
361
|
+
compute="_compute_fiscal_amount",
|
|
362
362
|
store=True,
|
|
363
363
|
)
|
|
364
364
|
|
|
365
365
|
amount_inss_wh_value = fields.Monetary(
|
|
366
366
|
string="INSS Ret Value",
|
|
367
|
-
compute="
|
|
367
|
+
compute="_compute_fiscal_amount",
|
|
368
368
|
store=True,
|
|
369
369
|
)
|
|
370
370
|
|
|
371
371
|
amount_estimate_tax = fields.Monetary(
|
|
372
|
-
compute="
|
|
372
|
+
compute="_compute_fiscal_amount",
|
|
373
373
|
store=True,
|
|
374
374
|
)
|
|
375
375
|
|
|
376
376
|
amount_tax = fields.Monetary(
|
|
377
|
-
compute="
|
|
377
|
+
compute="_compute_fiscal_amount",
|
|
378
378
|
store=True,
|
|
379
379
|
)
|
|
380
380
|
|
|
381
381
|
amount_total = fields.Monetary(
|
|
382
|
-
compute="
|
|
382
|
+
compute="_compute_fiscal_amount",
|
|
383
383
|
store=True,
|
|
384
384
|
)
|
|
385
385
|
|
|
386
386
|
amount_tax_withholding = fields.Monetary(
|
|
387
387
|
string="Tax Withholding",
|
|
388
|
-
compute="
|
|
388
|
+
compute="_compute_fiscal_amount",
|
|
389
389
|
store=True,
|
|
390
390
|
)
|
|
391
391
|
|
|
392
392
|
amount_financial_total = fields.Monetary(
|
|
393
393
|
string="Amount Financial",
|
|
394
|
-
compute="
|
|
394
|
+
compute="_compute_fiscal_amount",
|
|
395
395
|
store=True,
|
|
396
396
|
)
|
|
397
397
|
|
|
398
398
|
amount_discount_value = fields.Monetary(
|
|
399
399
|
string="Amount Discount",
|
|
400
|
-
compute="
|
|
400
|
+
compute="_compute_fiscal_amount",
|
|
401
401
|
store=True,
|
|
402
402
|
)
|
|
403
403
|
|
|
404
404
|
amount_financial_total_gross = fields.Monetary(
|
|
405
405
|
string="Amount Financial Gross",
|
|
406
|
-
compute="
|
|
406
|
+
compute="_compute_fiscal_amount",
|
|
407
407
|
store=True,
|
|
408
408
|
)
|
|
409
409
|
|
|
410
410
|
amount_financial_discount_value = fields.Monetary(
|
|
411
411
|
string="Financial Discount Value",
|
|
412
|
-
compute="
|
|
412
|
+
compute="_compute_fiscal_amount",
|
|
413
413
|
store=True,
|
|
414
414
|
)
|
|
415
415
|
|
|
416
416
|
amount_insurance_value = fields.Monetary(
|
|
417
417
|
string="Insurance Value",
|
|
418
|
-
compute="
|
|
418
|
+
compute="_compute_fiscal_amount",
|
|
419
419
|
store=True,
|
|
420
420
|
inverse="_inverse_amount_insurance",
|
|
421
421
|
)
|
|
422
422
|
|
|
423
423
|
amount_other_value = fields.Monetary(
|
|
424
424
|
string="Other Costs",
|
|
425
|
-
compute="
|
|
425
|
+
compute="_compute_fiscal_amount",
|
|
426
426
|
store=True,
|
|
427
427
|
inverse="_inverse_amount_other",
|
|
428
428
|
)
|
|
429
429
|
|
|
430
430
|
amount_freight_value = fields.Monetary(
|
|
431
431
|
string="Freight Value",
|
|
432
|
-
compute="
|
|
432
|
+
compute="_compute_fiscal_amount",
|
|
433
433
|
store=True,
|
|
434
434
|
inverse="_inverse_amount_freight",
|
|
435
435
|
)
|
|
@@ -40,7 +40,7 @@ class FiscalDocumentMixinMethods(models.AbstractModel):
|
|
|
40
40
|
amount_fields = [f for f in fields if f.startswith("amount_")]
|
|
41
41
|
return amount_fields
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def _compute_fiscal_amount(self):
|
|
44
44
|
fields = self._get_amount_fields()
|
|
45
45
|
for doc in self:
|
|
46
46
|
values = {key: 0.0 for key in fields}
|
|
@@ -699,19 +699,15 @@ class Tax(models.Model):
|
|
|
699
699
|
except AttributeError:
|
|
700
700
|
taxes[tax.tax_domain].update(tax._compute_tax(tax, taxes, **kwargs))
|
|
701
701
|
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
702
|
+
tax_domain = taxes[tax.tax_domain]
|
|
703
|
+
tax_value = tax_domain.get("tax_value", 0.00)
|
|
704
|
+
if tax_domain["tax_withholding"]:
|
|
705
|
+
result_amounts["amount_withholding"] += tax_value
|
|
706
706
|
else:
|
|
707
|
-
|
|
708
|
-
"
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
if taxes[tax.tax_domain]["tax_withholding"]:
|
|
712
|
-
result_amounts["amount_withholding"] += taxes[tax.tax_domain].get(
|
|
713
|
-
"tax_value", 0.00
|
|
714
|
-
)
|
|
707
|
+
if tax_domain["tax_include"]:
|
|
708
|
+
result_amounts["amount_included"] += tax_value
|
|
709
|
+
else:
|
|
710
|
+
result_amounts["amount_not_included"] += tax_value
|
|
715
711
|
|
|
716
712
|
# Estimate taxes
|
|
717
713
|
result_amounts["estimate_tax"] = self._compute_estimate_taxes(**kwargs)
|
|
@@ -367,7 +367,7 @@ ul.auto-toc {
|
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
|
368
368
|
!! changes will be overwritten. !!
|
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
370
|
-
!! source digest: sha256:
|
|
370
|
+
!! source digest: sha256:d5efcb2fb28c72fece973e2e339e006b1204cbe321f855bccc13e9e1d2aec226
|
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
372
372
|
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_fiscal"><img alt="OCA/l10n-brazil" src="https://img.shields.io/badge/github-OCA%2Fl10n--brazil-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-brazil-16-0/l10n-brazil-16-0-l10n_br_fiscal"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-brazil&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
373
373
|
<p><img alt="image" src="https://raw.githubusercontent.com/OCA/l10n-brazil/16.0/l10n_br_fiscal/static/img/fiscal_dashboard.png" /></p>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-l10n_br_fiscal
|
|
3
|
-
Version: 16.0.2.
|
|
3
|
+
Version: 16.0.2.11.0
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: erpbrasil.base>=2.3.0
|
|
6
6
|
Requires-Dist: odoo-addon-l10n_br_base>=16.0dev,<16.1dev
|
|
@@ -25,7 +25,7 @@ Módulo fiscal brasileiro
|
|
|
25
25
|
!! This file is generated by oca-gen-addon-readme !!
|
|
26
26
|
!! changes will be overwritten. !!
|
|
27
27
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
28
|
-
!! source digest: sha256:
|
|
28
|
+
!! source digest: sha256:d5efcb2fb28c72fece973e2e339e006b1204cbe321f855bccc13e9e1d2aec226
|
|
29
29
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
30
30
|
|
|
31
31
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
odoo/addons/l10n_br_fiscal/README.rst,sha256
|
|
1
|
+
odoo/addons/l10n_br_fiscal/README.rst,sha256=89hzVok1gn_fj9Lr348aOENWYLlNbifqo9xSlwd8_LQ,13644
|
|
2
2
|
odoo/addons/l10n_br_fiscal/__init__.py,sha256=16Tdff74OkWmnKSfmV6qrNkgsK12gOtMMppwWmIAFIo,144
|
|
3
|
-
odoo/addons/l10n_br_fiscal/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/l10n_br_fiscal/__manifest__.py,sha256=RD0UJuOyEL22yyjwqpIIYpF-5oxUE6KvZJg-tGnG3VU,3714
|
|
4
4
|
odoo/addons/l10n_br_fiscal/hooks.py,sha256=cna_821w1vrwbfQd59YVY66cU9hhY0av2Zwzr5nHDVI,4825
|
|
5
5
|
odoo/addons/l10n_br_fiscal/tools.py,sha256=TP8pifcnvh51FM70KxMxpbuU01gAx1BFTbaRZAvqyB0,2484
|
|
6
6
|
odoo/addons/l10n_br_fiscal/constants/fiscal.py,sha256=ICWcrew-iUcWFgF4bLzdjUtbMdaejZ0AucwLFu5u1fo,14935
|
|
@@ -71,14 +71,14 @@ odoo/addons/l10n_br_fiscal/models/cst.py,sha256=sGLlTUJXutsS24UEvfanL-IogujAmS6p
|
|
|
71
71
|
odoo/addons/l10n_br_fiscal/models/data_abstract.py,sha256=OwFGbvuNV57APApmYf1jJ3H3-UlY2FHJDPNB2OwTmXc,3489
|
|
72
72
|
odoo/addons/l10n_br_fiscal/models/data_ncm_nbs_abstract.py,sha256=rHm2r3o0nwo3ZDOdrrTosU9Thzqt_D7SZWaxjgnR81I,6763
|
|
73
73
|
odoo/addons/l10n_br_fiscal/models/data_product_abstract.py,sha256=wbc3exJQp33aYK8IOJ490JvDWBPCpU0NEkMR6YjaLfQ,793
|
|
74
|
-
odoo/addons/l10n_br_fiscal/models/document.py,sha256=
|
|
74
|
+
odoo/addons/l10n_br_fiscal/models/document.py,sha256=lpbQGS6jVJe4yAyVvYNQus_BwRYjVrOhJHUBRi_vvdg,20334
|
|
75
75
|
odoo/addons/l10n_br_fiscal/models/document_email.py,sha256=ikGhCrTI18X01RszlCqO0tvhTOKr2d5KJLcj_QA1o_Y,2113
|
|
76
76
|
odoo/addons/l10n_br_fiscal/models/document_line.py,sha256=h2ouoAh_EyKJURbbqWpUV7JhjHEftYErqNnse--oVGU,1292
|
|
77
|
-
odoo/addons/l10n_br_fiscal/models/document_line_mixin.py,sha256=
|
|
78
|
-
odoo/addons/l10n_br_fiscal/models/document_line_mixin_methods.py,sha256=
|
|
77
|
+
odoo/addons/l10n_br_fiscal/models/document_line_mixin.py,sha256=Sd0cg0C9yxlaEQsVsDujbo8ypEc5if3mj-ki4cwHGJ4,26523
|
|
78
|
+
odoo/addons/l10n_br_fiscal/models/document_line_mixin_methods.py,sha256=b3WJhROs3379fMVDAZCH23tqOyXn2K6R54JhnKUknJs,33289
|
|
79
79
|
odoo/addons/l10n_br_fiscal/models/document_mixin.py,sha256=1Ep0ClxXpMTB_mzikF_3gdA3Nk6N2YxMR8yDq_QoOAg,282
|
|
80
|
-
odoo/addons/l10n_br_fiscal/models/document_mixin_fields.py,sha256=
|
|
81
|
-
odoo/addons/l10n_br_fiscal/models/document_mixin_methods.py,sha256=
|
|
80
|
+
odoo/addons/l10n_br_fiscal/models/document_mixin_fields.py,sha256=PhdQ-V6d15EResL71YrNbOHF0eI_RsZf8ivocpU-8Hk,11726
|
|
81
|
+
odoo/addons/l10n_br_fiscal/models/document_mixin_methods.py,sha256=kxnjTppKLhKH3h4npHy7SfU-XNHQo2m43eKaLZqjnPM,12129
|
|
82
82
|
odoo/addons/l10n_br_fiscal/models/document_move_mixin.py,sha256=hSmjeIzJ627gUi7V7CE8ST7oltYwh4E6WEmR9ZTFXAw,7131
|
|
83
83
|
odoo/addons/l10n_br_fiscal/models/document_related.py,sha256=rn3SK1BmrEYywquMRNodrwHdKa1PpZzEaqbyF9dw6EY,4181
|
|
84
84
|
odoo/addons/l10n_br_fiscal/models/document_serie.py,sha256=Spe7kpgMBFGS_LBv3DpiqTC4WuafTK8LRv53GVR2UcM,4128
|
|
@@ -108,7 +108,7 @@ odoo/addons/l10n_br_fiscal/models/simplified_tax.py,sha256=ayUrykfKDW8em00uidO7I
|
|
|
108
108
|
odoo/addons/l10n_br_fiscal/models/simplified_tax_range.py,sha256=2fhHkkI8uHc22XtWU-23ioQLioaCrJAwaTsr8-eugM4,1839
|
|
109
109
|
odoo/addons/l10n_br_fiscal/models/subsequent_document.py,sha256=Z_LfOOtlmr7Fr45fbTevTYyFcZr5dKsjSovLhKqjIOM,6793
|
|
110
110
|
odoo/addons/l10n_br_fiscal/models/subsequent_operation.py,sha256=jkeo7KjR3NaXWv7O2Mujx7OmQE7S1lIN1zR10oFbjRk,1610
|
|
111
|
-
odoo/addons/l10n_br_fiscal/models/tax.py,sha256=
|
|
111
|
+
odoo/addons/l10n_br_fiscal/models/tax.py,sha256=zYfYIgIG3m6YOZEDvdTCHjhZOUmnonCvCZikPZ0SYOQ,25692
|
|
112
112
|
odoo/addons/l10n_br_fiscal/models/tax_definition.py,sha256=AjjczuRdYlcsUecWIQY2oBwbzwqq25X4-zV9aZnLWEA,18947
|
|
113
113
|
odoo/addons/l10n_br_fiscal/models/tax_estimate.py,sha256=9Hdy5Jznv9NRj2Fwr9TfI4Yn9r3iigRUs4BfBumOu64,1388
|
|
114
114
|
odoo/addons/l10n_br_fiscal/models/tax_group.py,sha256=_zoRvgeuKof_3VMVzlkzKjfpTTmtY6ArPgNKbcc9jsQ,2120
|
|
@@ -130,7 +130,7 @@ odoo/addons/l10n_br_fiscal/readme/USAGE.md,sha256=Dw3uZaHJCUtV0xFq6VOQvF2G5fS_oS
|
|
|
130
130
|
odoo/addons/l10n_br_fiscal/security/fiscal_security.xml,sha256=c4D3MoIsVnkZ1pDY_iw8jM2hBPz3VCkl5JKnm_hkau0,3700
|
|
131
131
|
odoo/addons/l10n_br_fiscal/security/ir.model.access.csv,sha256=a1vKKQEUKVBbu6zfvlU3ayAP7VxFi3DABsg8TYH08BM,14591
|
|
132
132
|
odoo/addons/l10n_br_fiscal/static/description/icon.png,sha256=Vd1HydYBoGCzNfCqxLlch2i2aeCcyxo-uRxWNp6oMbw,14836
|
|
133
|
-
odoo/addons/l10n_br_fiscal/static/description/index.html,sha256=
|
|
133
|
+
odoo/addons/l10n_br_fiscal/static/description/index.html,sha256=TIcAIvGgYqa21Fv9UYy2vurcAx6NR97s6S2RGptCEas,26274
|
|
134
134
|
odoo/addons/l10n_br_fiscal/static/img/fiscal_dashboard.png,sha256=Q0fpqFNqEXh6m6E1aJfzSKV2tQ9lC1Y-ofUt6qxVupc,151668
|
|
135
135
|
odoo/addons/l10n_br_fiscal/static/img/fiscal_line.png,sha256=S4Q4OGSzGnbfm4W5sQVvnD4uUzxS6tbJGT_gs3pB4K0,134276
|
|
136
136
|
odoo/addons/l10n_br_fiscal/static/img/fiscal_operation.png,sha256=2614c1XjxwVznh707e9gujlUXg0ttutKD1ZiSMTqyv8,105871
|
|
@@ -200,7 +200,7 @@ odoo/addons/l10n_br_fiscal/views/uom_uom.xml,sha256=pqq2l0Vd8nz3oJBoe2GERQFMB3I5
|
|
|
200
200
|
odoo/addons/l10n_br_fiscal/wizards/__init__.py,sha256=_sLxjpuJblbtSngjCsnMm7Iur5afF5xLEkAQLu4sy7I,69
|
|
201
201
|
odoo/addons/l10n_br_fiscal/wizards/base_wizard_mixin.py,sha256=-r25us0vdNCSe11Gnf_tyPtN1qq-JKsL-fgWbPGktRo,2856
|
|
202
202
|
odoo/addons/l10n_br_fiscal/wizards/document_status_wizard.py,sha256=KsYj5YWWePO7uk0psBsFdnCL71eLWhcyg7_c7J4G6vA,818
|
|
203
|
-
odoo_addon_l10n_br_fiscal-16.0.2.
|
|
204
|
-
odoo_addon_l10n_br_fiscal-16.0.2.
|
|
205
|
-
odoo_addon_l10n_br_fiscal-16.0.2.
|
|
206
|
-
odoo_addon_l10n_br_fiscal-16.0.2.
|
|
203
|
+
odoo_addon_l10n_br_fiscal-16.0.2.11.0.dist-info/METADATA,sha256=CTRV_NPMZASFc5Gj1ssODTyEBAx23S2CepzGyolaWa8,14316
|
|
204
|
+
odoo_addon_l10n_br_fiscal-16.0.2.11.0.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
|
205
|
+
odoo_addon_l10n_br_fiscal-16.0.2.11.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
206
|
+
odoo_addon_l10n_br_fiscal-16.0.2.11.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|