odoo-addon-l10n-br-fiscal 18.0.2.0.0.10__py3-none-any.whl → 18.0.5.0.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of odoo-addon-l10n-br-fiscal might be problematic. Click here for more details.
- odoo/addons/l10n_br_fiscal/README.rst +1 -1
- odoo/addons/l10n_br_fiscal/__manifest__.py +2 -2
- odoo/addons/l10n_br_fiscal/constants/fiscal.py +46 -18
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.document.type.csv +1 -0
- odoo/addons/l10n_br_fiscal/data/operation_data.xml +1 -1
- odoo/addons/l10n_br_fiscal/demo/fiscal_document_demo.xml +3 -179
- odoo/addons/l10n_br_fiscal/demo/fiscal_document_nfse_demo.xml +0 -4
- odoo/addons/l10n_br_fiscal/demo/fiscal_operation_demo.xml +2 -2
- odoo/addons/l10n_br_fiscal/i18n/l10n_br_fiscal.pot +142 -36
- odoo/addons/l10n_br_fiscal/i18n/pt_BR.po +190 -58
- odoo/addons/l10n_br_fiscal/migrations/18.0.3.0.0/pre-migration.py +30 -0
- odoo/addons/l10n_br_fiscal/models/comment.py +3 -1
- odoo/addons/l10n_br_fiscal/models/document.py +27 -8
- odoo/addons/l10n_br_fiscal/models/document_line.py +51 -8
- odoo/addons/l10n_br_fiscal/models/document_line_mixin.py +118 -31
- odoo/addons/l10n_br_fiscal/models/document_line_mixin_methods.py +263 -282
- odoo/addons/l10n_br_fiscal/models/document_mixin.py +8 -5
- odoo/addons/l10n_br_fiscal/models/document_mixin_methods.py +49 -151
- odoo/addons/l10n_br_fiscal/models/document_related.py +1 -1
- odoo/addons/l10n_br_fiscal/models/document_serie.py +33 -0
- odoo/addons/l10n_br_fiscal/models/icms_regulation.py +1 -1
- odoo/addons/l10n_br_fiscal/models/operation_dashboard.py +3 -2
- odoo/addons/l10n_br_fiscal/models/partner_profile.py +6 -0
- odoo/addons/l10n_br_fiscal/models/res_partner.py +7 -0
- odoo/addons/l10n_br_fiscal/models/tax.py +7 -3
- odoo/addons/l10n_br_fiscal/security/fiscal_security.xml +6 -16
- odoo/addons/l10n_br_fiscal/security/ir.model.access.csv +0 -1
- odoo/addons/l10n_br_fiscal/static/description/index.html +1 -1
- odoo/addons/l10n_br_fiscal/tests/__init__.py +1 -0
- odoo/addons/l10n_br_fiscal/tests/test_document_edition.py +175 -10
- odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_generic.py +13 -42
- odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_nfse.py +0 -5
- odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_serie.py +60 -0
- odoo/addons/l10n_br_fiscal/tests/test_tax_benefit.py +2 -5
- odoo/addons/l10n_br_fiscal/views/document_line_mixin_view.xml +1 -0
- odoo/addons/l10n_br_fiscal/views/document_line_view.xml +3 -3
- odoo/addons/l10n_br_fiscal/views/document_view.xml +20 -15
- odoo/addons/l10n_br_fiscal/views/l10n_br_fiscal_menu.xml +0 -9
- odoo/addons/l10n_br_fiscal/views/operation_dashboard_view.xml +3 -3
- odoo/addons/l10n_br_fiscal/views/product_product_view.xml +33 -6
- odoo/addons/l10n_br_fiscal/views/product_template_view.xml +17 -4
- odoo/addons/l10n_br_fiscal/views/res_partner_view.xml +6 -0
- odoo/addons/l10n_br_fiscal/wizards/base_wizard_mixin.py +1 -1
- {odoo_addon_l10n_br_fiscal-18.0.2.0.0.10.dist-info → odoo_addon_l10n_br_fiscal-18.0.5.0.0.1.dist-info}/METADATA +3 -3
- {odoo_addon_l10n_br_fiscal-18.0.2.0.0.10.dist-info → odoo_addon_l10n_br_fiscal-18.0.5.0.0.1.dist-info}/RECORD +47 -45
- {odoo_addon_l10n_br_fiscal-18.0.2.0.0.10.dist-info → odoo_addon_l10n_br_fiscal-18.0.5.0.0.1.dist-info}/WHEEL +0 -0
- {odoo_addon_l10n_br_fiscal-18.0.2.0.0.10.dist-info → odoo_addon_l10n_br_fiscal-18.0.5.0.0.1.dist-info}/top_level.txt +0 -0
|
@@ -11,7 +11,7 @@ Módulo fiscal brasileiro
|
|
|
11
11
|
!! This file is generated by oca-gen-addon-readme !!
|
|
12
12
|
!! changes will be overwritten. !!
|
|
13
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
-
!! source digest: sha256:
|
|
14
|
+
!! source digest: sha256:9b476f778818f11bdbac8619f6f6de8e9fd857792cfb19d7408154b19de9ca0b
|
|
15
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
16
|
|
|
17
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"maintainers": ["renatonlima", "rvalyi"],
|
|
11
11
|
"website": "https://github.com/OCA/l10n-brazil",
|
|
12
12
|
"development_status": "Production/Stable",
|
|
13
|
-
"version": "18.0.
|
|
13
|
+
"version": "18.0.5.0.0",
|
|
14
14
|
"depends": [
|
|
15
15
|
"product",
|
|
16
16
|
"uom_alias",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"auto_install": False,
|
|
130
130
|
"external_dependencies": {
|
|
131
131
|
"python": [
|
|
132
|
-
"erpbrasil.base
|
|
132
|
+
"erpbrasil.base",
|
|
133
133
|
]
|
|
134
134
|
},
|
|
135
135
|
"post_init_hook": "post_init_hook",
|
|
@@ -306,6 +306,14 @@ FINAL_CUSTOMER_NO = "0"
|
|
|
306
306
|
FINAL_CUSTOMER_YES = "1"
|
|
307
307
|
|
|
308
308
|
|
|
309
|
+
PUBLIC_ENTIRY_TYPE = [
|
|
310
|
+
("1", "União"),
|
|
311
|
+
("2", "Estado"),
|
|
312
|
+
("3", "Distrito Federal"),
|
|
313
|
+
("4", "Município"),
|
|
314
|
+
]
|
|
315
|
+
|
|
316
|
+
|
|
309
317
|
CFOP_TYPE_MOVE = [
|
|
310
318
|
("purchase_industry", "Purchase Industry"),
|
|
311
319
|
("purchase_commerce", "Purchase Commerce"),
|
|
@@ -476,6 +484,8 @@ EDOC_PURPOSE = [
|
|
|
476
484
|
("2", "Complementar"),
|
|
477
485
|
("3", "Ajuste"),
|
|
478
486
|
("4", "Devolução de mercadoria"),
|
|
487
|
+
("5", "Nota de Crédito"),
|
|
488
|
+
("6", "Nota de Débito"),
|
|
479
489
|
]
|
|
480
490
|
|
|
481
491
|
EDOC_PURPOSE_NORMAL = "1"
|
|
@@ -483,6 +493,19 @@ EDOC_PURPOSE_COMPLEMENTAR = "2"
|
|
|
483
493
|
EDOC_PURPOSE_AJUSTE = "3"
|
|
484
494
|
EDOC_PURPOSE_DEVOLUCAO = "4"
|
|
485
495
|
|
|
496
|
+
EDOC_REFUND_DEBIT_TYPE = [
|
|
497
|
+
("01", "Transferência de créditos para Cooperativas"),
|
|
498
|
+
("02", "Anulação de Crédito por Saídas Imunes/Isentas"),
|
|
499
|
+
("03", "Débitos de notas fiscais não processadas na apuração"),
|
|
500
|
+
("04", "Multa e juros"),
|
|
501
|
+
("05", "Transferência de crédito de sucessão"),
|
|
502
|
+
]
|
|
503
|
+
|
|
504
|
+
# TODO - Implementar nas proximas versões da NT da Reforma tributária
|
|
505
|
+
EDOC_REFUND_CREDIT_TYPE = [
|
|
506
|
+
("00", "Não Implementado"),
|
|
507
|
+
]
|
|
508
|
+
|
|
486
509
|
PROCESSADOR_NENHUM = "nenhum"
|
|
487
510
|
PROCESSADOR_OCA = "oca"
|
|
488
511
|
|
|
@@ -508,22 +531,27 @@ EVENT_ENVIRONMENT = [
|
|
|
508
531
|
(EVENT_ENV_HML, "Homologation"),
|
|
509
532
|
]
|
|
510
533
|
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
534
|
+
# fiscal document line mixin
|
|
535
|
+
FISCAL_TAX_ID_FIELDS = [
|
|
536
|
+
"cofins_tax_id",
|
|
537
|
+
"cofins_wh_tax_id",
|
|
538
|
+
"cofinsst_tax_id",
|
|
539
|
+
"csll_tax_id",
|
|
540
|
+
"csll_wh_tax_id",
|
|
541
|
+
"icms_tax_id",
|
|
542
|
+
"icmsfcp_tax_id",
|
|
543
|
+
"icmssn_tax_id",
|
|
544
|
+
"icmsst_tax_id",
|
|
545
|
+
"icmsfcpst_tax_id",
|
|
546
|
+
"ii_tax_id",
|
|
547
|
+
"inss_tax_id",
|
|
548
|
+
"inss_wh_tax_id",
|
|
549
|
+
"ipi_tax_id",
|
|
550
|
+
"irpj_tax_id",
|
|
551
|
+
"irpj_wh_tax_id",
|
|
552
|
+
"issqn_tax_id",
|
|
553
|
+
"issqn_wh_tax_id",
|
|
554
|
+
"pis_tax_id",
|
|
555
|
+
"pis_wh_tax_id",
|
|
556
|
+
"pisst_tax_id",
|
|
529
557
|
]
|
|
@@ -38,4 +38,5 @@
|
|
|
38
38
|
"document_63","63","Bilhete de Passagem Eletrônico - BP-e","True","BPe","bp-e","icms"
|
|
39
39
|
"document_66","66","Nota Fiscal de Energia Elétrica Eletrônica - NF3e","True","NF3e","nf3-e","icms"
|
|
40
40
|
"document_67","67","Conhecimento de Transporte Eletrônico para Outros Serviços - CT-e OS","True",,,"icms"
|
|
41
|
+
"document_75","75","Nota Fiscal da Água e Saneamento Eletrônica","True","NFAg",,"icms"
|
|
41
42
|
"document_SE","SE","Nota Fiscal de Serviço Eletrônica - NFS-e","True","NFSe","nfs-e","service"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
-
<!--
|
|
2
|
+
<!-- oca-hooks:disable=xml-duplicate-record-id -->
|
|
3
3
|
<odoo noupdate="1">
|
|
4
4
|
<record id="dummy_file_1" model="ir.attachment">
|
|
5
5
|
<field
|
|
@@ -35,16 +35,8 @@
|
|
|
35
35
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
36
36
|
</record>
|
|
37
37
|
|
|
38
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
39
|
-
<value eval="[ref('demo_nfe_line_same_state_1-1')]" />
|
|
40
|
-
</function>
|
|
41
|
-
|
|
42
38
|
<record id="demo_nfe_line_same_state_1-1" model="l10n_br_fiscal.document.line" />
|
|
43
39
|
|
|
44
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
45
|
-
<value eval="[ref('demo_nfe_line_same_state_1-1')]" />
|
|
46
|
-
</function>
|
|
47
|
-
|
|
48
40
|
<record id="demo_nfe_line_same_state_1-2" model="l10n_br_fiscal.document.line">
|
|
49
41
|
<field name="document_id" ref="demo_nfe_same_state" />
|
|
50
42
|
<field name="name">Teste</field>
|
|
@@ -56,16 +48,8 @@
|
|
|
56
48
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
57
49
|
</record>
|
|
58
50
|
|
|
59
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
60
|
-
<value eval="[ref('demo_nfe_line_same_state_1-2')]" />
|
|
61
|
-
</function>
|
|
62
|
-
|
|
63
51
|
<record id="demo_nfe_line_same_state_1-2" model="l10n_br_fiscal.document.line" />
|
|
64
52
|
|
|
65
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
66
|
-
<value eval="[ref('demo_nfe_line_same_state_1-2')]" />
|
|
67
|
-
</function>
|
|
68
|
-
|
|
69
53
|
<!-- NFe Test - Empresa Contribuinte - Outro Estado -->
|
|
70
54
|
<record id="demo_nfe_other_state" model="l10n_br_fiscal.document">
|
|
71
55
|
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
|
|
@@ -92,16 +76,8 @@
|
|
|
92
76
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
93
77
|
</record>
|
|
94
78
|
|
|
95
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
96
|
-
<value eval="[ref('demo_nfe_line_other_state_1-3')]" />
|
|
97
|
-
</function>
|
|
98
|
-
|
|
99
79
|
<record id="demo_nfe_line_other_state_1-3" model="l10n_br_fiscal.document.line" />
|
|
100
80
|
|
|
101
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
102
|
-
<value eval="[ref('demo_nfe_line_other_state_1-3')]" />
|
|
103
|
-
</function>
|
|
104
|
-
|
|
105
81
|
<record id="demo_nfe_line_other_state_2-3" model="l10n_br_fiscal.document.line">
|
|
106
82
|
<field name="document_id" ref="demo_nfe_other_state" />
|
|
107
83
|
<field name="name">Teste</field>
|
|
@@ -113,16 +89,8 @@
|
|
|
113
89
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
114
90
|
</record>
|
|
115
91
|
|
|
116
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
117
|
-
<value eval="[ref('demo_nfe_line_other_state_2-3')]" />
|
|
118
|
-
</function>
|
|
119
|
-
|
|
120
92
|
<record id="demo_nfe_line_other_state_2-3" model="l10n_br_fiscal.document.line" />
|
|
121
93
|
|
|
122
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
123
|
-
<value eval="[ref('demo_nfe_line_other_state_2-3')]" />
|
|
124
|
-
</function>
|
|
125
|
-
|
|
126
94
|
<record id="demo_nfe_line_other_state_3-3" model="l10n_br_fiscal.document.line">
|
|
127
95
|
<field name="document_id" ref="demo_nfe_other_state" />
|
|
128
96
|
<field name="name">Teste</field>
|
|
@@ -135,16 +103,8 @@
|
|
|
135
103
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
136
104
|
</record>
|
|
137
105
|
|
|
138
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
139
|
-
<value eval="[ref('demo_nfe_line_other_state_3-3')]" />
|
|
140
|
-
</function>
|
|
141
|
-
|
|
142
106
|
<record id="demo_nfe_line_other_state_3-3" model="l10n_br_fiscal.document.line" />
|
|
143
107
|
|
|
144
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
145
|
-
<value eval="[ref('demo_nfe_line_other_state_3-3')]" />
|
|
146
|
-
</function>
|
|
147
|
-
|
|
148
108
|
<!-- NFe Test - Empresa Contribuinte - Exterior -->
|
|
149
109
|
<record id="demo_nfe_export" model="l10n_br_fiscal.document">
|
|
150
110
|
<field name="company_id" ref="l10n_br_base.empresa_lucro_presumido" />
|
|
@@ -173,16 +133,8 @@
|
|
|
173
133
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
174
134
|
</record>
|
|
175
135
|
|
|
176
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
177
|
-
<value eval="[ref('demo_nfe_line_export_3-1')]" />
|
|
178
|
-
</function>
|
|
179
|
-
|
|
180
136
|
<record id="demo_nfe_line_export_3-1" model="l10n_br_fiscal.document.line" />
|
|
181
137
|
|
|
182
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
183
|
-
<value eval="[ref('demo_nfe_line_export_3-1')]" />
|
|
184
|
-
</function>
|
|
185
|
-
|
|
186
138
|
<record id="demo_nfe_line_export_3-2" model="l10n_br_fiscal.document.line">
|
|
187
139
|
<field name="document_id" ref="demo_nfe_export" />
|
|
188
140
|
<field name="name">Teste</field>
|
|
@@ -194,16 +146,8 @@
|
|
|
194
146
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
195
147
|
</record>
|
|
196
148
|
|
|
197
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
198
|
-
<value eval="[ref('demo_nfe_line_export_3-2')]" />
|
|
199
|
-
</function>
|
|
200
|
-
|
|
201
149
|
<record id="demo_nfe_line_export_3-2" model="l10n_br_fiscal.document.line" />
|
|
202
150
|
|
|
203
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
204
|
-
<value eval="[ref('demo_nfe_line_export_3-2')]" />
|
|
205
|
-
</function>
|
|
206
|
-
|
|
207
151
|
<!-- NFe Test - Empresa Contribuinte - Nao Contribuinte PJ -->
|
|
208
152
|
<record id="demo_nfe_nao_contribuinte" model="l10n_br_fiscal.document">
|
|
209
153
|
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
|
|
@@ -236,24 +180,16 @@
|
|
|
236
180
|
/>
|
|
237
181
|
<field
|
|
238
182
|
name="comment_ids"
|
|
239
|
-
eval="[(
|
|
183
|
+
eval="[Command.set([ref('l10n_br_fiscal.fiscal_line_comment_dummy')])]"
|
|
240
184
|
/>
|
|
241
185
|
<field name="manual_additional_data">manual comment test</field>
|
|
242
186
|
</record>
|
|
243
187
|
|
|
244
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
245
|
-
<value eval="[ref('demo_nfe_line_nao_contribuinte_4-1')]" />
|
|
246
|
-
</function>
|
|
247
|
-
|
|
248
188
|
<record
|
|
249
189
|
id="demo_nfe_line_nao_contribuinte_4-1"
|
|
250
190
|
model="l10n_br_fiscal.document.line"
|
|
251
191
|
/>
|
|
252
192
|
|
|
253
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
254
|
-
<value eval="[ref('demo_nfe_line_nao_contribuinte_4-1')]" />
|
|
255
|
-
</function>
|
|
256
|
-
|
|
257
193
|
<record
|
|
258
194
|
id="demo_nfe_line_nao_contribuinte_4-2"
|
|
259
195
|
model="l10n_br_fiscal.document.line"
|
|
@@ -271,19 +207,11 @@
|
|
|
271
207
|
/>
|
|
272
208
|
</record>
|
|
273
209
|
|
|
274
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
275
|
-
<value eval="[ref('demo_nfe_line_nao_contribuinte_4-2')]" />
|
|
276
|
-
</function>
|
|
277
|
-
|
|
278
210
|
<record
|
|
279
211
|
id="demo_nfe_line_nao_contribuinte_4-2"
|
|
280
212
|
model="l10n_br_fiscal.document.line"
|
|
281
213
|
/>
|
|
282
214
|
|
|
283
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
284
|
-
<value eval="[ref('demo_nfe_line_nao_contribuinte_4-2')]" />
|
|
285
|
-
</function>
|
|
286
|
-
|
|
287
215
|
<!-- NFe Test - Empresa Contribuinte - Nao Contribuinte PJ Tax Benefit -->
|
|
288
216
|
<record id="demo_nfe_tax_benefit" model="l10n_br_fiscal.document">
|
|
289
217
|
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
|
|
@@ -313,21 +241,13 @@
|
|
|
313
241
|
/>
|
|
314
242
|
<field
|
|
315
243
|
name="comment_ids"
|
|
316
|
-
eval="[(
|
|
244
|
+
eval="[Command.set([ref('l10n_br_fiscal.fiscal_line_comment_dummy')])]"
|
|
317
245
|
/>
|
|
318
246
|
<field name="manual_additional_data">manual comment test</field>
|
|
319
247
|
</record>
|
|
320
248
|
|
|
321
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
322
|
-
<value eval="[ref('demo_nfe_tax_benefit_4-1')]" />
|
|
323
|
-
</function>
|
|
324
|
-
|
|
325
249
|
<record id="demo_nfe_tax_benefit_4-1" model="l10n_br_fiscal.document.line" />
|
|
326
250
|
|
|
327
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
328
|
-
<value eval="[ref('demo_nfe_tax_benefit_4-1')]" />
|
|
329
|
-
</function>
|
|
330
|
-
|
|
331
251
|
<!-- NFe Test - Empresa Contribuinte - Nao Contribuinte PF -->
|
|
332
252
|
<record id="demo_nfe_nao_contribuinte_pf" model="l10n_br_fiscal.document">
|
|
333
253
|
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
|
|
@@ -357,19 +277,11 @@
|
|
|
357
277
|
/>
|
|
358
278
|
</record>
|
|
359
279
|
|
|
360
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
361
|
-
<value eval="[ref('demo_nfe_nao_contribuinte_pf_1-2')]" />
|
|
362
|
-
</function>
|
|
363
|
-
|
|
364
280
|
<record
|
|
365
281
|
id="demo_nfe_nao_contribuinte_pf_1-2"
|
|
366
282
|
model="l10n_br_fiscal.document.line"
|
|
367
283
|
/>
|
|
368
284
|
|
|
369
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
370
|
-
<value eval="[ref('demo_nfe_nao_contribuinte_pf_1-2')]" />
|
|
371
|
-
</function>
|
|
372
|
-
|
|
373
285
|
<record id="demo_nfe_nao_contribuinte_pf_2-2" model="l10n_br_fiscal.document.line">
|
|
374
286
|
<field name="document_id" ref="demo_nfe_nao_contribuinte_pf" />
|
|
375
287
|
<field name="name">Teste</field>
|
|
@@ -384,19 +296,11 @@
|
|
|
384
296
|
/>
|
|
385
297
|
</record>
|
|
386
298
|
|
|
387
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
388
|
-
<value eval="[ref('demo_nfe_nao_contribuinte_pf_2-2')]" />
|
|
389
|
-
</function>
|
|
390
|
-
|
|
391
299
|
<record
|
|
392
300
|
id="demo_nfe_nao_contribuinte_pf_2-2"
|
|
393
301
|
model="l10n_br_fiscal.document.line"
|
|
394
302
|
/>
|
|
395
303
|
|
|
396
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
397
|
-
<value eval="[ref('demo_nfe_nao_contribuinte_pf_2-2')]" />
|
|
398
|
-
</function>
|
|
399
|
-
|
|
400
304
|
<!-- NFe Test - Empresa Simples Nacional - Mesmo Estado -->
|
|
401
305
|
<record id="demo_nfe_sn_same_state" model="l10n_br_fiscal.document">
|
|
402
306
|
<field name="company_id" ref="l10n_br_base.empresa_simples_nacional" />
|
|
@@ -423,16 +327,8 @@
|
|
|
423
327
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
424
328
|
</record>
|
|
425
329
|
|
|
426
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
427
|
-
<value eval="[ref('demo_nfe_line_sn_same_state_5-1')]" />
|
|
428
|
-
</function>
|
|
429
|
-
|
|
430
330
|
<record id="demo_nfe_line_sn_same_state_5-1" model="l10n_br_fiscal.document.line" />
|
|
431
331
|
|
|
432
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
433
|
-
<value eval="[ref('demo_nfe_line_sn_same_state_5-1')]" />
|
|
434
|
-
</function>
|
|
435
|
-
|
|
436
332
|
<record id="demo_nfe_line_sn_same_state_5-2" model="l10n_br_fiscal.document.line">
|
|
437
333
|
<field name="document_id" ref="demo_nfe_sn_same_state" />
|
|
438
334
|
<field name="name">Teste</field>
|
|
@@ -444,16 +340,8 @@
|
|
|
444
340
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
445
341
|
</record>
|
|
446
342
|
|
|
447
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
448
|
-
<value eval="[ref('demo_nfe_line_sn_same_state_5-2')]" />
|
|
449
|
-
</function>
|
|
450
|
-
|
|
451
343
|
<record id="demo_nfe_line_sn_same_state_5-2" model="l10n_br_fiscal.document.line" />
|
|
452
344
|
|
|
453
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
454
|
-
<value eval="[ref('demo_nfe_line_sn_same_state_5-2')]" />
|
|
455
|
-
</function>
|
|
456
|
-
|
|
457
345
|
<!-- NFe Test - Empresa Simples Nacional - Outro Estado -->
|
|
458
346
|
<record id="demo_nfe_sn_other_state" model="l10n_br_fiscal.document">
|
|
459
347
|
<field name="company_id" ref="l10n_br_base.empresa_simples_nacional" />
|
|
@@ -480,19 +368,11 @@
|
|
|
480
368
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
481
369
|
</record>
|
|
482
370
|
|
|
483
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
484
|
-
<value eval="[ref('demo_nfe_line_sn_other_state_6-1')]" />
|
|
485
|
-
</function>
|
|
486
|
-
|
|
487
371
|
<record
|
|
488
372
|
id="demo_nfe_line_sn_other_state_6-1"
|
|
489
373
|
model="l10n_br_fiscal.document.line"
|
|
490
374
|
/>
|
|
491
375
|
|
|
492
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
493
|
-
<value eval="[ref('demo_nfe_line_sn_other_state_6-1')]" />
|
|
494
|
-
</function>
|
|
495
|
-
|
|
496
376
|
<record id="demo_nfe_line_sn_other_state_6-2" model="l10n_br_fiscal.document.line">
|
|
497
377
|
<field name="document_id" ref="demo_nfe_sn_other_state" />
|
|
498
378
|
<field name="name">Teste</field>
|
|
@@ -504,19 +384,11 @@
|
|
|
504
384
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
505
385
|
</record>
|
|
506
386
|
|
|
507
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
508
|
-
<value eval="[ref('demo_nfe_line_sn_other_state_6-2')]" />
|
|
509
|
-
</function>
|
|
510
|
-
|
|
511
387
|
<record
|
|
512
388
|
id="demo_nfe_line_sn_other_state_6-2"
|
|
513
389
|
model="l10n_br_fiscal.document.line"
|
|
514
390
|
/>
|
|
515
391
|
|
|
516
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
517
|
-
<value eval="[ref('demo_nfe_line_sn_other_state_6-2')]" />
|
|
518
|
-
</function>
|
|
519
|
-
|
|
520
392
|
<!-- NFe Test - Empresa Simples Nacional - Exterior -->
|
|
521
393
|
<record id="demo_nfe_sn_export" model="l10n_br_fiscal.document">
|
|
522
394
|
<field name="company_id" ref="l10n_br_base.empresa_simples_nacional" />
|
|
@@ -543,16 +415,8 @@
|
|
|
543
415
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
544
416
|
</record>
|
|
545
417
|
|
|
546
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
547
|
-
<value eval="[ref('demo_nfe_line_sn_export_7-1')]" />
|
|
548
|
-
</function>
|
|
549
|
-
|
|
550
418
|
<record id="demo_nfe_line_sn_export_7-1" model="l10n_br_fiscal.document.line" />
|
|
551
419
|
|
|
552
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
553
|
-
<value eval="[ref('demo_nfe_line_sn_export_7-1')]" />
|
|
554
|
-
</function>
|
|
555
|
-
|
|
556
420
|
<record id="demo_nfe_line_sn_export_7-2" model="l10n_br_fiscal.document.line">
|
|
557
421
|
<field name="document_id" ref="demo_nfe_sn_export" />
|
|
558
422
|
<field name="name">Teste</field>
|
|
@@ -564,16 +428,8 @@
|
|
|
564
428
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
565
429
|
</record>
|
|
566
430
|
|
|
567
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
568
|
-
<value eval="[ref('demo_nfe_line_sn_export_7-2')]" />
|
|
569
|
-
</function>
|
|
570
|
-
|
|
571
431
|
<record id="demo_nfe_line_sn_export_7-2" model="l10n_br_fiscal.document.line" />
|
|
572
432
|
|
|
573
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
574
|
-
<value eval="[ref('demo_nfe_line_sn_export_7-2')]" />
|
|
575
|
-
</function>
|
|
576
|
-
|
|
577
433
|
<!-- NFe Test - Empresa Simples Nacional - Outro Estado -->
|
|
578
434
|
<record id="demo_nfe_sn_nao_contribuinte" model="l10n_br_fiscal.document">
|
|
579
435
|
<field name="company_id" ref="l10n_br_base.empresa_simples_nacional" />
|
|
@@ -603,19 +459,11 @@
|
|
|
603
459
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
604
460
|
</record>
|
|
605
461
|
|
|
606
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
607
|
-
<value eval="[ref('demo_nfe_line_sn_nao_contribuinte_7-1')]" />
|
|
608
|
-
</function>
|
|
609
|
-
|
|
610
462
|
<record
|
|
611
463
|
id="demo_nfe_line_sn_nao_contribuinte_7-1"
|
|
612
464
|
model="l10n_br_fiscal.document.line"
|
|
613
465
|
/>
|
|
614
466
|
|
|
615
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
616
|
-
<value eval="[ref('demo_nfe_line_sn_nao_contribuinte_7-1')]" />
|
|
617
|
-
</function>
|
|
618
|
-
|
|
619
467
|
<record
|
|
620
468
|
id="demo_nfe_line_sn_nao_contribuinte_7-2"
|
|
621
469
|
model="l10n_br_fiscal.document.line"
|
|
@@ -630,19 +478,11 @@
|
|
|
630
478
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_venda" />
|
|
631
479
|
</record>
|
|
632
480
|
|
|
633
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
634
|
-
<value eval="[ref('demo_nfe_line_sn_nao_contribuinte_7-2')]" />
|
|
635
|
-
</function>
|
|
636
|
-
|
|
637
481
|
<record
|
|
638
482
|
id="demo_nfe_line_sn_nao_contribuinte_7-2"
|
|
639
483
|
model="l10n_br_fiscal.document.line"
|
|
640
484
|
/>
|
|
641
485
|
|
|
642
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
643
|
-
<value eval="[ref('demo_nfe_line_sn_nao_contribuinte_7-2')]" />
|
|
644
|
-
</function>
|
|
645
|
-
|
|
646
486
|
<!-- NFe Test - Subsequent Operation - Simples Faturamento -->
|
|
647
487
|
<record id="demo_nfe_so_simples_faturamento" model="l10n_br_fiscal.document">
|
|
648
488
|
<field name="company_id" ref="l10n_br_base.empresa_lucro_presumido" />
|
|
@@ -680,19 +520,11 @@
|
|
|
680
520
|
<field name="cfop_id" ref="l10n_br_fiscal.cfop_5922" />
|
|
681
521
|
</record>
|
|
682
522
|
|
|
683
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
684
|
-
<value eval="[ref('demo_nfe_line_so_simples_faturamento_7-1')]" />
|
|
685
|
-
</function>
|
|
686
|
-
|
|
687
523
|
<record
|
|
688
524
|
id="demo_nfe_line_so_simples_faturamento_7-1"
|
|
689
525
|
model="l10n_br_fiscal.document.line"
|
|
690
526
|
/>
|
|
691
527
|
|
|
692
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
693
|
-
<value eval="[ref('demo_nfe_line_so_simples_faturamento_7-1')]" />
|
|
694
|
-
</function>
|
|
695
|
-
|
|
696
528
|
<!-- NFe Compras Test - Empresa Contribuinte - Mesmo Estado -->
|
|
697
529
|
<record id="demo_nfe_purchase_same_state" model="l10n_br_fiscal.document">
|
|
698
530
|
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
|
|
@@ -723,16 +555,8 @@
|
|
|
723
555
|
/>
|
|
724
556
|
</record>
|
|
725
557
|
|
|
726
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
727
|
-
<value eval="[ref('demo_nfe_purchase_line_same_state_1-1')]" />
|
|
728
|
-
</function>
|
|
729
|
-
|
|
730
558
|
<record
|
|
731
559
|
id="demo_nfe_purchase_line_same_state_1-1"
|
|
732
560
|
model="l10n_br_fiscal.document.line"
|
|
733
561
|
/>
|
|
734
|
-
|
|
735
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
|
|
736
|
-
<value eval="[ref('demo_nfe_purchase_line_same_state_1-1')]" />
|
|
737
|
-
</function>
|
|
738
562
|
</odoo>
|
|
@@ -22,8 +22,4 @@
|
|
|
22
22
|
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
|
|
23
23
|
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_servico" />
|
|
24
24
|
</record>
|
|
25
|
-
|
|
26
|
-
<function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
|
|
27
|
-
<value eval="[ref('l10n_br_fiscal.demo_nfse_line_same_state_1-1')]" />
|
|
28
|
-
</function>
|
|
29
25
|
</odoo>
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
<record id="fo_venda" model="l10n_br_fiscal.operation">
|
|
4
4
|
<field
|
|
5
5
|
name="comment_ids"
|
|
6
|
-
eval="[(
|
|
6
|
+
eval="[Command.set([ref('l10n_br_fiscal.fiscal_comment_dummy')])]"
|
|
7
7
|
/>
|
|
8
8
|
</record>
|
|
9
9
|
|
|
10
10
|
<record id="fo_venda_venda" model="l10n_br_fiscal.operation.line">
|
|
11
11
|
<field
|
|
12
12
|
name="comment_ids"
|
|
13
|
-
eval="[(
|
|
13
|
+
eval="[Command.set([ref('l10n_br_fiscal.fiscal_line_comment_dummy')])]"
|
|
14
14
|
/>
|
|
15
15
|
</record>
|
|
16
16
|
</odoo>
|