odoo-addon-l10n-br-fiscal 16.0.1.8.1__py3-none-any.whl → 16.0.1.10.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.

@@ -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,18 +22,23 @@ VIEW = """
21
22
  <notebook>
22
23
  <page name="uf_{0}_internal" string="Interno">
23
24
  <separator 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': {5}}}"/>
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
  <separator name="icms_external_{0}" string="External" />
26
- <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': {5}}}"/>
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': {6}}}"/>
27
28
  </page>
28
29
  <page name="uf_{0}_st" string="ST">
29
- <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': {5}}}"/>
30
+ <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}}}"/>
30
31
  </page>
31
32
  <page name="uf_{0}_others" string="Outros">
32
- <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': {5}}}"/>
33
+ <group name="icms_fcp_{0}" string="FCP">
34
+ <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}}}"/>
35
+ </group>
36
+ <group name="icms_fcp_st_{0}" string="FCP-ST">
37
+ <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}}}"/>
38
+ </group>
33
39
  </page>
34
40
  <page name="uf_{0}_benefit" string="Tax Benefit">
35
- <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': {5}}}" />
41
+ <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}}}" />
36
42
  </page>
37
43
  </notebook>
38
44
  </page>
@@ -98,6 +104,17 @@ class ICMSRegulation(models.Model):
98
104
  ],
99
105
  )
100
106
 
107
+ icms_fcp_st_ac_ids = fields.One2many(
108
+ comodel_name="l10n_br_fiscal.tax.definition",
109
+ inverse_name="icms_regulation_id",
110
+ string="ICMS FCP ST AC",
111
+ domain=[
112
+ ("state_from_id.code", "=", "AC"),
113
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
114
+ ("is_benefit", "=", False),
115
+ ],
116
+ )
117
+
101
118
  tax_benefit_ac_ids = fields.One2many(
102
119
  comodel_name="l10n_br_fiscal.tax.definition",
103
120
  inverse_name="icms_regulation_id",
@@ -155,6 +172,17 @@ class ICMSRegulation(models.Model):
155
172
  ],
156
173
  )
157
174
 
175
+ icms_fcp_st_al_ids = fields.One2many(
176
+ comodel_name="l10n_br_fiscal.tax.definition",
177
+ inverse_name="icms_regulation_id",
178
+ string="ICMS FCP ST AL",
179
+ domain=[
180
+ ("state_from_id.code", "=", "AL"),
181
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
182
+ ("is_benefit", "=", False),
183
+ ],
184
+ )
185
+
158
186
  tax_benefit_al_ids = fields.One2many(
159
187
  comodel_name="l10n_br_fiscal.tax.definition",
160
188
  inverse_name="icms_regulation_id",
@@ -212,6 +240,17 @@ class ICMSRegulation(models.Model):
212
240
  ],
213
241
  )
214
242
 
243
+ icms_fcp_st_am_ids = fields.One2many(
244
+ comodel_name="l10n_br_fiscal.tax.definition",
245
+ inverse_name="icms_regulation_id",
246
+ string="ICMS FCP ST AM",
247
+ domain=[
248
+ ("state_from_id.code", "=", "AM"),
249
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
250
+ ("is_benefit", "=", False),
251
+ ],
252
+ )
253
+
215
254
  tax_benefit_am_ids = fields.One2many(
216
255
  comodel_name="l10n_br_fiscal.tax.definition",
217
256
  inverse_name="icms_regulation_id",
@@ -269,6 +308,17 @@ class ICMSRegulation(models.Model):
269
308
  ],
270
309
  )
271
310
 
311
+ icms_fcp_st_ap_ids = fields.One2many(
312
+ comodel_name="l10n_br_fiscal.tax.definition",
313
+ inverse_name="icms_regulation_id",
314
+ string="ICMS FCP ST AP",
315
+ domain=[
316
+ ("state_from_id.code", "=", "AP"),
317
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
318
+ ("is_benefit", "=", False),
319
+ ],
320
+ )
321
+
272
322
  tax_benefit_ap_ids = fields.One2many(
273
323
  comodel_name="l10n_br_fiscal.tax.definition",
274
324
  inverse_name="icms_regulation_id",
@@ -326,6 +376,17 @@ class ICMSRegulation(models.Model):
326
376
  ],
327
377
  )
328
378
 
379
+ icms_fcp_st_ba_ids = fields.One2many(
380
+ comodel_name="l10n_br_fiscal.tax.definition",
381
+ inverse_name="icms_regulation_id",
382
+ string="ICMS FCP ST BA",
383
+ domain=[
384
+ ("state_from_id.code", "=", "BA"),
385
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
386
+ ("is_benefit", "=", False),
387
+ ],
388
+ )
389
+
329
390
  tax_benefit_ba_ids = fields.One2many(
330
391
  comodel_name="l10n_br_fiscal.tax.definition",
331
392
  inverse_name="icms_regulation_id",
@@ -383,6 +444,17 @@ class ICMSRegulation(models.Model):
383
444
  ],
384
445
  )
385
446
 
447
+ icms_fcp_st_ce_ids = fields.One2many(
448
+ comodel_name="l10n_br_fiscal.tax.definition",
449
+ inverse_name="icms_regulation_id",
450
+ string="ICMS FCP ST CE",
451
+ domain=[
452
+ ("state_from_id.code", "=", "CE"),
453
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
454
+ ("is_benefit", "=", False),
455
+ ],
456
+ )
457
+
386
458
  tax_benefit_ce_ids = fields.One2many(
387
459
  comodel_name="l10n_br_fiscal.tax.definition",
388
460
  inverse_name="icms_regulation_id",
@@ -440,6 +512,17 @@ class ICMSRegulation(models.Model):
440
512
  ],
441
513
  )
442
514
 
515
+ icms_fcp_st_df_ids = fields.One2many(
516
+ comodel_name="l10n_br_fiscal.tax.definition",
517
+ inverse_name="icms_regulation_id",
518
+ string="ICMS FCP ST DF",
519
+ domain=[
520
+ ("state_from_id.code", "=", "DF"),
521
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
522
+ ("is_benefit", "=", False),
523
+ ],
524
+ )
525
+
443
526
  tax_benefit_df_ids = fields.One2many(
444
527
  comodel_name="l10n_br_fiscal.tax.definition",
445
528
  inverse_name="icms_regulation_id",
@@ -497,6 +580,17 @@ class ICMSRegulation(models.Model):
497
580
  ],
498
581
  )
499
582
 
583
+ icms_fcp_st_es_ids = fields.One2many(
584
+ comodel_name="l10n_br_fiscal.tax.definition",
585
+ inverse_name="icms_regulation_id",
586
+ string="ICMS FCP ST ES",
587
+ domain=[
588
+ ("state_from_id.code", "=", "ES"),
589
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
590
+ ("is_benefit", "=", False),
591
+ ],
592
+ )
593
+
500
594
  tax_benefit_es_ids = fields.One2many(
501
595
  comodel_name="l10n_br_fiscal.tax.definition",
502
596
  inverse_name="icms_regulation_id",
@@ -554,6 +648,17 @@ class ICMSRegulation(models.Model):
554
648
  ],
555
649
  )
556
650
 
651
+ icms_fcp_st_go_ids = fields.One2many(
652
+ comodel_name="l10n_br_fiscal.tax.definition",
653
+ inverse_name="icms_regulation_id",
654
+ string="ICMS FCP ST GO",
655
+ domain=[
656
+ ("state_from_id.code", "=", "GO"),
657
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
658
+ ("is_benefit", "=", False),
659
+ ],
660
+ )
661
+
557
662
  tax_benefit_go_ids = fields.One2many(
558
663
  comodel_name="l10n_br_fiscal.tax.definition",
559
664
  inverse_name="icms_regulation_id",
@@ -611,6 +716,17 @@ class ICMSRegulation(models.Model):
611
716
  ],
612
717
  )
613
718
 
719
+ icms_fcp_st_ma_ids = fields.One2many(
720
+ comodel_name="l10n_br_fiscal.tax.definition",
721
+ inverse_name="icms_regulation_id",
722
+ string="ICMS FCP ST MA",
723
+ domain=[
724
+ ("state_from_id.code", "=", "MA"),
725
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
726
+ ("is_benefit", "=", False),
727
+ ],
728
+ )
729
+
614
730
  tax_benefit_ma_ids = fields.One2many(
615
731
  comodel_name="l10n_br_fiscal.tax.definition",
616
732
  inverse_name="icms_regulation_id",
@@ -668,6 +784,17 @@ class ICMSRegulation(models.Model):
668
784
  ],
669
785
  )
670
786
 
787
+ icms_fcp_st_mt_ids = fields.One2many(
788
+ comodel_name="l10n_br_fiscal.tax.definition",
789
+ inverse_name="icms_regulation_id",
790
+ string="ICMS FCP ST MT",
791
+ domain=[
792
+ ("state_from_id.code", "=", "MT"),
793
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
794
+ ("is_benefit", "=", False),
795
+ ],
796
+ )
797
+
671
798
  tax_benefit_mt_ids = fields.One2many(
672
799
  comodel_name="l10n_br_fiscal.tax.definition",
673
800
  inverse_name="icms_regulation_id",
@@ -725,6 +852,17 @@ class ICMSRegulation(models.Model):
725
852
  ],
726
853
  )
727
854
 
855
+ icms_fcp_st_ms_ids = fields.One2many(
856
+ comodel_name="l10n_br_fiscal.tax.definition",
857
+ inverse_name="icms_regulation_id",
858
+ string="ICMS FCP ST MS",
859
+ domain=[
860
+ ("state_from_id.code", "=", "MS"),
861
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
862
+ ("is_benefit", "=", False),
863
+ ],
864
+ )
865
+
728
866
  tax_benefit_ms_ids = fields.One2many(
729
867
  comodel_name="l10n_br_fiscal.tax.definition",
730
868
  inverse_name="icms_regulation_id",
@@ -782,6 +920,17 @@ class ICMSRegulation(models.Model):
782
920
  ],
783
921
  )
784
922
 
923
+ icms_fcp_st_mg_ids = fields.One2many(
924
+ comodel_name="l10n_br_fiscal.tax.definition",
925
+ inverse_name="icms_regulation_id",
926
+ string="ICMS FCP ST MG",
927
+ domain=[
928
+ ("state_from_id.code", "=", "MG"),
929
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
930
+ ("is_benefit", "=", False),
931
+ ],
932
+ )
933
+
785
934
  tax_benefit_mg_ids = fields.One2many(
786
935
  comodel_name="l10n_br_fiscal.tax.definition",
787
936
  inverse_name="icms_regulation_id",
@@ -839,6 +988,17 @@ class ICMSRegulation(models.Model):
839
988
  ],
840
989
  )
841
990
 
991
+ icms_fcp_st_pa_ids = fields.One2many(
992
+ comodel_name="l10n_br_fiscal.tax.definition",
993
+ inverse_name="icms_regulation_id",
994
+ string="ICMS FCP ST PA",
995
+ domain=[
996
+ ("state_from_id.code", "=", "PA"),
997
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
998
+ ("is_benefit", "=", False),
999
+ ],
1000
+ )
1001
+
842
1002
  tax_benefit_pa_ids = fields.One2many(
843
1003
  comodel_name="l10n_br_fiscal.tax.definition",
844
1004
  inverse_name="icms_regulation_id",
@@ -896,6 +1056,17 @@ class ICMSRegulation(models.Model):
896
1056
  ],
897
1057
  )
898
1058
 
1059
+ icms_fcp_st_pb_ids = fields.One2many(
1060
+ comodel_name="l10n_br_fiscal.tax.definition",
1061
+ inverse_name="icms_regulation_id",
1062
+ string="ICMS FCP ST PB",
1063
+ domain=[
1064
+ ("state_from_id.code", "=", "PB"),
1065
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
1066
+ ("is_benefit", "=", False),
1067
+ ],
1068
+ )
1069
+
899
1070
  tax_benefit_pb_ids = fields.One2many(
900
1071
  comodel_name="l10n_br_fiscal.tax.definition",
901
1072
  inverse_name="icms_regulation_id",
@@ -953,6 +1124,17 @@ class ICMSRegulation(models.Model):
953
1124
  ],
954
1125
  )
955
1126
 
1127
+ icms_fcp_st_pr_ids = fields.One2many(
1128
+ comodel_name="l10n_br_fiscal.tax.definition",
1129
+ inverse_name="icms_regulation_id",
1130
+ string="ICMS FCP ST PR",
1131
+ domain=[
1132
+ ("state_from_id.code", "=", "PR"),
1133
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
1134
+ ("is_benefit", "=", False),
1135
+ ],
1136
+ )
1137
+
956
1138
  tax_benefit_pr_ids = fields.One2many(
957
1139
  comodel_name="l10n_br_fiscal.tax.definition",
958
1140
  inverse_name="icms_regulation_id",
@@ -1010,6 +1192,17 @@ class ICMSRegulation(models.Model):
1010
1192
  ],
1011
1193
  )
1012
1194
 
1195
+ icms_fcp_st_pe_ids = fields.One2many(
1196
+ comodel_name="l10n_br_fiscal.tax.definition",
1197
+ inverse_name="icms_regulation_id",
1198
+ string="ICMS FCP ST PE",
1199
+ domain=[
1200
+ ("state_from_id.code", "=", "PE"),
1201
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
1202
+ ("is_benefit", "=", False),
1203
+ ],
1204
+ )
1205
+
1013
1206
  tax_benefit_pe_ids = fields.One2many(
1014
1207
  comodel_name="l10n_br_fiscal.tax.definition",
1015
1208
  inverse_name="icms_regulation_id",
@@ -1067,6 +1260,17 @@ class ICMSRegulation(models.Model):
1067
1260
  ],
1068
1261
  )
1069
1262
 
1263
+ icms_fcp_st_pi_ids = fields.One2many(
1264
+ comodel_name="l10n_br_fiscal.tax.definition",
1265
+ inverse_name="icms_regulation_id",
1266
+ string="ICMS FCP ST PI",
1267
+ domain=[
1268
+ ("state_from_id.code", "=", "PI"),
1269
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
1270
+ ("is_benefit", "=", False),
1271
+ ],
1272
+ )
1273
+
1070
1274
  tax_benefit_pi_ids = fields.One2many(
1071
1275
  comodel_name="l10n_br_fiscal.tax.definition",
1072
1276
  inverse_name="icms_regulation_id",
@@ -1124,6 +1328,17 @@ class ICMSRegulation(models.Model):
1124
1328
  ],
1125
1329
  )
1126
1330
 
1331
+ icms_fcp_st_rn_ids = fields.One2many(
1332
+ comodel_name="l10n_br_fiscal.tax.definition",
1333
+ inverse_name="icms_regulation_id",
1334
+ string="ICMS FCP ST RN",
1335
+ domain=[
1336
+ ("state_from_id.code", "=", "RN"),
1337
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
1338
+ ("is_benefit", "=", False),
1339
+ ],
1340
+ )
1341
+
1127
1342
  tax_benefit_rn_ids = fields.One2many(
1128
1343
  comodel_name="l10n_br_fiscal.tax.definition",
1129
1344
  inverse_name="icms_regulation_id",
@@ -1181,6 +1396,17 @@ class ICMSRegulation(models.Model):
1181
1396
  ],
1182
1397
  )
1183
1398
 
1399
+ icms_fcp_st_rs_ids = fields.One2many(
1400
+ comodel_name="l10n_br_fiscal.tax.definition",
1401
+ inverse_name="icms_regulation_id",
1402
+ string="ICMS FCP ST RS",
1403
+ domain=[
1404
+ ("state_from_id.code", "=", "RS"),
1405
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
1406
+ ("is_benefit", "=", False),
1407
+ ],
1408
+ )
1409
+
1184
1410
  tax_benefit_rs_ids = fields.One2many(
1185
1411
  comodel_name="l10n_br_fiscal.tax.definition",
1186
1412
  inverse_name="icms_regulation_id",
@@ -1238,6 +1464,17 @@ class ICMSRegulation(models.Model):
1238
1464
  ],
1239
1465
  )
1240
1466
 
1467
+ icms_fcp_st_rj_ids = fields.One2many(
1468
+ comodel_name="l10n_br_fiscal.tax.definition",
1469
+ inverse_name="icms_regulation_id",
1470
+ string="ICMS FCP ST RJ",
1471
+ domain=[
1472
+ ("state_from_id.code", "=", "RJ"),
1473
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
1474
+ ("is_benefit", "=", False),
1475
+ ],
1476
+ )
1477
+
1241
1478
  tax_benefit_rj_ids = fields.One2many(
1242
1479
  comodel_name="l10n_br_fiscal.tax.definition",
1243
1480
  inverse_name="icms_regulation_id",
@@ -1295,6 +1532,17 @@ class ICMSRegulation(models.Model):
1295
1532
  ],
1296
1533
  )
1297
1534
 
1535
+ icms_fcp_st_ro_ids = fields.One2many(
1536
+ comodel_name="l10n_br_fiscal.tax.definition",
1537
+ inverse_name="icms_regulation_id",
1538
+ string="ICMS FCP ST RO",
1539
+ domain=[
1540
+ ("state_from_id.code", "=", "RO"),
1541
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
1542
+ ("is_benefit", "=", False),
1543
+ ],
1544
+ )
1545
+
1298
1546
  tax_benefit_ro_ids = fields.One2many(
1299
1547
  comodel_name="l10n_br_fiscal.tax.definition",
1300
1548
  inverse_name="icms_regulation_id",
@@ -1352,6 +1600,17 @@ class ICMSRegulation(models.Model):
1352
1600
  ],
1353
1601
  )
1354
1602
 
1603
+ icms_fcp_st_rr_ids = fields.One2many(
1604
+ comodel_name="l10n_br_fiscal.tax.definition",
1605
+ inverse_name="icms_regulation_id",
1606
+ string="ICMS FCP ST RR",
1607
+ domain=[
1608
+ ("state_from_id.code", "=", "RR"),
1609
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
1610
+ ("is_benefit", "=", False),
1611
+ ],
1612
+ )
1613
+
1355
1614
  tax_benefit_rr_ids = fields.One2many(
1356
1615
  comodel_name="l10n_br_fiscal.tax.definition",
1357
1616
  inverse_name="icms_regulation_id",
@@ -1409,6 +1668,17 @@ class ICMSRegulation(models.Model):
1409
1668
  ],
1410
1669
  )
1411
1670
 
1671
+ icms_fcp_st_sc_ids = fields.One2many(
1672
+ comodel_name="l10n_br_fiscal.tax.definition",
1673
+ inverse_name="icms_regulation_id",
1674
+ string="ICMS FCP ST SC",
1675
+ domain=[
1676
+ ("state_from_id.code", "=", "SC"),
1677
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
1678
+ ("is_benefit", "=", False),
1679
+ ],
1680
+ )
1681
+
1412
1682
  tax_benefit_sc_ids = fields.One2many(
1413
1683
  comodel_name="l10n_br_fiscal.tax.definition",
1414
1684
  inverse_name="icms_regulation_id",
@@ -1466,6 +1736,17 @@ class ICMSRegulation(models.Model):
1466
1736
  ],
1467
1737
  )
1468
1738
 
1739
+ icms_fcp_st_sp_ids = fields.One2many(
1740
+ comodel_name="l10n_br_fiscal.tax.definition",
1741
+ inverse_name="icms_regulation_id",
1742
+ string="ICMS FCP ST SP",
1743
+ domain=[
1744
+ ("state_from_id.code", "=", "SP"),
1745
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
1746
+ ("is_benefit", "=", False),
1747
+ ],
1748
+ )
1749
+
1469
1750
  tax_benefit_sp_ids = fields.One2many(
1470
1751
  comodel_name="l10n_br_fiscal.tax.definition",
1471
1752
  inverse_name="icms_regulation_id",
@@ -1523,6 +1804,17 @@ class ICMSRegulation(models.Model):
1523
1804
  ],
1524
1805
  )
1525
1806
 
1807
+ icms_fcp_st_se_ids = fields.One2many(
1808
+ comodel_name="l10n_br_fiscal.tax.definition",
1809
+ inverse_name="icms_regulation_id",
1810
+ string="ICMS FCP ST SE",
1811
+ domain=[
1812
+ ("state_from_id.code", "=", "SE"),
1813
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
1814
+ ("is_benefit", "=", False),
1815
+ ],
1816
+ )
1817
+
1526
1818
  tax_benefit_se_ids = fields.One2many(
1527
1819
  comodel_name="l10n_br_fiscal.tax.definition",
1528
1820
  inverse_name="icms_regulation_id",
@@ -1580,6 +1872,17 @@ class ICMSRegulation(models.Model):
1580
1872
  ],
1581
1873
  )
1582
1874
 
1875
+ icms_fcp_st_to_ids = fields.One2many(
1876
+ comodel_name="l10n_br_fiscal.tax.definition",
1877
+ inverse_name="icms_regulation_id",
1878
+ string="ICMS FCP ST TO",
1879
+ domain=[
1880
+ ("state_from_id.code", "=", "TO"),
1881
+ ("tax_group_id.tax_domain", "=", TAX_DOMAIN_ICMS_FCP_ST),
1882
+ ("is_benefit", "=", False),
1883
+ ],
1884
+ )
1885
+
1583
1886
  tax_benefit_to_ids = fields.One2many(
1584
1887
  comodel_name="l10n_br_fiscal.tax.definition",
1585
1888
  inverse_name="icms_regulation_id",
@@ -1613,6 +1916,7 @@ class ICMSRegulation(models.Model):
1613
1916
  self.env.ref("l10n_br_fiscal.tax_group_icms").id,
1614
1917
  self.env.ref("l10n_br_fiscal.tax_group_icmsst").id,
1615
1918
  self.env.ref("l10n_br_fiscal.tax_group_icmsfcp").id,
1919
+ self.env.ref("l10n_br_fiscal.tax_group_icmsfcp_st").id,
1616
1920
  state.id,
1617
1921
  )
1618
1922
  node_page = etree.fromstring(state_page)
@@ -1655,6 +1959,15 @@ class ICMSRegulation(models.Model):
1655
1959
  if tax_group_icms.tax_domain == TAX_DOMAIN_ICMS_FCP:
1656
1960
  domain += [("state_to_ids", "=", partner.state_id.id)]
1657
1961
 
1962
+ if tax_group_icms.tax_domain == TAX_DOMAIN_ICMS_FCP_ST:
1963
+ domain += [
1964
+ ("state_from_id", "=", company.state_id.id),
1965
+ ("state_to_ids", "=", partner.state_id.id),
1966
+ ("ncm_ids", "=", ncm.id),
1967
+ ("nbm_ids", "=", nbm.id),
1968
+ ("cest_ids", "=", cest.id),
1969
+ ]
1970
+
1658
1971
  return domain
1659
1972
 
1660
1973
  def _tax_definition_search(self, domain, ncm, nbm, cest, product, ind_final=None):
@@ -1829,6 +2142,29 @@ class ICMSRegulation(models.Model):
1829
2142
 
1830
2143
  return tax_definitions
1831
2144
 
2145
+ def _map_tax_def_icmsfcpst(
2146
+ self,
2147
+ company,
2148
+ partner,
2149
+ product,
2150
+ ncm=None,
2151
+ nbm=None,
2152
+ cest=None,
2153
+ operation_line=None,
2154
+ ):
2155
+ self.ensure_one()
2156
+ tax_definitions = self.env["l10n_br_fiscal.tax.definition"]
2157
+ tax_group_icmsfcpst = self.env.ref("l10n_br_fiscal.tax_group_icmsfcp_st")
2158
+
2159
+ # FCP ST
2160
+ domain = self._build_map_tax_def_domain(
2161
+ company, partner, tax_group_icmsfcpst, ncm, nbm, cest
2162
+ )
2163
+
2164
+ tax_definitions = self._tax_definition_search(domain, ncm, nbm, cest, product)
2165
+
2166
+ return tax_definitions
2167
+
1832
2168
  # TODO adicionar o argumento CFOP????
1833
2169
  def map_tax(
1834
2170
  self,
@@ -1863,6 +2199,10 @@ class ICMSRegulation(models.Model):
1863
2199
  company, partner, product, ncm, nbm, cest, operation_line
1864
2200
  )
1865
2201
 
2202
+ icms_def_taxes |= self._map_tax_def_icmsfcpst(
2203
+ company, partner, product, ncm, nbm, cest, operation_line
2204
+ )
2205
+
1866
2206
  icms_taxes |= icms_def_taxes.mapped("tax_id")
1867
2207
 
1868
2208
  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:126787d3a85e53aff1cc966ec7c2fdeae7dcbe62f1f391ebd3700e97d2fb23b6
369
+ !! source digest: sha256:9cf05d0fe2d86804cc270aac54ceddd352f3201070bddd7aa356bf43f4e2ad84
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/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&amp;target_branch=16.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/16.0/l10n_br_fiscal/static/img/fiscal_dashboard.png" src="https://raw.githubusercontent.com/OCA/l10n-brazil/16.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: 16.0.1.8.1
3
+ Version: 16.0.1.10.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:126787d3a85e53aff1cc966ec7c2fdeae7dcbe62f1f391ebd3700e97d2fb23b6
29
+ !! source digest: sha256:9cf05d0fe2d86804cc270aac54ceddd352f3201070bddd7aa356bf43f4e2ad84
30
30
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
31
31
 
32
32
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png