odoo-addon-l10n-br-fiscal 16.0.2.17.0__py3-none-any.whl → 16.0.19.4.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.
Files changed (162) hide show
  1. odoo/addons/l10n_br_fiscal/README.rst +11 -4
  2. odoo/addons/l10n_br_fiscal/__manifest__.py +20 -12
  3. odoo/addons/l10n_br_fiscal/constants/fiscal.py +64 -18
  4. odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.cest.csv +1043 -983
  5. odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.cfop.csv +620 -620
  6. odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.cst.csv +58 -0
  7. odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.document.type.csv +1 -0
  8. odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.legal.nature.csv +82 -0
  9. odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.nbs.csv +791 -764
  10. odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.operation.indicator.csv +27 -0
  11. odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.partner.profile.csv +11 -0
  12. odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.tax.classification.csv +163 -0
  13. odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.tax.csv +32 -0
  14. odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.tax.group.csv +3 -0
  15. odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal_icms_tax_definition_data.xml +340 -352
  16. odoo/addons/l10n_br_fiscal/data/operation_data.xml +1 -1
  17. odoo/addons/l10n_br_fiscal/data/simplified_tax_data.xml +5 -5
  18. odoo/addons/l10n_br_fiscal/data/uom.alias.csv +25 -0
  19. odoo/addons/l10n_br_fiscal/data/uom_data.xml +104 -33
  20. odoo/addons/l10n_br_fiscal/demo/__init__.py +21 -15
  21. odoo/addons/l10n_br_fiscal/demo/company_demo.xml +6 -0
  22. odoo/addons/l10n_br_fiscal/demo/fiscal_document_demo.xml +3 -377
  23. odoo/addons/l10n_br_fiscal/demo/fiscal_document_nfse_demo.xml +0 -12
  24. odoo/addons/l10n_br_fiscal/demo/fiscal_operation_demo.xml +2 -2
  25. odoo/addons/l10n_br_fiscal/demo/icms_tax_definition_demo.xml +5 -2
  26. odoo/addons/l10n_br_fiscal/demo/res_users_demo.xml +2 -2
  27. odoo/addons/l10n_br_fiscal/i18n/l10n_br_fiscal.pot +1161 -804
  28. odoo/addons/l10n_br_fiscal/i18n/pt_BR.po +22 -22
  29. odoo/addons/l10n_br_fiscal/migrations/16.0.13.0.0/pre-migration.py +25 -0
  30. odoo/addons/l10n_br_fiscal/migrations/16.0.14.0.0/pre-migration.py +30 -0
  31. odoo/addons/l10n_br_fiscal/migrations/16.0.14.0.5/pre-migration.py +15 -0
  32. odoo/addons/l10n_br_fiscal/migrations/16.0.4.0.0/pre-migration.py +220 -0
  33. odoo/addons/l10n_br_fiscal/migrations/16.0.5.0.0/pre-migration.py +33 -0
  34. odoo/addons/l10n_br_fiscal/migrations/16.0.5.2.0/pre-migration.py +21 -0
  35. odoo/addons/l10n_br_fiscal/models/__init__.py +3 -8
  36. odoo/addons/l10n_br_fiscal/models/cest.py +0 -8
  37. odoo/addons/l10n_br_fiscal/models/cfop.py +91 -0
  38. odoo/addons/l10n_br_fiscal/models/city_taxation_code.py +1 -3
  39. odoo/addons/l10n_br_fiscal/models/comment.py +2 -2
  40. odoo/addons/l10n_br_fiscal/models/cst.py +0 -1
  41. odoo/addons/l10n_br_fiscal/models/data_abstract.py +26 -0
  42. odoo/addons/l10n_br_fiscal/models/data_ncm_nbs_abstract.py +1 -1
  43. odoo/addons/l10n_br_fiscal/models/document.py +131 -222
  44. odoo/addons/l10n_br_fiscal/models/document_line.py +82 -5
  45. odoo/addons/l10n_br_fiscal/models/document_line_mixin.py +1952 -138
  46. odoo/addons/l10n_br_fiscal/models/document_mixin.py +741 -6
  47. odoo/addons/l10n_br_fiscal/models/document_related.py +12 -9
  48. odoo/addons/l10n_br_fiscal/models/document_serie.py +33 -0
  49. odoo/addons/l10n_br_fiscal/models/document_type.py +0 -6
  50. odoo/addons/l10n_br_fiscal/models/ibpt.py +1 -1
  51. odoo/addons/l10n_br_fiscal/models/icms_regulation.py +2 -2
  52. odoo/addons/l10n_br_fiscal/models/invalidate_number.py +4 -5
  53. odoo/addons/l10n_br_fiscal/models/legal_nature.py +20 -0
  54. odoo/addons/l10n_br_fiscal/models/nbm.py +0 -8
  55. odoo/addons/l10n_br_fiscal/models/ncm.py +0 -12
  56. odoo/addons/l10n_br_fiscal/models/operation.py +49 -15
  57. odoo/addons/l10n_br_fiscal/models/operation_dashboard.py +3 -2
  58. odoo/addons/l10n_br_fiscal/models/operation_indicator.py +58 -0
  59. odoo/addons/l10n_br_fiscal/models/operation_line.py +75 -6
  60. odoo/addons/l10n_br_fiscal/models/partner_profile.py +6 -0
  61. odoo/addons/l10n_br_fiscal/models/product_mixin.py +24 -21
  62. odoo/addons/l10n_br_fiscal/models/product_template.py +23 -13
  63. odoo/addons/l10n_br_fiscal/models/res_company.py +31 -9
  64. odoo/addons/l10n_br_fiscal/models/res_partner.py +38 -6
  65. odoo/addons/l10n_br_fiscal/models/simplified_tax.py +0 -3
  66. odoo/addons/l10n_br_fiscal/models/simplified_tax_range.py +8 -0
  67. odoo/addons/l10n_br_fiscal/models/tax.py +144 -55
  68. odoo/addons/l10n_br_fiscal/models/tax_classification.py +81 -0
  69. odoo/addons/l10n_br_fiscal/models/tax_definition.py +72 -23
  70. odoo/addons/l10n_br_fiscal/models/tax_pis_cofins.py +0 -3
  71. odoo/addons/l10n_br_fiscal/models/tax_pis_cofins_base.py +1 -1
  72. odoo/addons/l10n_br_fiscal/models/tax_pis_cofins_credit.py +1 -1
  73. odoo/addons/l10n_br_fiscal/models/uom_uom.py +15 -30
  74. odoo/addons/l10n_br_fiscal/security/fiscal_security.xml +11 -27
  75. odoo/addons/l10n_br_fiscal/security/ir.model.access.csv +11 -10
  76. odoo/addons/l10n_br_fiscal/static/description/index.html +27 -21
  77. odoo/addons/l10n_br_fiscal/static/src/js/list_renderer_with_button.esm.js +38 -0
  78. odoo/addons/l10n_br_fiscal/tests/__init__.py +3 -2
  79. odoo/addons/l10n_br_fiscal/tests/test_document_edition.py +308 -0
  80. odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_generic.py +23 -129
  81. odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_nfse.py +5 -15
  82. odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_serie.py +60 -0
  83. odoo/addons/l10n_br_fiscal/tests/test_ibpt.py +4 -3
  84. odoo/addons/l10n_br_fiscal/tests/test_icms_regulation.py +2 -2
  85. odoo/addons/l10n_br_fiscal/tests/test_ncm.py +4 -1
  86. odoo/addons/l10n_br_fiscal/tests/test_tax_benefit.py +17 -22
  87. odoo/addons/l10n_br_fiscal/tests/test_tax_classification.py +110 -0
  88. odoo/addons/l10n_br_fiscal/tools.py +1 -1
  89. odoo/addons/l10n_br_fiscal/views/cest_view.xml +2 -4
  90. odoo/addons/l10n_br_fiscal/views/cfop_view.xml +25 -5
  91. odoo/addons/l10n_br_fiscal/views/city_taxation_code.xml +1 -4
  92. odoo/addons/l10n_br_fiscal/views/cnae_view.xml +2 -4
  93. odoo/addons/l10n_br_fiscal/views/comment_view.xml +2 -4
  94. odoo/addons/l10n_br_fiscal/views/cst_view.xml +6 -8
  95. odoo/addons/l10n_br_fiscal/views/{document_fiscal_line_mixin_view.xml → document_line_mixin_view.xml} +525 -385
  96. odoo/addons/l10n_br_fiscal/views/document_line_view.xml +101 -82
  97. odoo/addons/l10n_br_fiscal/views/document_related_view.xml +44 -46
  98. odoo/addons/l10n_br_fiscal/views/document_serie_view.xml +2 -6
  99. odoo/addons/l10n_br_fiscal/views/document_type_view.xml +0 -8
  100. odoo/addons/l10n_br_fiscal/views/document_view.xml +303 -370
  101. odoo/addons/l10n_br_fiscal/views/icms_regulation_view.xml +14 -16
  102. odoo/addons/l10n_br_fiscal/views/icms_relief_view.xml +8 -10
  103. odoo/addons/l10n_br_fiscal/views/invalidate_number_view.xml +46 -48
  104. odoo/addons/l10n_br_fiscal/views/l10n_br_fiscal_action.xml +166 -280
  105. odoo/addons/l10n_br_fiscal/views/l10n_br_fiscal_menu.xml +25 -99
  106. odoo/addons/l10n_br_fiscal/views/legal_nature_view.xml +40 -0
  107. odoo/addons/l10n_br_fiscal/views/nbm_view.xml +5 -6
  108. odoo/addons/l10n_br_fiscal/views/nbs_view.xml +5 -6
  109. odoo/addons/l10n_br_fiscal/views/ncm_view.xml +12 -15
  110. odoo/addons/l10n_br_fiscal/views/operation_dashboard_view.xml +13 -12
  111. odoo/addons/l10n_br_fiscal/views/operation_indicator_view.xml +75 -0
  112. odoo/addons/l10n_br_fiscal/views/operation_line_view.xml +22 -21
  113. odoo/addons/l10n_br_fiscal/views/operation_view.xml +4 -19
  114. odoo/addons/l10n_br_fiscal/views/partner_profile_view.xml +3 -6
  115. odoo/addons/l10n_br_fiscal/views/product_genre_view.xml +7 -9
  116. odoo/addons/l10n_br_fiscal/views/product_product_view.xml +37 -14
  117. odoo/addons/l10n_br_fiscal/views/product_template_view.xml +34 -14
  118. odoo/addons/l10n_br_fiscal/views/res_company_view.xml +55 -52
  119. odoo/addons/l10n_br_fiscal/views/res_config_settings_view.xml +23 -28
  120. odoo/addons/l10n_br_fiscal/views/res_partner_view.xml +22 -2
  121. odoo/addons/l10n_br_fiscal/views/service_type_view.xml +7 -8
  122. odoo/addons/l10n_br_fiscal/views/simplified_tax_range_view.xml +0 -2
  123. odoo/addons/l10n_br_fiscal/views/simplified_tax_view.xml +0 -2
  124. odoo/addons/l10n_br_fiscal/views/tax_classification.xml +110 -0
  125. odoo/addons/l10n_br_fiscal/views/tax_definition_view.xml +157 -129
  126. odoo/addons/l10n_br_fiscal/views/tax_estimate_view.xml +0 -2
  127. odoo/addons/l10n_br_fiscal/views/tax_group_view.xml +3 -6
  128. odoo/addons/l10n_br_fiscal/views/tax_ipi_control_seal_view.xml +0 -2
  129. odoo/addons/l10n_br_fiscal/views/tax_ipi_guideline_class_view.xml +0 -2
  130. odoo/addons/l10n_br_fiscal/views/tax_ipi_guideline_view.xml +2 -4
  131. odoo/addons/l10n_br_fiscal/views/tax_pis_cofins_base_view.xml +2 -4
  132. odoo/addons/l10n_br_fiscal/views/tax_pis_cofins_credit_view.xml +2 -4
  133. odoo/addons/l10n_br_fiscal/views/tax_pis_cofins_view.xml +5 -7
  134. odoo/addons/l10n_br_fiscal/views/tax_view.xml +5 -7
  135. odoo/addons/l10n_br_fiscal/views/uom_uom.xml +24 -17
  136. odoo/addons/l10n_br_fiscal/wizards/__init__.py +1 -0
  137. odoo/addons/l10n_br_fiscal/wizards/base_wizard_mixin.py +1 -1
  138. odoo/addons/l10n_br_fiscal/wizards/document_import_wizard_mixin.py +129 -0
  139. odoo/addons/l10n_br_fiscal/wizards/document_import_wizard_mixin.xml +41 -0
  140. {odoo_addon_l10n_br_fiscal-16.0.2.17.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.19.4.0.dist-info}/METADATA +15 -6
  141. odoo_addon_l10n_br_fiscal-16.0.19.4.0.dist-info/RECORD +210 -0
  142. {odoo_addon_l10n_br_fiscal-16.0.2.17.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.19.4.0.dist-info}/WHEEL +1 -1
  143. odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal_email_template.xml +0 -68
  144. odoo/addons/l10n_br_fiscal/data/partner_profile_data.xml +0 -96
  145. odoo/addons/l10n_br_fiscal/data/uom_alternative_data.xml +0 -58
  146. odoo/addons/l10n_br_fiscal/demo/l10n_br_fiscal_document_email.xml +0 -54
  147. odoo/addons/l10n_br_fiscal/demo/subsequent_operation_demo.xml +0 -10
  148. odoo/addons/l10n_br_fiscal/models/document_email.py +0 -74
  149. odoo/addons/l10n_br_fiscal/models/document_line_mixin_methods.py +0 -913
  150. odoo/addons/l10n_br_fiscal/models/document_mixin_fields.py +0 -473
  151. odoo/addons/l10n_br_fiscal/models/document_mixin_methods.py +0 -269
  152. odoo/addons/l10n_br_fiscal/models/document_move_mixin.py +0 -261
  153. odoo/addons/l10n_br_fiscal/models/subsequent_document.py +0 -203
  154. odoo/addons/l10n_br_fiscal/models/subsequent_operation.py +0 -54
  155. odoo/addons/l10n_br_fiscal/models/uom_uom_alternative.py +0 -22
  156. odoo/addons/l10n_br_fiscal/tests/test_subsequent_operation.py +0 -71
  157. odoo/addons/l10n_br_fiscal/tests/test_uom_uom.py +0 -22
  158. odoo/addons/l10n_br_fiscal/views/document_email_view.xml +0 -48
  159. odoo/addons/l10n_br_fiscal/views/subsequent_document_view.xml +0 -43
  160. odoo/addons/l10n_br_fiscal/views/subsequent_operation_view.xml +0 -21
  161. odoo_addon_l10n_br_fiscal-16.0.2.17.0.dist-info/RECORD +0 -205
  162. {odoo_addon_l10n_br_fiscal-16.0.2.17.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.19.4.0.dist-info}/top_level.txt +0 -0
@@ -1,1023 +1,1163 @@
1
1
  <?xml version="1.0" encoding="utf-8" ?>
2
2
  <odoo>
3
-
4
- <record id="document_fiscal_line_mixin_form" model="ir.ui.view">
5
- <field name="name">l10n_br_fiscal.document.line.mixin.form</field>
6
- <field name="model">l10n_br_fiscal.document.line</field>
7
- <field name="arch" type="xml">
8
- <form>
9
- <group name="fiscal_fields" invisible="1">
10
- <field name="currency_id" force_save="1" invisible="1" />
11
- <field name="fiscal_operation_type" force_save="1" invisible="1" />
12
- <field name="operation_fiscal_type" force_save="1" invisible="1" />
13
- <field name="company_id" force_save="1" invisible="1" />
14
- <field name="partner_id" force_save="1" invisible="1" />
15
- <field name="fiscal_type" force_save="1" invisible="1" />
16
- <field name="partner_company_type" force_save="1" invisible="1" />
17
- <field name="tax_framework" force_save="1" invisible="1" />
18
- <field name="amount_tax_not_included" force_save="1" invisible="1" />
19
- <field name="amount_tax_withholding" force_save="1" invisible="1" />
20
- <field name="cfop_destination" force_save="1" invisible="1" />
21
- <field name="fiscal_genre_id" force_save="1" invisible="1" />
22
- <field name="fiscal_genre_code" force_save="1" invisible="1" />
23
- <field name="ncm_id" force_save="1" invisible="1" />
24
- <field name="nbm_id" force_save="1" invisible="1" />
25
- <field name="cest_id" force_save="1" invisible="1" />
26
- <field name="nbs_id" force_save="1" invisible="1" />
27
- <field name="service_type_id" force_save="1" invisible="1" />
28
- <field name="city_taxation_code_id" force_save="1" invisible="1" />
29
- <field name="uot_id" force_save="1" invisible="1" />
30
- <field name="fiscal_price" force_save="1" invisible="1" />
31
- <field name="fiscal_quantity" force_save="1" invisible="1" />
32
- <field name="fiscal_tax_ids" force_save="1" invisible="1" readonly="1" />
33
- <field name="allow_csll_irpj" force_save="1" invisible="1" />
34
- </group>
35
- <notebook>
36
- <field name="product_id" force_save="1" invisible="1" />
37
- <page name="fiscal_taxes" string="Taxes">
38
- <group>
39
- <field name="tax_framework" invisible="1" />
40
- <field
3
+ <record id="document_fiscal_line_mixin_form" model="ir.ui.view">
4
+ <field name="name">l10n_br_fiscal.document.line.mixin.form</field>
5
+ <field name="model">l10n_br_fiscal.document.line</field>
6
+ <field name="arch" type="xml">
7
+ <form>
8
+ <group name="fiscal_fields" invisible="1">
9
+ <field name="currency_id" force_save="1" invisible="1" />
10
+ <field name="fiscal_operation_type" force_save="1" invisible="1" />
11
+ <field name="fiscal_operation_id" force_save="1" invisible="1" />
12
+ <field
13
+ name="fiscal_operation_line_id"
14
+ force_save="1"
15
+ invisible="1"
16
+ />
17
+ <field name="operation_fiscal_type" force_save="1" invisible="1" />
18
+ <field name="ipi_guideline_id" force_save="1" invisible="1" />
19
+ <field name="company_id" force_save="1" invisible="1" />
20
+ <field name="partner_id" force_save="1" invisible="1" />
21
+ <field name="fiscal_type" force_save="1" invisible="1" />
22
+ <field name="partner_company_type" force_save="1" invisible="1" />
23
+ <field name="tax_framework" force_save="1" invisible="1" />
24
+ <field
25
+ name="amount_tax_not_included"
26
+ force_save="1"
27
+ invisible="1"
28
+ />
29
+ <field name="amount_tax_withholding" force_save="1" invisible="1" />
30
+ <field name="cfop_destination" force_save="1" invisible="1" />
31
+ <field name="fiscal_genre_id" force_save="1" invisible="1" />
32
+ <field name="fiscal_genre_code" force_save="1" invisible="1" />
33
+ <field name="ncm_id" force_save="1" invisible="1" />
34
+ <field name="nbm_id" force_save="1" invisible="1" />
35
+ <field name="cest_id" force_save="1" invisible="1" />
36
+ <field name="nbs_id" force_save="1" invisible="1" />
37
+ <field name="service_type_id" force_save="1" invisible="1" />
38
+ <field name="city_taxation_code_id" force_save="1" invisible="1" />
39
+ <field name="uot_id" force_save="1" invisible="1" />
40
+ <field name="uom_id" force_save="1" invisible="1" />
41
+ <field name="fiscal_price" force_save="1" invisible="1" />
42
+ <field name="fiscal_quantity" force_save="1" invisible="1" />
43
+ <field
44
+ name="fiscal_tax_ids"
45
+ force_save="1"
46
+ invisible="1"
47
+ readonly="1"
48
+ />
49
+ <field name="allow_csll_irpj" force_save="1" invisible="1" />
50
+ <field name="cst_code_prefix_like" force_save="1" invisible="1" />
51
+ </group>
52
+ <notebook>
53
+ <field name="product_id" force_save="1" invisible="1" />
54
+ <page name="fiscal_taxes" string="Taxes">
55
+ <group>
56
+ <field name="tax_framework" invisible="1" />
57
+ <field
41
58
  name="tax_icms_or_issqn"
42
59
  force_save="1"
43
60
  attrs="{'readonly': [('product_id', '!=', False), ('tax_icms_or_issqn', '!=', False)], 'required': [('tax_icms_or_issqn', '!=', False), ('fiscal_tax_ids', '!=', False)]}"
44
61
  />
45
- </group>
46
- <notebook>
47
- <page
62
+ </group>
63
+ <notebook>
64
+ <page name="cbs/ibs" string="CBS/IBS">
65
+ <group string="Tax Classification">
66
+ <field
67
+ name="tax_classification_id"
68
+ force_save="1"
69
+ options="{'no_create': True, 'no_create_edit': True}"
70
+ />
71
+ </group>
72
+ <group string="CBS">
73
+ <group>
74
+ <field
75
+ name="cbs_tax_id"
76
+ options="{'no_create': True, 'no_create_edit': True}"
77
+ />
78
+ <field
79
+ name="cbs_cst_id"
80
+ force_save="1"
81
+ attrs="{'readonly': [('cbs_tax_id', '!=', False)]}"
82
+ options="{'no_create': True, 'no_create_edit': True}"
83
+ />
84
+ <field
85
+ name="cbs_cst_code"
86
+ readonly="1"
87
+ invisible="1"
88
+ />
89
+ <field
90
+ name="cbs_base_type"
91
+ force_save="1"
92
+ attrs="{'readonly': [('cbs_tax_id', '!=', False)]}"
93
+ />
94
+ </group>
95
+ <group>
96
+ <field
97
+ name="cbs_base"
98
+ force_save="1"
99
+ attrs="{'readonly': [('cbs_tax_id', '!=', False)]}"
100
+ />
101
+ <field
102
+ name="cbs_percent"
103
+ force_save="1"
104
+ attrs="{'readonly': [('cbs_tax_id', '!=', False)]}"
105
+ />
106
+ <field
107
+ name="cbs_reduction"
108
+ force_save="1"
109
+ attrs="{'readonly': [('cbs_tax_id', '!=', False)]}"
110
+ />
111
+ <field
112
+ name="cbs_value"
113
+ force_save="1"
114
+ attrs="{'readonly': [('cbs_tax_id', '!=', False)]}"
115
+ />
116
+ </group>
117
+ </group>
118
+ <group string="IBS">
119
+ <group>
120
+ <field
121
+ name="ibs_tax_id"
122
+ options="{'no_create': True, 'no_create_edit': True}"
123
+ />
124
+ <field
125
+ name="ibs_cst_id"
126
+ force_save="1"
127
+ attrs="{'readonly': [('ibs_tax_id', '!=', False)]}"
128
+ options="{'no_create': True, 'no_create_edit': True}"
129
+ />
130
+ <field
131
+ name="ibs_cst_code"
132
+ readonly="1"
133
+ invisible="1"
134
+ />
135
+ <field
136
+ name="ibs_base_type"
137
+ force_save="1"
138
+ attrs="{'readonly': [('ibs_tax_id', '!=', False)]}"
139
+ />
140
+ </group>
141
+ <group>
142
+ <field
143
+ name="ibs_base"
144
+ force_save="1"
145
+ attrs="{'readonly': [('ibs_tax_id', '!=', False)]}"
146
+ />
147
+ <field
148
+ name="ibs_percent"
149
+ force_save="1"
150
+ attrs="{'readonly': [('ibs_tax_id', '!=', False)]}"
151
+ />
152
+ <field
153
+ name="ibs_reduction"
154
+ force_save="1"
155
+ attrs="{'readonly': [('ibs_tax_id', '!=', False)]}"
156
+ />
157
+ <field
158
+ name="ibs_value"
159
+ force_save="1"
160
+ attrs="{'readonly': [('ibs_tax_id', '!=', False)]}"
161
+ />
162
+ </group>
163
+ </group>
164
+ </page>
165
+ <page
48
166
  name="issqn"
49
167
  string="ISSQN"
50
168
  attrs="{'invisible': [('tax_icms_or_issqn', '!=', 'issqn')]}"
51
169
  >
52
- <group>
53
- <field
170
+ <group>
171
+ <field
54
172
  name="issqn_tax_id"
55
173
  options="{'no_create': True, 'no_create_edit': True}"
56
174
  />
57
- <field
175
+ <field
58
176
  name="issqn_fg_city_id"
59
177
  options="{'no_create': True, 'no_create_edit': True}"
60
178
  />
61
- <field
179
+ <field
62
180
  name="issqn_eligibility"
63
181
  attrs="{'required': [('tax_icms_or_issqn', '=', 'issqn')]}"
64
182
  />
65
- <field
183
+ <field
66
184
  name="issqn_incentive"
67
185
  attrs="{'required': [('tax_icms_or_issqn', '=', 'issqn')]}"
68
186
  />
69
- </group>
70
- <group>
71
- <group>
72
- <field
187
+ </group>
188
+ <group>
189
+ <group>
190
+ <field
73
191
  name="issqn_base"
74
192
  force_save="1"
75
193
  attrs="{'readonly': [('issqn_tax_id', '!=', False)]}"
76
194
  />
77
- <field
195
+ <field
78
196
  name="issqn_percent"
79
197
  force_save="1"
80
198
  attrs="{'readonly': [('issqn_tax_id', '!=', False)]}"
81
199
  />
82
- <field
200
+ <field
83
201
  name="issqn_reduction"
84
202
  force_save="1"
85
203
  attrs="{'readonly': [('issqn_tax_id', '!=', False)]}"
86
204
  />
87
- <field
205
+ <field
88
206
  name="issqn_value"
89
207
  force_save="1"
90
208
  attrs="{'readonly': [('issqn_tax_id', '!=', False)]}"
91
209
  />
92
- </group>
93
- <group>
94
- <field
210
+ </group>
211
+ <group>
212
+ <field
95
213
  name="issqn_deduction_amount"
96
214
  force_save="1"
97
215
  attrs="{'readonly': [('issqn_tax_id', '!=', False)]}"
98
216
  />
99
- <field
217
+ <field
100
218
  name="issqn_other_amount"
101
219
  force_save="1"
102
220
  attrs="{'readonly': [('issqn_tax_id', '!=', False)]}"
103
221
  />
104
- <field
222
+ <field
105
223
  name="issqn_desc_incond_amount"
106
224
  force_save="1"
107
225
  attrs="{'readonly': [('issqn_tax_id', '!=', False)]}"
108
226
  />
109
- <field
227
+ <field
110
228
  name="issqn_desc_cond_amount"
111
229
  force_save="1"
112
230
  attrs="{'readonly': [('issqn_tax_id', '!=', False)]}"
113
231
  />
114
- <field
232
+ <field
115
233
  name="issqn_desc_cond_amount"
116
234
  force_save="1"
117
235
  attrs="{'readonly': [('issqn_tax_id', '!=', False)]}"
118
236
  />
119
- </group>
120
- </group>
121
- <group string="Retenções">
122
- <field
237
+ </group>
238
+ </group>
239
+ <group string="Retenções">
240
+ <field
123
241
  name="issqn_wh_tax_id"
124
242
  options="{'no_create': True, 'no_create_edit': True}"
125
243
  />
126
- </group>
127
- <group>
128
- <group>
129
- <field
244
+ </group>
245
+ <group>
246
+ <group>
247
+ <field
130
248
  name="issqn_wh_base"
131
249
  force_save="1"
132
250
  attrs="{'readonly': [('issqn_wh_tax_id', '!=', False)]}"
133
251
  />
134
- <field
252
+ <field
135
253
  name="issqn_wh_percent"
136
254
  force_save="1"
137
255
  attrs="{'readonly': [('issqn_wh_tax_id', '!=', False)]}"
138
256
  />
139
- </group>
140
- <group>
141
- <field
257
+ </group>
258
+ <group>
259
+ <field
142
260
  name="issqn_wh_reduction"
143
261
  force_save="1"
144
262
  attrs="{'readonly': [('issqn_wh_tax_id', '!=', False)]}"
145
263
  />
146
- <field
264
+ <field
147
265
  name="issqn_wh_value"
148
266
  force_save="1"
149
267
  attrs="{'readonly': [('issqn_wh_tax_id', '!=', False)]}"
150
268
  />
151
- </group>
152
- </group>
153
- </page>
154
- <page
269
+ </group>
270
+ </group>
271
+ </page>
272
+ <page
155
273
  name="icms"
156
274
  string="ICMS"
157
275
  attrs="{'invisible': [('tax_icms_or_issqn', '!=', 'icms')]}"
158
276
  >
159
- <group name="icms" string="ICMS">
160
- <field
277
+ <group name="icms" string="ICMS">
278
+ <field
161
279
  name="icms_tax_id"
162
280
  attrs="{'invisible': [('tax_framework', 'in', ('1', '2'))]}"
163
281
  options="{'no_create': True, 'no_create_edit': True}"
164
282
  />
165
- <field
283
+ <field
166
284
  name="icmssn_tax_id"
167
285
  attrs="{'invisible': [('tax_framework', '=', '3')]}"
168
286
  options="{'no_create': True, 'no_create_edit': True}"
169
287
  />
170
- <field
288
+ <field
171
289
  name="icms_cst_id"
172
290
  force_save="1"
173
291
  attrs="{'readonly': [('icms_tax_id', '!=', False)]}"
174
292
  options="{'no_create': True, 'no_create_edit': True}"
175
293
  />
176
- <field name="icms_cst_code" readonly="1" invisible="1" />
177
- <field
294
+ <field
295
+ name="icms_cst_code"
296
+ readonly="1"
297
+ invisible="1"
298
+ />
299
+ <field
178
300
  name="icms_origin"
179
301
  force_save="1"
180
302
  attrs="{'readonly': ['|', ('icms_tax_id', '!=', False), ('icmssn_tax_id', '!=', False)]}"
181
303
  />
182
- <field name="icms_tax_benefit_id" force_save="1" />
183
- </group>
184
- <group>
185
- <group>
186
- <field
304
+ <field name="icms_tax_benefit_id" force_save="1" />
305
+ </group>
306
+ <group>
307
+ <group>
308
+ <field
187
309
  name="icmssn_range_id"
188
310
  force_save="1"
189
311
  readonly="1"
190
312
  attrs="{'invisible': [('tax_framework', '=', '3')]}"
191
313
  options="{'no_create': True, 'no_create_edit': True}"
192
314
  />
193
- <field
315
+ <field
194
316
  name="icms_base_type"
195
317
  force_save="1"
196
318
  attrs="{'readonly': ['|', ('icms_tax_id', '=', False), ('icmssn_tax_id', '=', False)]}"
197
319
  />
198
- <field
320
+ <field
199
321
  name="icmssn_base"
200
322
  force_save="1"
201
323
  attrs="{'readonly': [('icmssn_tax_id', '!=', False)], 'invisible': [('tax_framework', '=', '3')]}"
202
324
  />
203
- <field
325
+ <field
204
326
  name="icmssn_reduction"
205
327
  force_save="1"
206
328
  attrs="{'readonly': [('icmssn_tax_id', '!=', False)], 'invisible': [('tax_framework', '=', '3')]}"
207
329
  />
208
- <field
330
+ <field
209
331
  name="icms_base"
210
332
  force_save="1"
211
333
  attrs="{'readonly': [('icms_tax_id', '!=', False)], 'invisible': ['|', ('tax_framework', '=', '2'), ('icms_cst_code', 'not in', ('00', '10', '20', '30', '40', '41', '50', '51', '60', '70', '90', '900'))]}"
212
334
  />
213
- <field
335
+ <field
214
336
  name="icms_percent"
215
337
  force_save="1"
216
338
  attrs="{'readonly': [('icms_tax_id', '!=', False)], 'invisible': ['|', ('tax_framework', '=', '2'), ('icms_cst_code', 'not in', ('00', '10', '20', '30', '40', '41', '50', '51', '60', '70', '90', '900'))]}"
217
339
  />
218
- </group>
219
- <group>
220
- <field
340
+ </group>
341
+ <group>
342
+ <field
221
343
  name="icmssn_percent"
222
344
  force_save="1"
223
345
  attrs="{'readonly': [('icmssn_tax_id', '!=', False)], 'invisible': [('tax_framework', '=', '3')]}"
224
346
  />
225
- <field
347
+ <field
226
348
  name="icmssn_credit_value"
227
349
  force_save="1"
228
350
  attrs="{'readonly': [('icmssn_tax_id', '!=', False)], 'invisible': [('tax_framework', '=', '3')]}"
229
351
  />
230
- <field
352
+ <field
231
353
  name="icms_reduction"
232
354
  force_save="1"
233
355
  attrs="{'readonly': [('icms_tax_id', '!=', False)], 'invisible': ['|', ('tax_framework', '=', '3'), ('icms_cst_code', '!=', '900')]}"
234
356
  />
235
- <field
357
+ <field
236
358
  name="icms_value"
237
359
  force_save="1"
238
360
  attrs="{'readonly': [('icms_tax_id', '!=', False)], 'invisible': ['|', ('tax_framework', '=', '2'), ('icms_cst_code', 'not in', ('00', '10', '20', '30', '40', '41', '50', '51', '60', '70', '90', '900'))]}"
239
361
  />
240
- <field
362
+ <field
241
363
  name="icms_relief_id"
242
364
  force_save="1"
243
365
  attrs="{'readonly': [('icms_tax_id', '!=', False), ('icms_cst_code', 'not in', ('20', '30', '40', '41', '50', '70', '90'))], 'invisible': ['|', ('tax_framework', 'in', ('1', '2')), ('icms_cst_code', 'not in', ('20', '30', '40', '41', '50', '70', '90'))]}"
244
366
  />
245
- <field
367
+ <field
246
368
  name="icms_relief_value"
247
369
  force_save="1"
248
370
  attrs="{'readonly': [('icms_tax_id', '!=', False), ('icms_cst_code', 'not in', ('20', '30', '40', '41', '50', '70', '90'))], 'invisible': ['|', ('tax_framework', 'in', ('1', '2')), ('icms_cst_code', 'not in', ('20', '30', '40', '41', '50', '70', '90'))]}"
249
371
  />
250
- <field
372
+ <field
251
373
  name="icms_substitute"
252
374
  force_save="1"
253
375
  attrs="{'readonly': [('icms_cst_code', '!=', '500')]}"
254
376
  />
255
- </group>
256
- </group>
257
- <group>
258
- <group
377
+ </group>
378
+ </group>
379
+ <group>
380
+ <group
259
381
  name="icmsst"
260
382
  string="ICMS ST"
261
383
  attrs="{'invisible': [('icms_cst_code', 'not in', ('10', '30', '70', '90', '201', '202', '203', '500', '900'))]}"
262
384
  >
263
- <field
385
+ <field
264
386
  name="icmsst_tax_id"
265
387
  attrs="{'invisible': [('icms_cst_code', 'in', ('60', '500'))]}"
266
388
  options="{'no_create': True, 'no_create_edit': True}"
267
389
  />
268
- <field
390
+ <field
269
391
  name="icmsst_base_type"
270
392
  force_save="1"
271
393
  attrs="{'readonly': [('icmssn_tax_id', '!=', False)], 'invisible': ['|', ('tax_framework', '=', '3'), ('icms_cst_code', 'in', ('60', '500'))]}"
272
394
  />
273
- <field
395
+ <field
274
396
  name="icmsst_mva_percent"
275
397
  force_save="1"
276
398
  attrs="{'readonly': [('icms_tax_id', '!=', False)], 'invisible': [('icms_cst_code', 'in', ('60', '500'))]}"
277
399
  />
278
- <field
400
+ <field
279
401
  name="icmsst_percent"
280
402
  force_save="1"
281
403
  attrs="{'readonly': [('icms_tax_id', '!=', False)], 'invisible': [('icms_cst_code', 'in', ('60', '500'))]}"
282
404
  />
283
- <field
405
+ <field
284
406
  name="icmsst_reduction"
285
407
  force_save="1"
286
408
  attrs="{'readonly': [('icms_tax_id', '!=', False)], 'invisible': [('icms_cst_code', 'in', ('60', '500'))]}"
287
409
  />
288
- <field
410
+ <field
289
411
  name="icmsst_base"
290
412
  force_save="1"
291
413
  attrs="{'readonly': [('icms_tax_id', '!=', False)], 'invisible': [('icms_cst_code', 'in', ('60', '500'))]}"
292
414
  />
293
- <field
415
+ <field
294
416
  name="icmsst_value"
295
417
  force_save="1"
296
418
  attrs="{'readonly': [('icms_tax_id', '!=', False)], 'invisible': [('icms_cst_code', 'in', ('60', '500'))]}"
297
419
  />
298
- <field
420
+ <field
299
421
  name="icmsst_wh_base"
300
422
  force_save="1"
301
423
  attrs="{'readonly': [('icms_tax_id', '!=', False)], 'invisible': [('icms_cst_code', 'not in', ('60', '500'))]}"
302
424
  />
303
- <field
425
+ <field
304
426
  name="icmsst_wh_percent"
305
427
  force_save="1"
306
428
  attrs="{'readonly': [('icms_tax_id', '!=', False)], 'invisible': [('icms_cst_code', 'not in', ('60', '500'))]}"
307
429
  />
308
- <field
430
+ <field
309
431
  name="icmsst_wh_value"
310
432
  force_save="1"
311
433
  attrs="{'readonly': [('icms_tax_id', '!=', False)], 'invisible': [('icms_cst_code', 'not in', ('60', '500'))]}"
312
434
  />
313
- </group>
314
- <group
435
+ </group>
436
+ <group
315
437
  name="icms_fcp"
316
438
  string="ICMS FCP"
317
439
  attrs="{'invisible': [('partner_company_type', 'in', ('company', False))], 'invisible': [('icms_cst_code', 'in', ('40', '41', '50', '101', '102', '103', '300', '400'))]}"
318
440
  >
319
- <field
441
+ <field
320
442
  name="icmsfcp_tax_id"
321
443
  attrs="{'invisible': [('icms_cst_code', '=', '500')]}"
322
444
  options="{'no_create': True, 'no_create_edit': True}"
323
445
  />
324
- <field
446
+ <field
325
447
  name="icmsfcp_base"
326
448
  force_save="1"
327
449
  attrs="{'readonly': [('icmsfcp_tax_id', '!=', False)], 'invisible': [('icms_cst_code', '=', '500')]}"
328
450
  />
329
- <field
451
+ <field
330
452
  name="icmsfcp_percent"
331
453
  force_save="1"
332
454
  attrs="{'readonly': [('icmsfcp_tax_id', '!=', False)], 'invisible': [('icms_cst_code', '=', '500')]}"
333
455
  />
334
- <field
456
+ <field
335
457
  name="icmsfcp_value"
336
458
  force_save="1"
337
459
  attrs="{'readonly': [('icmsfcp_tax_id', '!=', False)], 'invisible': [('icms_cst_code', '=', '500')]}"
338
460
  />
339
- <field
461
+ <field
340
462
  name="icmsfcp_base_wh"
341
463
  force_save="1"
342
464
  attrs="{'invisible': [('icms_cst_code', 'not in', ('60', '500'))]}"
343
465
  />
344
- <field
466
+ <field
345
467
  name="icmsfcp_wh_percent"
346
468
  force_save="1"
347
469
  attrs="{'invisible': [('icms_cst_code', 'not in', ('60', '500'))]}"
348
470
  />
349
- <field
471
+ <field
350
472
  name="icmsfcp_value_wh"
351
473
  force_save="1"
352
474
  attrs="{'invisible': [('icms_cst_code', 'not in', ('60', '500'))]}"
353
475
  />
354
- </group>
355
- <group
476
+ </group>
477
+ <group
356
478
  name="icms_fcp_st"
357
479
  string="ICMS FCP ST"
358
480
  attrs="{'invisible': [('icms_cst_code', 'not in', ('10', '30', '70', '90', '201', '202', '203', '500', '900'))]}"
359
481
  >
360
- <field
482
+ <field
361
483
  name="icmsfcpst_tax_id"
362
484
  attrs="{'invisible': [('icms_cst_code', '=', '500')]}"
363
485
  options="{'no_create': True, 'no_create_edit': True}"
364
486
  />
365
- <field
487
+ <field
366
488
  name="icmsfcpst_base"
367
489
  force_save="1"
368
490
  attrs="{'readonly': [('icmsfcp_tax_id', '!=', False)], 'invisible': [('icms_cst_code', '=', '500')]}"
369
491
  />
370
- <field
492
+ <field
371
493
  name="icmsfcpst_percent"
372
494
  force_save="1"
373
495
  attrs="{'readonly': [('icmsfcp_tax_id', '!=', False)], 'invisible': [('icms_cst_code', '=', '500')]}"
374
496
  />
375
- <field
497
+ <field
376
498
  name="icmsfcpst_value"
377
499
  force_save="1"
378
500
  attrs="{'readonly': [('icmsfcp_tax_id', '!=', False)], 'invisible': [('icms_cst_code', '=', '500')]}"
379
501
  />
380
- </group>
381
- <group
502
+ </group>
503
+ <group
382
504
  name="icms_difal"
383
505
  string="ICMS DIFAL"
384
506
  attrs="{'invisible': [('partner_company_type', 'in', ('company', False)), ('tax_framework', '=', '1'), ('cfop_destination', 'in', ('1', '3', False))]}"
385
507
  >
386
- <field
508
+ <field
387
509
  name="icms_destination_base"
388
510
  force_save="1"
389
511
  attrs="{'readonly': [('icms_tax_id', '!=', False)]}"
390
512
  />
391
- <field
513
+ <field
392
514
  name="icms_origin_percent"
393
515
  force_save="1"
394
516
  attrs="{'readonly': [('icms_tax_id', '!=', False)]}"
395
517
  />
396
- <field
518
+ <field
397
519
  name="icms_destination_percent"
398
520
  force_save="1"
399
521
  attrs="{'readonly': [('icms_tax_id', '!=', False)]}"
400
522
  />
401
- <field
523
+ <field
402
524
  name="icms_sharing_percent"
403
525
  force_save="1"
404
526
  attrs="{'readonly': [('icms_tax_id', '!=', False)]}"
405
527
  />
406
- <field
528
+ <field
407
529
  name="icms_origin_value"
408
530
  force_save="1"
409
531
  attrs="{'readonly': [('icms_tax_id', '!=', False)]}"
410
532
  />
411
- <field
533
+ <field
412
534
  name="icms_destination_value"
413
535
  force_save="1"
414
536
  attrs="{'readonly': [('icms_tax_id', '!=', False)]}"
415
537
  />
416
- </group>
417
- <group
538
+ </group>
539
+ <group
418
540
  name="icms_effective"
419
541
  string="ICMS Effective Calculation"
420
542
  attrs="{'invisible': [('icms_cst_code', 'not in', ('60', '500'))]}"
421
543
  >
422
- <field
544
+ <field
423
545
  name="icms_effective_reduction"
424
546
  force_save="1"
425
547
  attr="{'invisible': [('icms_cst_code', '!=', '500')]}"
426
548
  />
427
- <field
549
+ <field
428
550
  name="icms_effective_base"
429
551
  force_save="1"
430
552
  attr="{'invisible': [('icms_cst_code', '!=', '500')]}"
431
553
  />
432
- <field
554
+ <field
433
555
  name="icms_effective_percent"
434
556
  force_save="1"
435
557
  attr="{'invisible': [('icms_cst_code', '!=', '500')]}"
436
558
  />
437
- <field
559
+ <field
438
560
  name="icms_effective_value"
439
561
  force_save="1"
440
562
  attr="{'invisible': [('icms_cst_code', '!=', '500')]}"
441
563
  />
442
- </group>
443
- </group>
444
- </page>
445
- <page
564
+ </group>
565
+ </group>
566
+ </page>
567
+ <page
446
568
  name="ipi"
447
569
  string="IPI"
448
570
  attrs="{'invisible': [('tax_icms_or_issqn', '=', 'issqn')]}"
449
571
  >
450
- <group string="IPI">
451
- <field
572
+ <group string="IPI">
573
+ <field
452
574
  name="ipi_tax_id"
453
575
  options="{'no_create': True, 'no_create_edit': True}"
454
576
  />
455
- <field
577
+ <field
456
578
  name="ipi_cst_id"
457
579
  force_save="1"
458
580
  attrs="{'readonly': [('ipi_tax_id', '!=', False)]}"
459
581
  options="{'no_create': True, 'no_create_edit': True}"
460
582
  />
461
- <field name="ipi_cst_code" readonly="1" invisible="1" />
462
- <field
583
+ <field
584
+ name="ipi_cst_code"
585
+ readonly="1"
586
+ invisible="1"
587
+ />
588
+ <field
463
589
  name="ipi_guideline_id"
464
590
  force_save="1"
465
591
  attrs="{'readonly': [('ipi_tax_id', '!=', False)]}"
466
592
  options="{'no_create': True, 'no_create_edit': True}"
467
593
  />
468
- </group>
469
- <group>
470
- <group>
471
- <field
594
+ </group>
595
+ <group>
596
+ <group>
597
+ <field
472
598
  name="ipi_base_type"
473
599
  force_save="1"
474
600
  attrs="{'readonly': [('ipi_tax_id', '!=', False)]}"
475
601
  />
476
- <field
602
+ <field
477
603
  name="ipi_percent"
478
604
  force_save="1"
479
605
  attrs="{'readonly': [('ipi_tax_id', '!=', False)]}"
480
606
  />
481
- <field
607
+ <field
482
608
  name="ipi_reduction"
483
609
  force_save="1"
484
610
  attrs="{'readonly': [('ipi_tax_id', '!=', False)]}"
485
611
  />
486
- </group>
487
- <group>
488
- <field
612
+ </group>
613
+ <group>
614
+ <field
489
615
  name="ipi_base"
490
616
  force_save="1"
491
617
  attrs="{'readonly': [('ipi_tax_id', '!=', False)]}"
492
618
  />
493
- <field
619
+ <field
494
620
  name="ipi_value"
495
621
  force_save="1"
496
622
  attrs="{'readonly': [('ipi_tax_id', '!=', False)]}"
497
623
  />
498
- </group>
499
- </group>
500
- <group
624
+ </group>
625
+ </group>
626
+ <group
501
627
  string="Devolução do IPI"
502
628
  attrs="{'invisible': [('operation_fiscal_type', 'in', ['purchase', 'sale'])]}"
503
629
  >
504
- <field name="p_devol" />
505
- <field name="ipi_devol_value" />
506
- </group>
507
- </page>
508
- <page
630
+ <field name="p_devol" />
631
+ <field name="ipi_devol_value" />
632
+ </group>
633
+ </page>
634
+ <page
509
635
  name="ii"
510
636
  string="II"
511
637
  attrs="{'invisible': [('cfop_destination', '!=', '3')]}"
512
638
  >
513
- <group string="II">
514
- <field
639
+ <group string="II">
640
+ <field
515
641
  name="ii_tax_id"
516
642
  options="{'no_create': True, 'no_create_edit': True}"
517
643
  />
518
- </group>
519
- <group>
520
- <group>
521
- <field name="ii_base" />
522
- <field name="ii_value" />
523
- </group>
524
- <group>
525
- <field name="ii_iof_value" />
526
- <field name="ii_customhouse_charges" />
527
- </group>
528
- </group>
529
- </page>
530
- <page name="pis" string="PIS">
531
- <group name="pis" string="PIS">
532
- <field
644
+ </group>
645
+ <group>
646
+ <group>
647
+ <field name="ii_base" />
648
+ <field name="ii_value" />
649
+ </group>
650
+ <group>
651
+ <field name="ii_iof_value" />
652
+ <field name="ii_customhouse_charges" />
653
+ </group>
654
+ </group>
655
+ </page>
656
+ <page name="pis" string="PIS">
657
+ <group name="pis" string="PIS">
658
+ <field
533
659
  name="pis_tax_id"
534
660
  options="{'no_create': True, 'no_create_edit': True}"
535
661
  />
536
- <field
662
+ <field
537
663
  name="pis_cst_id"
538
664
  force_save="1"
539
665
  attrs="{'readonly': [('pis_tax_id', '!=', False)]}"
540
666
  options="{'no_create': True, 'no_create_edit': True}"
541
667
  />
542
- <field name="pis_cst_code" readonly="1" invisible="1" />
543
- <field
668
+ <field
669
+ name="pis_cst_code"
670
+ readonly="1"
671
+ invisible="1"
672
+ />
673
+ <field
544
674
  name="pis_credit_id"
545
675
  force_save="1"
546
676
  attrs="{'readonly': [('pis_tax_id', '!=', False)], 'invisible': [('fiscal_operation_type', '=', 'out')]}"
547
677
  options="{'no_create': True, 'no_create_edit': True}"
548
678
  />
549
- </group>
550
- <group>
551
- <group>
552
- <field
679
+ </group>
680
+ <group>
681
+ <group>
682
+ <field
553
683
  name="pis_base_id"
554
684
  force_save="1"
555
685
  attrs="{'readonly': [('pis_tax_id', '!=', False)], 'invisible': [('fiscal_operation_type', '=', 'out')]}"
556
686
  options="{'no_create': True, 'no_create_edit': True}"
557
687
  />
558
- <field
688
+ <field
559
689
  name="pis_base_type"
560
690
  force_save="1"
561
691
  attrs="{'readonly': [('pis_tax_id', '!=', False)]}"
562
692
  />
563
- <field
693
+ <field
564
694
  name="pis_percent"
565
695
  force_save="1"
566
696
  attrs="{'readonly': [('pis_tax_id', '!=', False)]}"
567
697
  />
568
- <field
698
+ <field
569
699
  name="pis_reduction"
570
700
  force_save="1"
571
701
  attrs="{'readonly': [('pis_tax_id', '!=', False)]}"
572
702
  />
573
- </group>
574
- <group>
575
- <field
703
+ </group>
704
+ <group>
705
+ <field
576
706
  name="pis_base"
577
707
  force_save="1"
578
708
  attrs="{'readonly': [('pis_tax_id', '!=', False)]}"
579
709
  />
580
- <field
710
+ <field
581
711
  name="pis_value"
582
712
  force_save="1"
583
713
  attrs="{'readonly': [('pis_tax_id', '!=', False)]}"
584
714
  />
585
- </group>
586
- </group>
587
- <group name="pis_st" string="PIS ST">
588
- <field
715
+ </group>
716
+ </group>
717
+ <group name="pis_st" string="PIS ST">
718
+ <field
589
719
  name="pisst_tax_id"
590
720
  options="{'no_create': True, 'no_create_edit': True}"
591
721
  />
592
- <field
722
+ <field
593
723
  name="pisst_cst_id"
594
724
  force_save="1"
595
725
  attrs="{'readonly': [('pisst_tax_id', '!=', False)]}"
596
726
  options="{'no_create': True, 'no_create_edit': True}"
597
727
  />
598
- <field name="pisst_cst_code" readonly="1" invisible="1" />
599
- </group>
600
- <group>
601
- <group>
602
- <field
728
+ <field
729
+ name="pisst_cst_code"
730
+ readonly="1"
731
+ invisible="1"
732
+ />
733
+ </group>
734
+ <group>
735
+ <group>
736
+ <field
603
737
  name="pisst_base_type"
604
738
  force_save="1"
605
739
  attrs="{'readonly': [('pisst_tax_id', '!=', False)]}"
606
740
  />
607
- <field
741
+ <field
608
742
  name="pisst_percent"
609
743
  force_save="1"
610
744
  attrs="{'readonly': [('pisst_tax_id', '!=', False)]}"
611
745
  />
612
- <field
746
+ <field
613
747
  name="pisst_reduction"
614
748
  force_save="1"
615
749
  attrs="{'readonly': [('pisst_tax_id', '!=', False)]}"
616
750
  />
617
- </group>
618
- <group>
619
- <field
751
+ </group>
752
+ <group>
753
+ <field
620
754
  name="pisst_base"
621
755
  force_save="1"
622
756
  attrs="{'readonly': [('pisst_tax_id', '!=', False)]}"
623
757
  />
624
- <field
758
+ <field
625
759
  name="pisst_value"
626
760
  force_save="1"
627
761
  attrs="{'readonly': [('pisst_tax_id', '!=', False)]}"
628
762
  />
629
- </group>
630
- </group>
631
- <group string="Retenções">
632
- <field
763
+ </group>
764
+ </group>
765
+ <group string="Retenções">
766
+ <field
633
767
  name="pis_wh_tax_id"
634
768
  options="{'no_create': True, 'no_create_edit': True}"
635
769
  />
636
- </group>
637
- <group>
638
- <group>
639
- <field
770
+ </group>
771
+ <group>
772
+ <group>
773
+ <field
640
774
  name="pis_wh_base"
641
775
  force_save="1"
642
776
  attrs="{'readonly': [('pis_wh_tax_id', '!=', False)]}"
643
777
  />
644
- <field
778
+ <field
645
779
  name="pis_wh_percent"
646
780
  force_save="1"
647
781
  attrs="{'readonly': [('pis_wh_tax_id', '!=', False)]}"
648
782
  />
649
- </group>
650
- <group>
651
- <field
783
+ </group>
784
+ <group>
785
+ <field
652
786
  name="pis_wh_reduction"
653
787
  force_save="1"
654
788
  attrs="{'readonly': [('pis_wh_tax_id', '!=', False)]}"
655
789
  />
656
- <field
790
+ <field
657
791
  name="pis_wh_value"
658
792
  force_save="1"
659
793
  attrs="{'readonly': [('pis_wh_tax_id', '!=', False)]}"
660
794
  />
661
- </group>
662
- </group>
663
- </page>
664
- <page name="cofins" string="COFINS">
665
- <group name="cofins" string="COFINS">
666
- <field
795
+ </group>
796
+ </group>
797
+ </page>
798
+ <page name="cofins" string="COFINS">
799
+ <group name="cofins" string="COFINS">
800
+ <field
667
801
  name="cofins_tax_id"
668
802
  options="{'no_create': True, 'no_create_edit': True}"
669
803
  />
670
- <field
804
+ <field
671
805
  name="cofins_cst_id"
672
806
  force_save="1"
673
807
  attrs="{'readonly': [('cofins_tax_id', '!=', False)]}"
674
808
  options="{'no_create': True, 'no_create_edit': True}"
675
809
  />
676
- <field name="cofins_cst_code" readonly="1" invisible="1" />
677
- <field
810
+ <field
811
+ name="cofins_cst_code"
812
+ readonly="1"
813
+ invisible="1"
814
+ />
815
+ <field
678
816
  name="cofins_credit_id"
679
817
  force_save="1"
680
818
  attrs="{'readonly': [('cofins_tax_id', '!=', False)], 'invisible': [('fiscal_operation_type', '=', 'out')]}"
681
819
  options="{'no_create': True, 'no_create_edit': True}"
682
820
  />
683
- </group>
684
- <group>
685
- <group>
686
- <field
821
+ </group>
822
+ <group>
823
+ <group>
824
+ <field
687
825
  name="cofins_base_id"
688
826
  force_save="1"
689
827
  attrs="{'readonly': [('cofins_tax_id', '!=', False)], 'invisible': [('fiscal_operation_type', '=', 'out')]}"
690
828
  options="{'no_create': True, 'no_create_edit': True}"
691
829
  />
692
- <field
830
+ <field
693
831
  name="cofins_base_type"
694
832
  force_save="1"
695
833
  attrs="{'readonly': [('cofins_tax_id', '!=', False)]}"
696
834
  />
697
- <field
835
+ <field
698
836
  name="cofins_percent"
699
837
  force_save="1"
700
838
  attrs="{'readonly': [('cofins_tax_id', '!=', False)]}"
701
839
  />
702
- <field
840
+ <field
703
841
  name="cofins_reduction"
704
842
  force_save="1"
705
843
  attrs="{'readonly': [('cofins_tax_id', '!=', False)]}"
706
844
  />
707
- </group>
708
- <group>
709
- <field
845
+ </group>
846
+ <group>
847
+ <field
710
848
  name="cofins_base"
711
849
  force_save="1"
712
850
  attrs="{'readonly': [('cofins_tax_id', '!=', False)]}"
713
851
  />
714
- <field
852
+ <field
715
853
  name="cofins_value"
716
854
  force_save="1"
717
855
  attrs="{'readonly': [('cofins_tax_id', '!=', False)]}"
718
856
  />
719
- </group>
720
- </group>
721
- <group name="cofins_st" string="COFINS ST">
722
- <field
857
+ </group>
858
+ </group>
859
+ <group name="cofins_st" string="COFINS ST">
860
+ <field
723
861
  name="cofinsst_tax_id"
724
862
  options="{'no_create': True, 'no_create_edit': True}"
725
863
  />
726
- <field
864
+ <field
727
865
  name="cofinsst_cst_id"
728
866
  force_save="1"
729
867
  attrs="{'readonly': [('cofinsst_tax_id', '!=', False)]}"
730
868
  options="{'no_create': True, 'no_create_edit': True}"
731
869
  />
732
- <field name="cofinsst_cst_code" readonly="1" invisible="1" />
733
- </group>
734
- <group>
735
- <group>
736
- <field
870
+ <field
871
+ name="cofinsst_cst_code"
872
+ readonly="1"
873
+ invisible="1"
874
+ />
875
+ </group>
876
+ <group>
877
+ <group>
878
+ <field
737
879
  name="cofinsst_base_type"
738
880
  force_save="1"
739
881
  attrs="{'readonly': [('cofinsst_tax_id', '!=', False)]}"
740
882
  />
741
- <field
883
+ <field
742
884
  name="cofinsst_percent"
743
885
  force_save="1"
744
886
  attrs="{'readonly': [('cofinsst_tax_id', '!=', False)]}"
745
887
  />
746
- <field
888
+ <field
747
889
  name="cofinsst_reduction"
748
890
  force_save="1"
749
891
  attrs="{'readonly': [('cofinsst_tax_id', '!=', False)]}"
750
892
  />
751
- </group>
752
- <group>
753
- <field
893
+ </group>
894
+ <group>
895
+ <field
754
896
  name="cofinsst_base"
755
897
  force_save="1"
756
898
  attrs="{'readonly': [('cofinsst_tax_id', '!=', False)]}"
757
899
  />
758
- <field
900
+ <field
759
901
  name="cofinsst_value"
760
902
  force_save="1"
761
903
  attrs="{'readonly': [('cofinsst_tax_id', '!=', False)]}"
762
904
  />
763
- </group>
764
- </group>
765
- <group string="Retenções">
766
- <field
905
+ </group>
906
+ </group>
907
+ <group string="Retenções">
908
+ <field
767
909
  name="cofins_wh_tax_id"
768
910
  options="{'no_create': True, 'no_create_edit': True}"
769
911
  />
770
- </group>
771
- <group>
772
- <group>
773
- <field
912
+ </group>
913
+ <group>
914
+ <group>
915
+ <field
774
916
  name="cofins_wh_base"
775
917
  force_save="1"
776
918
  attrs="{'readonly': [('cofins_wh_tax_id', '!=', False)]}"
777
919
  />
778
- <field
920
+ <field
779
921
  name="cofins_wh_percent"
780
922
  force_save="1"
781
923
  attrs="{'readonly': [('cofins_wh_tax_id', '!=', False)]}"
782
924
  />
783
- </group>
784
- <group>
785
- <field
925
+ </group>
926
+ <group>
927
+ <field
786
928
  name="cofins_wh_reduction"
787
929
  force_save="1"
788
930
  attrs="{'readonly': [('cofins_wh_tax_id', '!=', False)]}"
789
931
  />
790
- <field
932
+ <field
791
933
  name="cofins_wh_value"
792
934
  force_save="1"
793
935
  attrs="{'readonly': [('cofins_wh_tax_id', '!=', False)]}"
794
936
  />
795
- </group>
796
- </group>
797
- </page>
798
- <page
937
+ </group>
938
+ </group>
939
+ </page>
940
+ <page
799
941
  name="csll"
800
942
  string="CSLL"
801
943
  attrs="{'invisible': [('allow_csll_irpj', '=', False)]}"
802
944
  >
803
- <group>
804
- <field name="csll_tax_id" />
805
- </group>
806
- <group>
807
- <group>
808
- <field
945
+ <group>
946
+ <field name="csll_tax_id" />
947
+ </group>
948
+ <group>
949
+ <group>
950
+ <field
809
951
  name="csll_base"
810
952
  force_save="1"
811
953
  attrs="{'readonly': [('csll_tax_id', '!=', False)]}"
812
954
  />
813
- <field
955
+ <field
814
956
  name="csll_percent"
815
957
  force_save="1"
816
958
  attrs="{'readonly': [('csll_tax_id', '!=', False)]}"
817
959
  />
818
- </group>
819
- <group>
820
- <field
960
+ </group>
961
+ <group>
962
+ <field
821
963
  name="csll_reduction"
822
964
  force_save="1"
823
965
  attrs="{'readonly': [('csll_tax_id', '!=', False)]}"
824
966
  />
825
- <field
967
+ <field
826
968
  name="csll_value"
827
969
  force_save="1"
828
970
  attrs="{'readonly': [('csll_tax_id', '!=', False)]}"
829
971
  />
830
- </group>
831
- </group>
832
- <group string="Retenções">
833
- <field
972
+ </group>
973
+ </group>
974
+ <group string="Retenções">
975
+ <field
834
976
  name="csll_wh_tax_id"
835
977
  options="{'no_create': True, 'no_create_edit': True}"
836
978
  />
837
- </group>
838
- <group>
839
- <group>
840
- <field
979
+ </group>
980
+ <group>
981
+ <group>
982
+ <field
841
983
  name="csll_wh_base"
842
984
  force_save="1"
843
985
  attrs="{'readonly': [('csll_wh_tax_id', '!=', False)]}"
844
986
  />
845
- <field
987
+ <field
846
988
  name="csll_wh_percent"
847
989
  force_save="1"
848
990
  attrs="{'readonly': [('csll_wh_tax_id', '!=', False)]}"
849
991
  />
850
- </group>
851
- <group>
852
- <field
992
+ </group>
993
+ <group>
994
+ <field
853
995
  name="csll_wh_reduction"
854
996
  force_save="1"
855
997
  attrs="{'readonly': [('csll_wh_tax_id', '!=', False)]}"
856
998
  />
857
- <field
999
+ <field
858
1000
  name="csll_wh_value"
859
1001
  force_save="1"
860
1002
  attrs="{'readonly': [('csll_wh_tax_id', '!=', False)]}"
861
1003
  />
862
- </group>
863
- </group>
864
- </page>
865
- <page
1004
+ </group>
1005
+ </group>
1006
+ </page>
1007
+ <page
866
1008
  name="irpj"
867
1009
  string="IRPJ"
868
1010
  attrs="{'invisible': [('allow_csll_irpj', '=', False)]}"
869
1011
  >
870
- <group>
871
- <field
1012
+ <group>
1013
+ <field
872
1014
  name="irpj_tax_id"
873
1015
  options="{'no_create': True, 'no_create_edit': True}"
874
1016
  />
875
- </group>
876
- <group>
877
- <group>
878
- <field
1017
+ </group>
1018
+ <group>
1019
+ <group>
1020
+ <field
879
1021
  name="irpj_base"
880
1022
  force_save="1"
881
1023
  attrs="{'readonly': [('irpj_tax_id', '!=', False)]}"
882
1024
  />
883
- <field
1025
+ <field
884
1026
  name="irpj_percent"
885
1027
  force_save="1"
886
1028
  attrs="{'readonly': [('irpj_tax_id', '!=', False)]}"
887
1029
  />
888
- </group>
889
- <group>
890
- <field
1030
+ </group>
1031
+ <group>
1032
+ <field
891
1033
  name="irpj_reduction"
892
1034
  force_save="1"
893
1035
  attrs="{'readonly': [('irpj_tax_id', '!=', False)]}"
894
1036
  />
895
- <field
1037
+ <field
896
1038
  name="irpj_value"
897
1039
  force_save="1"
898
1040
  attrs="{'readonly': [('irpj_tax_id', '!=', False)]}"
899
1041
  />
900
- </group>
901
- </group>
902
- <group string="Retenções">
903
- <field
1042
+ </group>
1043
+ </group>
1044
+ <group string="Retenções">
1045
+ <field
904
1046
  name="irpj_wh_tax_id"
905
1047
  options="{'no_create': True, 'no_create_edit': True}"
906
1048
  />
907
- </group>
908
- <group>
909
- <group>
910
- <field
1049
+ </group>
1050
+ <group>
1051
+ <group>
1052
+ <field
911
1053
  name="irpj_wh_base"
912
1054
  force_save="1"
913
1055
  attrs="{'readonly': [('irpj_wh_tax_id', '!=', False)]}"
914
1056
  />
915
- <field
1057
+ <field
916
1058
  name="irpj_wh_percent"
917
1059
  force_save="1"
918
1060
  attrs="{'readonly': [('irpj_wh_tax_id', '!=', False)]}"
919
1061
  />
920
- </group>
921
- <group>
922
- <field
1062
+ </group>
1063
+ <group>
1064
+ <field
923
1065
  name="irpj_wh_reduction"
924
1066
  force_save="1"
925
1067
  attrs="{'readonly': [('irpj_wh_tax_id', '!=', False)]}"
926
1068
  />
927
- <field
1069
+ <field
928
1070
  name="irpj_wh_value"
929
1071
  force_save="1"
930
1072
  attrs="{'readonly': [('irpj_wh_tax_id', '!=', False)]}"
931
1073
  />
932
- </group>
933
- </group>
934
- </page>
935
- <page
1074
+ </group>
1075
+ </group>
1076
+ </page>
1077
+ <page
936
1078
  name="inss"
937
1079
  string="INSS"
938
1080
  attrs="{'invisible': [('fiscal_genre_code', '!=', '00')]}"
939
1081
  >
940
- <group>
941
- <field
1082
+ <group>
1083
+ <field
942
1084
  name="inss_tax_id"
943
1085
  options="{'no_create': True, 'no_create_edit': True}"
944
1086
  />
945
- </group>
946
- <group>
947
- <group>
948
- <field
1087
+ </group>
1088
+ <group>
1089
+ <group>
1090
+ <field
949
1091
  name="inss_base"
950
1092
  force_save="1"
951
1093
  attrs="{'readonly': [('inss_tax_id', '!=', False)]}"
952
1094
  />
953
- <field
1095
+ <field
954
1096
  name="inss_percent"
955
1097
  force_save="1"
956
1098
  attrs="{'readonly': [('inss_tax_id', '!=', False)]}"
957
1099
  />
958
- </group>
959
- <group>
960
- <field
1100
+ </group>
1101
+ <group>
1102
+ <field
961
1103
  name="inss_reduction"
962
1104
  force_save="1"
963
1105
  attrs="{'readonly': [('inss_tax_id', '!=', False)]}"
964
1106
  />
965
- <field
1107
+ <field
966
1108
  name="inss_value"
967
1109
  force_save="1"
968
1110
  attrs="{'readonly': [('inss_tax_id', '!=', False)]}"
969
1111
  />
970
- </group>
971
- </group>
972
- <group string="Retenções">
973
- <field
1112
+ </group>
1113
+ </group>
1114
+ <group string="Retenções">
1115
+ <field
974
1116
  name="inss_wh_tax_id"
975
1117
  options="{'no_create': True, 'no_create_edit': True}"
976
1118
  />
977
- </group>
978
- <group>
979
- <group>
980
- <field
1119
+ </group>
1120
+ <group>
1121
+ <group>
1122
+ <field
981
1123
  name="inss_wh_base"
982
1124
  force_save="1"
983
1125
  attrs="{'readonly': [('inss_wh_tax_id', '!=', False)]}"
984
1126
  />
985
- <field
1127
+ <field
986
1128
  name="inss_wh_percent"
987
1129
  force_save="1"
988
1130
  attrs="{'readonly': [('inss_wh_tax_id', '!=', False)]}"
989
1131
  />
990
- </group>
991
- <group>
992
- <field
1132
+ </group>
1133
+ <group>
1134
+ <field
993
1135
  name="inss_wh_reduction"
994
1136
  force_save="1"
995
1137
  attrs="{'readonly': [('inss_wh_tax_id', '!=', False)]}"
996
1138
  />
997
- <field
1139
+ <field
998
1140
  name="inss_wh_value"
999
1141
  force_save="1"
1000
1142
  attrs="{'readonly': [('inss_wh_tax_id', '!=', False)]}"
1001
1143
  />
1144
+ </group>
1145
+ </group>
1146
+ </page>
1147
+ </notebook>
1148
+ </page>
1149
+ <page name="fiscal_line_extra_info" string="Extra Info">
1150
+ <group>
1151
+ <field name="partner_order" />
1152
+ <field name="partner_order_line" />
1153
+ </group>
1154
+ <group>
1155
+ <field name="comment_ids" widget="many2many_tags" />
1156
+ <field name="manual_additional_data" />
1002
1157
  </group>
1003
- </group>
1004
- </page>
1005
- </notebook>
1006
- </page>
1007
- <page name="fiscal_line_extra_info" string="Extra Info">
1008
- <group>
1009
- <field name="partner_order" />
1010
- <field name="partner_order_line" />
1011
- </group>
1012
- <group>
1013
- <field name="comment_ids" widget="many2many_tags" />
1014
- <field name="manual_additional_data" />
1015
- <field name="additional_data" readonly="1" />
1016
- </group>
1017
- </page>
1018
- </notebook>
1019
- </form>
1020
- </field>
1021
- </record>
1022
-
1158
+ </page>
1159
+ </notebook>
1160
+ </form>
1161
+ </field>
1162
+ </record>
1023
1163
  </odoo>