odoo-addon-l10n-br-fiscal 16.0.12.2.0__py3-none-any.whl → 17.0.1.0.0.11__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.

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