odoo-addon-l10n-br-fiscal 15.0.1.9.1__py3-none-any.whl → 15.0.1.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/constants/fiscal.py +2 -0
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.cfop.csv +1 -1
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.tax.csv +6 -0
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.tax.group.csv +1 -0
- odoo/addons/l10n_br_fiscal/i18n/l10n_br_fiscal.pot +166 -0
- odoo/addons/l10n_br_fiscal/i18n/pt_BR.po +166 -0
- odoo/addons/l10n_br_fiscal/models/document_fiscal_line_mixin.py +16 -0
- odoo/addons/l10n_br_fiscal/models/document_fiscal_line_mixin_methods.py +9 -1
- odoo/addons/l10n_br_fiscal/models/document_fiscal_mixin_fields.py +6 -0
- odoo/addons/l10n_br_fiscal/models/icms_regulation.py +345 -5
- odoo/addons/l10n_br_fiscal/models/tax.py +15 -0
- odoo/addons/l10n_br_fiscal/static/description/index.html +1 -1
- odoo/addons/l10n_br_fiscal/views/document_fiscal_line_mixin_view.xml +26 -5
- {odoo_addon_l10n_br_fiscal-15.0.1.9.1.dist-info → odoo_addon_l10n_br_fiscal-15.0.1.11.0.dist-info}/METADATA +2 -2
- {odoo_addon_l10n_br_fiscal-15.0.1.9.1.dist-info → odoo_addon_l10n_br_fiscal-15.0.1.11.0.dist-info}/RECORD +19 -19
- {odoo_addon_l10n_br_fiscal-15.0.1.9.1.dist-info → odoo_addon_l10n_br_fiscal-15.0.1.11.0.dist-info}/WHEEL +0 -0
- {odoo_addon_l10n_br_fiscal-15.0.1.9.1.dist-info → odoo_addon_l10n_br_fiscal-15.0.1.11.0.dist-info}/top_level.txt +0 -0
|
@@ -12,6 +12,7 @@ from ..constants.fiscal import (
|
|
|
12
12
|
NFE_IND_IE_DEST_9,
|
|
13
13
|
TAX_DOMAIN_ICMS,
|
|
14
14
|
TAX_DOMAIN_ICMS_FCP,
|
|
15
|
+
TAX_DOMAIN_ICMS_FCP_ST,
|
|
15
16
|
TAX_DOMAIN_ICMS_ST,
|
|
16
17
|
)
|
|
17
18
|
from ..constants.icms import ICMS_ORIGIN_TAX_IMPORTED
|
|
@@ -21,20 +22,25 @@ VIEW = """
|
|
|
21
22
|
<notebook>
|
|
22
23
|
<page name="uf_{0}_internal" string="Interno">
|
|
23
24
|
<group name="icms_internal_{0}" string="Internal">
|
|
24
|
-
<field name="icms_internal_{0}_ids" context="{{'tree_view_ref': 'l10n_br_fiscal.tax_definition_icms_tree', 'default_icms_regulation_id': id, 'default_tax_group_id': {2}, 'default_state_from_id': {
|
|
25
|
+
<field name="icms_internal_{0}_ids" context="{{'tree_view_ref': 'l10n_br_fiscal.tax_definition_icms_tree', 'default_icms_regulation_id': id, 'default_tax_group_id': {2}, 'default_state_from_id': {6}}}"/>
|
|
25
26
|
</group>
|
|
26
27
|
<group name="icms_external_{0}" string="External">
|
|
27
|
-
<field name="icms_external_{0}_ids" context="{{'tree_view_ref': 'l10n_br_fiscal.tax_definition_icms_tree', 'default_icms_regulation_id': id, 'default_tax_group_id': {2}, 'default_state_from_id': {
|
|
28
|
+
<field name="icms_external_{0}_ids" context="{{'tree_view_ref': 'l10n_br_fiscal.tax_definition_icms_tree', 'default_icms_regulation_id': id, 'default_tax_group_id': {2}, 'default_state_from_id': {6}}}"/>
|
|
28
29
|
</group>
|
|
29
30
|
</page>
|
|
30
31
|
<page name="uf_{0}_st" string="ST">
|
|
31
|
-
<field name="icms_st_{0}_ids" context="{{'tree_view_ref': 'l10n_br_fiscal.tax_definition_icms_tree', 'default_icms_regulation_id': id, 'default_tax_group_id': {3}, 'default_state_from_id': {
|
|
32
|
+
<field name="icms_st_{0}_ids" context="{{'tree_view_ref': 'l10n_br_fiscal.tax_definition_icms_tree', 'default_icms_regulation_id': id, 'default_tax_group_id': {3}, 'default_state_from_id': {6}}}"/>
|
|
32
33
|
</page>
|
|
33
34
|
<page name="uf_{0}_others" string="Outros">
|
|
34
|
-
<
|
|
35
|
+
<group name="icms_fcp_{0}" string="FCP">
|
|
36
|
+
<field name="icms_fcp_{0}_ids" context="{{'tree_view_ref': 'l10n_br_fiscal.tax_definition_icms_tree', 'default_icms_regulation_id': id, 'default_tax_group_id': {4}, 'default_state_from_id': {6}}}"/>
|
|
37
|
+
</group>
|
|
38
|
+
<group name="icms_fcp_st_{0}" string="FCP-ST">
|
|
39
|
+
<field name="icms_fcp_st_{0}_ids" context="{{'tree_view_ref': 'l10n_br_fiscal.tax_definition_icms_tree', 'default_icms_regulation_id': id, 'default_tax_group_id': {5}, 'default_state_from_id': {6}}}"/>
|
|
40
|
+
</group>
|
|
35
41
|
</page>
|
|
36
42
|
<page name="uf_{0}_benefit" string="Tax Benefit">
|
|
37
|
-
<field name="tax_benefit_{0}_ids" context="{{'tree_view_ref': 'l10n_br_fiscal.tax_benefit_tree', 'default_icms_regulation_id': id, 'default_is_benefit': True, 'default_tax_group_id': {2}, 'default_state_from_id': {
|
|
43
|
+
<field name="tax_benefit_{0}_ids" context="{{'tree_view_ref': 'l10n_br_fiscal.tax_benefit_tree', 'default_icms_regulation_id': id, 'default_is_benefit': True, 'default_tax_group_id': {2}, 'default_state_from_id': {6}}}" />
|
|
38
44
|
</page>
|
|
39
45
|
</notebook>
|
|
40
46
|
</page>
|
|
@@ -100,6 +106,17 @@ class ICMSRegulation(models.Model):
|
|
|
100
106
|
],
|
|
101
107
|
)
|
|
102
108
|
|
|
109
|
+
icms_fcp_st_ac_ids = fields.One2many(
|
|
110
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
111
|
+
inverse_name="icms_regulation_id",
|
|
112
|
+
string="ICMS FCP ST AC",
|
|
113
|
+
domain=[
|
|
114
|
+
("state_from_id.code", "=", "AC"),
|
|
115
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
116
|
+
("is_benefit", "=", False),
|
|
117
|
+
],
|
|
118
|
+
)
|
|
119
|
+
|
|
103
120
|
tax_benefit_ac_ids = fields.One2many(
|
|
104
121
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
105
122
|
inverse_name="icms_regulation_id",
|
|
@@ -157,6 +174,17 @@ class ICMSRegulation(models.Model):
|
|
|
157
174
|
],
|
|
158
175
|
)
|
|
159
176
|
|
|
177
|
+
icms_fcp_st_al_ids = fields.One2many(
|
|
178
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
179
|
+
inverse_name="icms_regulation_id",
|
|
180
|
+
string="ICMS FCP ST AL",
|
|
181
|
+
domain=[
|
|
182
|
+
("state_from_id.code", "=", "AL"),
|
|
183
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
184
|
+
("is_benefit", "=", False),
|
|
185
|
+
],
|
|
186
|
+
)
|
|
187
|
+
|
|
160
188
|
tax_benefit_al_ids = fields.One2many(
|
|
161
189
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
162
190
|
inverse_name="icms_regulation_id",
|
|
@@ -214,6 +242,17 @@ class ICMSRegulation(models.Model):
|
|
|
214
242
|
],
|
|
215
243
|
)
|
|
216
244
|
|
|
245
|
+
icms_fcp_st_am_ids = fields.One2many(
|
|
246
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
247
|
+
inverse_name="icms_regulation_id",
|
|
248
|
+
string="ICMS FCP ST AM",
|
|
249
|
+
domain=[
|
|
250
|
+
("state_from_id.code", "=", "AM"),
|
|
251
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
252
|
+
("is_benefit", "=", False),
|
|
253
|
+
],
|
|
254
|
+
)
|
|
255
|
+
|
|
217
256
|
tax_benefit_am_ids = fields.One2many(
|
|
218
257
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
219
258
|
inverse_name="icms_regulation_id",
|
|
@@ -271,6 +310,17 @@ class ICMSRegulation(models.Model):
|
|
|
271
310
|
],
|
|
272
311
|
)
|
|
273
312
|
|
|
313
|
+
icms_fcp_st_ap_ids = fields.One2many(
|
|
314
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
315
|
+
inverse_name="icms_regulation_id",
|
|
316
|
+
string="ICMS FCP ST AP",
|
|
317
|
+
domain=[
|
|
318
|
+
("state_from_id.code", "=", "AP"),
|
|
319
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
320
|
+
("is_benefit", "=", False),
|
|
321
|
+
],
|
|
322
|
+
)
|
|
323
|
+
|
|
274
324
|
tax_benefit_ap_ids = fields.One2many(
|
|
275
325
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
276
326
|
inverse_name="icms_regulation_id",
|
|
@@ -328,6 +378,17 @@ class ICMSRegulation(models.Model):
|
|
|
328
378
|
],
|
|
329
379
|
)
|
|
330
380
|
|
|
381
|
+
icms_fcp_st_ba_ids = fields.One2many(
|
|
382
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
383
|
+
inverse_name="icms_regulation_id",
|
|
384
|
+
string="ICMS FCP ST BA",
|
|
385
|
+
domain=[
|
|
386
|
+
("state_from_id.code", "=", "BA"),
|
|
387
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
388
|
+
("is_benefit", "=", False),
|
|
389
|
+
],
|
|
390
|
+
)
|
|
391
|
+
|
|
331
392
|
tax_benefit_ba_ids = fields.One2many(
|
|
332
393
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
333
394
|
inverse_name="icms_regulation_id",
|
|
@@ -385,6 +446,17 @@ class ICMSRegulation(models.Model):
|
|
|
385
446
|
],
|
|
386
447
|
)
|
|
387
448
|
|
|
449
|
+
icms_fcp_st_ce_ids = fields.One2many(
|
|
450
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
451
|
+
inverse_name="icms_regulation_id",
|
|
452
|
+
string="ICMS FCP ST CE",
|
|
453
|
+
domain=[
|
|
454
|
+
("state_from_id.code", "=", "CE"),
|
|
455
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
456
|
+
("is_benefit", "=", False),
|
|
457
|
+
],
|
|
458
|
+
)
|
|
459
|
+
|
|
388
460
|
tax_benefit_ce_ids = fields.One2many(
|
|
389
461
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
390
462
|
inverse_name="icms_regulation_id",
|
|
@@ -442,6 +514,17 @@ class ICMSRegulation(models.Model):
|
|
|
442
514
|
],
|
|
443
515
|
)
|
|
444
516
|
|
|
517
|
+
icms_fcp_st_df_ids = fields.One2many(
|
|
518
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
519
|
+
inverse_name="icms_regulation_id",
|
|
520
|
+
string="ICMS FCP ST DF",
|
|
521
|
+
domain=[
|
|
522
|
+
("state_from_id.code", "=", "DF"),
|
|
523
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
524
|
+
("is_benefit", "=", False),
|
|
525
|
+
],
|
|
526
|
+
)
|
|
527
|
+
|
|
445
528
|
tax_benefit_df_ids = fields.One2many(
|
|
446
529
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
447
530
|
inverse_name="icms_regulation_id",
|
|
@@ -499,6 +582,17 @@ class ICMSRegulation(models.Model):
|
|
|
499
582
|
],
|
|
500
583
|
)
|
|
501
584
|
|
|
585
|
+
icms_fcp_st_es_ids = fields.One2many(
|
|
586
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
587
|
+
inverse_name="icms_regulation_id",
|
|
588
|
+
string="ICMS FCP ST ES",
|
|
589
|
+
domain=[
|
|
590
|
+
("state_from_id.code", "=", "ES"),
|
|
591
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
592
|
+
("is_benefit", "=", False),
|
|
593
|
+
],
|
|
594
|
+
)
|
|
595
|
+
|
|
502
596
|
tax_benefit_es_ids = fields.One2many(
|
|
503
597
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
504
598
|
inverse_name="icms_regulation_id",
|
|
@@ -556,6 +650,17 @@ class ICMSRegulation(models.Model):
|
|
|
556
650
|
],
|
|
557
651
|
)
|
|
558
652
|
|
|
653
|
+
icms_fcp_st_go_ids = fields.One2many(
|
|
654
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
655
|
+
inverse_name="icms_regulation_id",
|
|
656
|
+
string="ICMS FCP ST GO",
|
|
657
|
+
domain=[
|
|
658
|
+
("state_from_id.code", "=", "GO"),
|
|
659
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
660
|
+
("is_benefit", "=", False),
|
|
661
|
+
],
|
|
662
|
+
)
|
|
663
|
+
|
|
559
664
|
tax_benefit_go_ids = fields.One2many(
|
|
560
665
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
561
666
|
inverse_name="icms_regulation_id",
|
|
@@ -613,6 +718,17 @@ class ICMSRegulation(models.Model):
|
|
|
613
718
|
],
|
|
614
719
|
)
|
|
615
720
|
|
|
721
|
+
icms_fcp_st_ma_ids = fields.One2many(
|
|
722
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
723
|
+
inverse_name="icms_regulation_id",
|
|
724
|
+
string="ICMS FCP ST MA",
|
|
725
|
+
domain=[
|
|
726
|
+
("state_from_id.code", "=", "MA"),
|
|
727
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
728
|
+
("is_benefit", "=", False),
|
|
729
|
+
],
|
|
730
|
+
)
|
|
731
|
+
|
|
616
732
|
tax_benefit_ma_ids = fields.One2many(
|
|
617
733
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
618
734
|
inverse_name="icms_regulation_id",
|
|
@@ -670,6 +786,17 @@ class ICMSRegulation(models.Model):
|
|
|
670
786
|
],
|
|
671
787
|
)
|
|
672
788
|
|
|
789
|
+
icms_fcp_st_mt_ids = fields.One2many(
|
|
790
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
791
|
+
inverse_name="icms_regulation_id",
|
|
792
|
+
string="ICMS FCP ST MT",
|
|
793
|
+
domain=[
|
|
794
|
+
("state_from_id.code", "=", "MT"),
|
|
795
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
796
|
+
("is_benefit", "=", False),
|
|
797
|
+
],
|
|
798
|
+
)
|
|
799
|
+
|
|
673
800
|
tax_benefit_mt_ids = fields.One2many(
|
|
674
801
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
675
802
|
inverse_name="icms_regulation_id",
|
|
@@ -727,6 +854,17 @@ class ICMSRegulation(models.Model):
|
|
|
727
854
|
],
|
|
728
855
|
)
|
|
729
856
|
|
|
857
|
+
icms_fcp_st_ms_ids = fields.One2many(
|
|
858
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
859
|
+
inverse_name="icms_regulation_id",
|
|
860
|
+
string="ICMS FCP ST MS",
|
|
861
|
+
domain=[
|
|
862
|
+
("state_from_id.code", "=", "MS"),
|
|
863
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
864
|
+
("is_benefit", "=", False),
|
|
865
|
+
],
|
|
866
|
+
)
|
|
867
|
+
|
|
730
868
|
tax_benefit_ms_ids = fields.One2many(
|
|
731
869
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
732
870
|
inverse_name="icms_regulation_id",
|
|
@@ -784,6 +922,17 @@ class ICMSRegulation(models.Model):
|
|
|
784
922
|
],
|
|
785
923
|
)
|
|
786
924
|
|
|
925
|
+
icms_fcp_st_mg_ids = fields.One2many(
|
|
926
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
927
|
+
inverse_name="icms_regulation_id",
|
|
928
|
+
string="ICMS FCP ST MG",
|
|
929
|
+
domain=[
|
|
930
|
+
("state_from_id.code", "=", "MG"),
|
|
931
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
932
|
+
("is_benefit", "=", False),
|
|
933
|
+
],
|
|
934
|
+
)
|
|
935
|
+
|
|
787
936
|
tax_benefit_mg_ids = fields.One2many(
|
|
788
937
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
789
938
|
inverse_name="icms_regulation_id",
|
|
@@ -841,6 +990,17 @@ class ICMSRegulation(models.Model):
|
|
|
841
990
|
],
|
|
842
991
|
)
|
|
843
992
|
|
|
993
|
+
icms_fcp_st_pa_ids = fields.One2many(
|
|
994
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
995
|
+
inverse_name="icms_regulation_id",
|
|
996
|
+
string="ICMS FCP ST PA",
|
|
997
|
+
domain=[
|
|
998
|
+
("state_from_id.code", "=", "PA"),
|
|
999
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1000
|
+
("is_benefit", "=", False),
|
|
1001
|
+
],
|
|
1002
|
+
)
|
|
1003
|
+
|
|
844
1004
|
tax_benefit_pa_ids = fields.One2many(
|
|
845
1005
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
846
1006
|
inverse_name="icms_regulation_id",
|
|
@@ -898,6 +1058,17 @@ class ICMSRegulation(models.Model):
|
|
|
898
1058
|
],
|
|
899
1059
|
)
|
|
900
1060
|
|
|
1061
|
+
icms_fcp_st_pb_ids = fields.One2many(
|
|
1062
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1063
|
+
inverse_name="icms_regulation_id",
|
|
1064
|
+
string="ICMS FCP ST PB",
|
|
1065
|
+
domain=[
|
|
1066
|
+
("state_from_id.code", "=", "PB"),
|
|
1067
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1068
|
+
("is_benefit", "=", False),
|
|
1069
|
+
],
|
|
1070
|
+
)
|
|
1071
|
+
|
|
901
1072
|
tax_benefit_pb_ids = fields.One2many(
|
|
902
1073
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
903
1074
|
inverse_name="icms_regulation_id",
|
|
@@ -955,6 +1126,17 @@ class ICMSRegulation(models.Model):
|
|
|
955
1126
|
],
|
|
956
1127
|
)
|
|
957
1128
|
|
|
1129
|
+
icms_fcp_st_pr_ids = fields.One2many(
|
|
1130
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1131
|
+
inverse_name="icms_regulation_id",
|
|
1132
|
+
string="ICMS FCP ST PR",
|
|
1133
|
+
domain=[
|
|
1134
|
+
("state_from_id.code", "=", "PR"),
|
|
1135
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1136
|
+
("is_benefit", "=", False),
|
|
1137
|
+
],
|
|
1138
|
+
)
|
|
1139
|
+
|
|
958
1140
|
tax_benefit_pr_ids = fields.One2many(
|
|
959
1141
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
960
1142
|
inverse_name="icms_regulation_id",
|
|
@@ -1012,6 +1194,17 @@ class ICMSRegulation(models.Model):
|
|
|
1012
1194
|
],
|
|
1013
1195
|
)
|
|
1014
1196
|
|
|
1197
|
+
icms_fcp_st_pe_ids = fields.One2many(
|
|
1198
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1199
|
+
inverse_name="icms_regulation_id",
|
|
1200
|
+
string="ICMS FCP ST PE",
|
|
1201
|
+
domain=[
|
|
1202
|
+
("state_from_id.code", "=", "PE"),
|
|
1203
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1204
|
+
("is_benefit", "=", False),
|
|
1205
|
+
],
|
|
1206
|
+
)
|
|
1207
|
+
|
|
1015
1208
|
tax_benefit_pe_ids = fields.One2many(
|
|
1016
1209
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1017
1210
|
inverse_name="icms_regulation_id",
|
|
@@ -1069,6 +1262,17 @@ class ICMSRegulation(models.Model):
|
|
|
1069
1262
|
],
|
|
1070
1263
|
)
|
|
1071
1264
|
|
|
1265
|
+
icms_fcp_st_pi_ids = fields.One2many(
|
|
1266
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1267
|
+
inverse_name="icms_regulation_id",
|
|
1268
|
+
string="ICMS FCP ST PI",
|
|
1269
|
+
domain=[
|
|
1270
|
+
("state_from_id.code", "=", "PI"),
|
|
1271
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1272
|
+
("is_benefit", "=", False),
|
|
1273
|
+
],
|
|
1274
|
+
)
|
|
1275
|
+
|
|
1072
1276
|
tax_benefit_pi_ids = fields.One2many(
|
|
1073
1277
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1074
1278
|
inverse_name="icms_regulation_id",
|
|
@@ -1126,6 +1330,17 @@ class ICMSRegulation(models.Model):
|
|
|
1126
1330
|
],
|
|
1127
1331
|
)
|
|
1128
1332
|
|
|
1333
|
+
icms_fcp_st_rn_ids = fields.One2many(
|
|
1334
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1335
|
+
inverse_name="icms_regulation_id",
|
|
1336
|
+
string="ICMS FCP ST RN",
|
|
1337
|
+
domain=[
|
|
1338
|
+
("state_from_id.code", "=", "RN"),
|
|
1339
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1340
|
+
("is_benefit", "=", False),
|
|
1341
|
+
],
|
|
1342
|
+
)
|
|
1343
|
+
|
|
1129
1344
|
tax_benefit_rn_ids = fields.One2many(
|
|
1130
1345
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1131
1346
|
inverse_name="icms_regulation_id",
|
|
@@ -1183,6 +1398,17 @@ class ICMSRegulation(models.Model):
|
|
|
1183
1398
|
],
|
|
1184
1399
|
)
|
|
1185
1400
|
|
|
1401
|
+
icms_fcp_st_rs_ids = fields.One2many(
|
|
1402
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1403
|
+
inverse_name="icms_regulation_id",
|
|
1404
|
+
string="ICMS FCP ST RS",
|
|
1405
|
+
domain=[
|
|
1406
|
+
("state_from_id.code", "=", "RS"),
|
|
1407
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1408
|
+
("is_benefit", "=", False),
|
|
1409
|
+
],
|
|
1410
|
+
)
|
|
1411
|
+
|
|
1186
1412
|
tax_benefit_rs_ids = fields.One2many(
|
|
1187
1413
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1188
1414
|
inverse_name="icms_regulation_id",
|
|
@@ -1240,6 +1466,17 @@ class ICMSRegulation(models.Model):
|
|
|
1240
1466
|
],
|
|
1241
1467
|
)
|
|
1242
1468
|
|
|
1469
|
+
icms_fcp_st_rj_ids = fields.One2many(
|
|
1470
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1471
|
+
inverse_name="icms_regulation_id",
|
|
1472
|
+
string="ICMS FCP ST RJ",
|
|
1473
|
+
domain=[
|
|
1474
|
+
("state_from_id.code", "=", "RJ"),
|
|
1475
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1476
|
+
("is_benefit", "=", False),
|
|
1477
|
+
],
|
|
1478
|
+
)
|
|
1479
|
+
|
|
1243
1480
|
tax_benefit_rj_ids = fields.One2many(
|
|
1244
1481
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1245
1482
|
inverse_name="icms_regulation_id",
|
|
@@ -1297,6 +1534,17 @@ class ICMSRegulation(models.Model):
|
|
|
1297
1534
|
],
|
|
1298
1535
|
)
|
|
1299
1536
|
|
|
1537
|
+
icms_fcp_st_ro_ids = fields.One2many(
|
|
1538
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1539
|
+
inverse_name="icms_regulation_id",
|
|
1540
|
+
string="ICMS FCP ST RO",
|
|
1541
|
+
domain=[
|
|
1542
|
+
("state_from_id.code", "=", "RO"),
|
|
1543
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1544
|
+
("is_benefit", "=", False),
|
|
1545
|
+
],
|
|
1546
|
+
)
|
|
1547
|
+
|
|
1300
1548
|
tax_benefit_ro_ids = fields.One2many(
|
|
1301
1549
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1302
1550
|
inverse_name="icms_regulation_id",
|
|
@@ -1354,6 +1602,17 @@ class ICMSRegulation(models.Model):
|
|
|
1354
1602
|
],
|
|
1355
1603
|
)
|
|
1356
1604
|
|
|
1605
|
+
icms_fcp_st_rr_ids = fields.One2many(
|
|
1606
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1607
|
+
inverse_name="icms_regulation_id",
|
|
1608
|
+
string="ICMS FCP ST RR",
|
|
1609
|
+
domain=[
|
|
1610
|
+
("state_from_id.code", "=", "RR"),
|
|
1611
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1612
|
+
("is_benefit", "=", False),
|
|
1613
|
+
],
|
|
1614
|
+
)
|
|
1615
|
+
|
|
1357
1616
|
tax_benefit_rr_ids = fields.One2many(
|
|
1358
1617
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1359
1618
|
inverse_name="icms_regulation_id",
|
|
@@ -1411,6 +1670,17 @@ class ICMSRegulation(models.Model):
|
|
|
1411
1670
|
],
|
|
1412
1671
|
)
|
|
1413
1672
|
|
|
1673
|
+
icms_fcp_st_sc_ids = fields.One2many(
|
|
1674
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1675
|
+
inverse_name="icms_regulation_id",
|
|
1676
|
+
string="ICMS FCP ST SC",
|
|
1677
|
+
domain=[
|
|
1678
|
+
("state_from_id.code", "=", "SC"),
|
|
1679
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1680
|
+
("is_benefit", "=", False),
|
|
1681
|
+
],
|
|
1682
|
+
)
|
|
1683
|
+
|
|
1414
1684
|
tax_benefit_sc_ids = fields.One2many(
|
|
1415
1685
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1416
1686
|
inverse_name="icms_regulation_id",
|
|
@@ -1468,6 +1738,17 @@ class ICMSRegulation(models.Model):
|
|
|
1468
1738
|
],
|
|
1469
1739
|
)
|
|
1470
1740
|
|
|
1741
|
+
icms_fcp_st_sp_ids = fields.One2many(
|
|
1742
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1743
|
+
inverse_name="icms_regulation_id",
|
|
1744
|
+
string="ICMS FCP ST SP",
|
|
1745
|
+
domain=[
|
|
1746
|
+
("state_from_id.code", "=", "SP"),
|
|
1747
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1748
|
+
("is_benefit", "=", False),
|
|
1749
|
+
],
|
|
1750
|
+
)
|
|
1751
|
+
|
|
1471
1752
|
tax_benefit_sp_ids = fields.One2many(
|
|
1472
1753
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1473
1754
|
inverse_name="icms_regulation_id",
|
|
@@ -1525,6 +1806,17 @@ class ICMSRegulation(models.Model):
|
|
|
1525
1806
|
],
|
|
1526
1807
|
)
|
|
1527
1808
|
|
|
1809
|
+
icms_fcp_st_se_ids = fields.One2many(
|
|
1810
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1811
|
+
inverse_name="icms_regulation_id",
|
|
1812
|
+
string="ICMS FCP ST SE",
|
|
1813
|
+
domain=[
|
|
1814
|
+
("state_from_id.code", "=", "SE"),
|
|
1815
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1816
|
+
("is_benefit", "=", False),
|
|
1817
|
+
],
|
|
1818
|
+
)
|
|
1819
|
+
|
|
1528
1820
|
tax_benefit_se_ids = fields.One2many(
|
|
1529
1821
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1530
1822
|
inverse_name="icms_regulation_id",
|
|
@@ -1582,6 +1874,17 @@ class ICMSRegulation(models.Model):
|
|
|
1582
1874
|
],
|
|
1583
1875
|
)
|
|
1584
1876
|
|
|
1877
|
+
icms_fcp_st_to_ids = fields.One2many(
|
|
1878
|
+
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1879
|
+
inverse_name="icms_regulation_id",
|
|
1880
|
+
string="ICMS FCP ST TO",
|
|
1881
|
+
domain=[
|
|
1882
|
+
("state_from_id.code", "=", "TO"),
|
|
1883
|
+
("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
|
|
1884
|
+
("is_benefit", "=", False),
|
|
1885
|
+
],
|
|
1886
|
+
)
|
|
1887
|
+
|
|
1585
1888
|
tax_benefit_to_ids = fields.One2many(
|
|
1586
1889
|
comodel_name="l10n_br_fiscal.tax.definition",
|
|
1587
1890
|
inverse_name="icms_regulation_id",
|
|
@@ -1616,6 +1919,7 @@ class ICMSRegulation(models.Model):
|
|
|
1616
1919
|
self.env.ref("l10n_br_fiscal.tax_group_icms").id,
|
|
1617
1920
|
self.env.ref("l10n_br_fiscal.tax_group_icmsst").id,
|
|
1618
1921
|
self.env.ref("l10n_br_fiscal.tax_group_icmsfcp").id,
|
|
1922
|
+
self.env.ref("l10n_br_fiscal.tax_group_icmsfcp_st").id,
|
|
1619
1923
|
state.id,
|
|
1620
1924
|
)
|
|
1621
1925
|
node_page = etree.fromstring(state_page)
|
|
@@ -1660,6 +1964,15 @@ class ICMSRegulation(models.Model):
|
|
|
1660
1964
|
if tax_group_icms.tax_domain == TAX_DOMAIN_ICMS_FCP:
|
|
1661
1965
|
domain += [("state_to_ids", "=", partner.state_id.id)]
|
|
1662
1966
|
|
|
1967
|
+
if tax_group_icms.tax_domain == TAX_DOMAIN_ICMS_FCP_ST:
|
|
1968
|
+
domain += [
|
|
1969
|
+
("state_from_id", "=", company.state_id.id),
|
|
1970
|
+
("state_to_ids", "=", partner.state_id.id),
|
|
1971
|
+
("ncm_ids", "=", ncm.id),
|
|
1972
|
+
("nbm_ids", "=", nbm.id),
|
|
1973
|
+
("cest_ids", "=", cest.id),
|
|
1974
|
+
]
|
|
1975
|
+
|
|
1663
1976
|
return domain
|
|
1664
1977
|
|
|
1665
1978
|
def _tax_definition_search(self, domain, ncm, nbm, cest, product, ind_final=None):
|
|
@@ -1834,6 +2147,29 @@ class ICMSRegulation(models.Model):
|
|
|
1834
2147
|
|
|
1835
2148
|
return tax_definitions
|
|
1836
2149
|
|
|
2150
|
+
def _map_tax_def_icmsfcpst(
|
|
2151
|
+
self,
|
|
2152
|
+
company,
|
|
2153
|
+
partner,
|
|
2154
|
+
product,
|
|
2155
|
+
ncm=None,
|
|
2156
|
+
nbm=None,
|
|
2157
|
+
cest=None,
|
|
2158
|
+
operation_line=None,
|
|
2159
|
+
):
|
|
2160
|
+
self.ensure_one()
|
|
2161
|
+
tax_definitions = self.env["l10n_br_fiscal.tax.definition"]
|
|
2162
|
+
tax_group_icmsfcpst = self.env.ref("l10n_br_fiscal.tax_group_icmsfcp_st")
|
|
2163
|
+
|
|
2164
|
+
# FCP ST
|
|
2165
|
+
domain = self._build_map_tax_def_domain(
|
|
2166
|
+
company, partner, tax_group_icmsfcpst, ncm, nbm, cest
|
|
2167
|
+
)
|
|
2168
|
+
|
|
2169
|
+
tax_definitions = self._tax_definition_search(domain, ncm, nbm, cest, product)
|
|
2170
|
+
|
|
2171
|
+
return tax_definitions
|
|
2172
|
+
|
|
1837
2173
|
# TODO adicionar o argumento CFOP????
|
|
1838
2174
|
def map_tax(
|
|
1839
2175
|
self,
|
|
@@ -1868,6 +2204,10 @@ class ICMSRegulation(models.Model):
|
|
|
1868
2204
|
company, partner, product, ncm, nbm, cest, operation_line
|
|
1869
2205
|
)
|
|
1870
2206
|
|
|
2207
|
+
icms_def_taxes |= self._map_tax_def_icmsfcpst(
|
|
2208
|
+
company, partner, product, ncm, nbm, cest, operation_line
|
|
2209
|
+
)
|
|
2210
|
+
|
|
1871
2211
|
icms_taxes |= icms_def_taxes.mapped("tax_id")
|
|
1872
2212
|
|
|
1873
2213
|
return icms_taxes, icms_def_taxes
|
|
@@ -524,6 +524,21 @@ class Tax(models.Model):
|
|
|
524
524
|
|
|
525
525
|
return tax_dict
|
|
526
526
|
|
|
527
|
+
@api.model
|
|
528
|
+
def _compute_icmsfcpst(self, tax, taxes_dict, **kwargs):
|
|
529
|
+
"""Compute ICMS FCP ST"""
|
|
530
|
+
tax_dict = taxes_dict.get(tax.tax_domain)
|
|
531
|
+
|
|
532
|
+
if taxes_dict.get("icmsst"):
|
|
533
|
+
tax_dict["base"] = taxes_dict["icmsst"].get("base", 0.0)
|
|
534
|
+
else:
|
|
535
|
+
tax_dict["base"] = 0
|
|
536
|
+
|
|
537
|
+
# pop percent_amount to get it from tax_id
|
|
538
|
+
tax_dict.pop("percent_amount", None)
|
|
539
|
+
|
|
540
|
+
return self._compute_tax(tax, taxes_dict, **kwargs)
|
|
541
|
+
|
|
527
542
|
@api.model
|
|
528
543
|
def _compute_icmssn(self, tax, taxes_dict, **kwargs):
|
|
529
544
|
tax_dict = taxes_dict.get(tax.tax_domain)
|
|
@@ -366,7 +366,7 @@ ul.auto-toc {
|
|
|
366
366
|
!! This file is generated by oca-gen-addon-readme !!
|
|
367
367
|
!! changes will be overwritten. !!
|
|
368
368
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
369
|
-
!! source digest: sha256:
|
|
369
|
+
!! source digest: sha256:e2c4900308cba42f1a6df918bd5e2198ea9aef5508012eb26644cd97c848430a
|
|
370
370
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
371
371
|
<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/15.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-15-0/l10n-brazil-15-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=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
372
372
|
<img alt="https://raw.githubusercontent.com/OCA/l10n-brazil/15.0/l10n_br_fiscal/static/img/fiscal_dashboard.png" src="https://raw.githubusercontent.com/OCA/l10n-brazil/15.0/l10n_br_fiscal/static/img/fiscal_dashboard.png" />
|
|
@@ -335,11 +335,6 @@
|
|
|
335
335
|
force_save="1"
|
|
336
336
|
attrs="{'readonly': [('icmsfcp_tax_id', '!=', False)], 'invisible': [('icms_cst_code', '=', '500')]}"
|
|
337
337
|
/>
|
|
338
|
-
<field
|
|
339
|
-
name="icmsfcpst_value"
|
|
340
|
-
force_save="1"
|
|
341
|
-
attrs="{'readonly': [('icmsfcp_tax_id', '!=', False)], 'invisible': [('icms_cst_code', 'not in', ('10', '30', '70', '90', '201', '202', '203', '900'))]}"
|
|
342
|
-
/>
|
|
343
338
|
<field
|
|
344
339
|
name="icmsfcp_base_wh"
|
|
345
340
|
force_save="1"
|
|
@@ -356,6 +351,32 @@
|
|
|
356
351
|
attrs="{'invisible': [('icms_cst_code', 'not in', ('60', '500'))]}"
|
|
357
352
|
/>
|
|
358
353
|
</group>
|
|
354
|
+
<group
|
|
355
|
+
name="icms_fcp_st"
|
|
356
|
+
string="ICMS FCP ST"
|
|
357
|
+
attrs="{'invisible': [('icms_cst_code', 'not in', ('10', '30', '70', '90', '201', '202', '203', '500', '900'))]}"
|
|
358
|
+
>
|
|
359
|
+
<field
|
|
360
|
+
name="icmsfcpst_tax_id"
|
|
361
|
+
attrs="{'invisible': [('icms_cst_code', '=', '500')]}"
|
|
362
|
+
options="{'no_create': True, 'no_create_edit': True}"
|
|
363
|
+
/>
|
|
364
|
+
<field
|
|
365
|
+
name="icmsfcpst_base"
|
|
366
|
+
force_save="1"
|
|
367
|
+
attrs="{'readonly': [('icmsfcp_tax_id', '!=', False)], 'invisible': [('icms_cst_code', '=', '500')]}"
|
|
368
|
+
/>
|
|
369
|
+
<field
|
|
370
|
+
name="icmsfcpst_percent"
|
|
371
|
+
force_save="1"
|
|
372
|
+
attrs="{'readonly': [('icmsfcp_tax_id', '!=', False)], 'invisible': [('icms_cst_code', '=', '500')]}"
|
|
373
|
+
/>
|
|
374
|
+
<field
|
|
375
|
+
name="icmsfcpst_value"
|
|
376
|
+
force_save="1"
|
|
377
|
+
attrs="{'readonly': [('icmsfcp_tax_id', '!=', False)], 'invisible': [('icms_cst_code', '=', '500')]}"
|
|
378
|
+
/>
|
|
379
|
+
</group>
|
|
359
380
|
<group
|
|
360
381
|
name="icms_difal"
|
|
361
382
|
string="ICMS DIFAL"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-l10n-br-fiscal
|
|
3
|
-
Version: 15.0.1.
|
|
3
|
+
Version: 15.0.1.11.0
|
|
4
4
|
Summary: Brazilian fiscal core module.
|
|
5
5
|
Home-page: https://github.com/OCA/l10n-brazil
|
|
6
6
|
Author: Akretion, Odoo Community Association (OCA)
|
|
@@ -26,7 +26,7 @@ Módulo fiscal brasileiro
|
|
|
26
26
|
!! This file is generated by oca-gen-addon-readme !!
|
|
27
27
|
!! changes will be overwritten. !!
|
|
28
28
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
29
|
-
!! source digest: sha256:
|
|
29
|
+
!! source digest: sha256:e2c4900308cba42f1a6df918bd5e2198ea9aef5508012eb26644cd97c848430a
|
|
30
30
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
31
31
|
|
|
32
32
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|