odoo-addon-l10n-br-fiscal 16.0.11.4.0__py3-none-any.whl → 16.0.12.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of odoo-addon-l10n-br-fiscal might be problematic. Click here for more details.

@@ -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:ce2fe73bc4b18012db2681285ba57997dbab06aa32943eeeea86fb6cc5a224ee
14
+ !! source digest: sha256:c7237cc492a3c05bdc327d62bacbd7bc04bf544bc7702fc02c34dcca0c6b8b92
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": "16.0.11.4.0",
13
+ "version": "16.0.12.0.0",
14
14
  "depends": [
15
15
  "product",
16
16
  "uom_alias",
@@ -47,13 +47,6 @@
47
47
  <value eval="[ref('demo_nfe_line_same_state_1-1')]" />
48
48
  </function>
49
49
 
50
- <function
51
- model="l10n_br_fiscal.document.line"
52
- name="_onchange_fiscal_operation_line_id"
53
- >
54
- <value eval="[ref('demo_nfe_line_same_state_1-1')]" />
55
- </function>
56
-
57
50
  <record id="demo_nfe_line_same_state_1-2" model="l10n_br_fiscal.document.line">
58
51
  <field name="document_id" ref="demo_nfe_same_state" />
59
52
  <field name="name">Teste</field>
@@ -76,13 +69,6 @@
76
69
  <value eval="[ref('demo_nfe_line_same_state_1-2')]" />
77
70
  </function>
78
71
 
79
- <function
80
- model="l10n_br_fiscal.document.line"
81
- name="_onchange_fiscal_operation_line_id"
82
- >
83
- <value eval="[ref('demo_nfe_line_same_state_1-2')]" />
84
- </function>
85
-
86
72
  <!-- NFe Test - Empresa Contribuinte - Outro Estado -->
87
73
  <record id="demo_nfe_other_state" model="l10n_br_fiscal.document">
88
74
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -120,13 +106,6 @@
120
106
  <value eval="[ref('demo_nfe_line_other_state_1-3')]" />
121
107
  </function>
122
108
 
123
- <function
124
- model="l10n_br_fiscal.document.line"
125
- name="_onchange_fiscal_operation_line_id"
126
- >
127
- <value eval="[ref('demo_nfe_line_other_state_1-3')]" />
128
- </function>
129
-
130
109
  <record id="demo_nfe_line_other_state_2-3" model="l10n_br_fiscal.document.line">
131
110
  <field name="document_id" ref="demo_nfe_other_state" />
132
111
  <field name="name">Teste</field>
@@ -149,13 +128,6 @@
149
128
  <value eval="[ref('demo_nfe_line_other_state_2-3')]" />
150
129
  </function>
151
130
 
152
- <function
153
- model="l10n_br_fiscal.document.line"
154
- name="_onchange_fiscal_operation_line_id"
155
- >
156
- <value eval="[ref('demo_nfe_line_other_state_2-3')]" />
157
- </function>
158
-
159
131
  <record id="demo_nfe_line_other_state_3-3" model="l10n_br_fiscal.document.line">
160
132
  <field name="document_id" ref="demo_nfe_other_state" />
161
133
  <field name="name">Teste</field>
@@ -179,13 +151,6 @@
179
151
  <value eval="[ref('demo_nfe_line_other_state_3-3')]" />
180
152
  </function>
181
153
 
182
- <function
183
- model="l10n_br_fiscal.document.line"
184
- name="_onchange_fiscal_operation_line_id"
185
- >
186
- <value eval="[ref('demo_nfe_line_other_state_3-3')]" />
187
- </function>
188
-
189
154
  <!-- NFe Test - Empresa Contribuinte - Exterior -->
190
155
  <record id="demo_nfe_export" model="l10n_br_fiscal.document">
191
156
  <field name="company_id" ref="l10n_br_base.empresa_lucro_presumido" />
@@ -225,13 +190,6 @@
225
190
  <value eval="[ref('demo_nfe_line_export_3-1')]" />
226
191
  </function>
227
192
 
228
- <function
229
- model="l10n_br_fiscal.document.line"
230
- name="_onchange_fiscal_operation_line_id"
231
- >
232
- <value eval="[ref('demo_nfe_line_export_3-1')]" />
233
- </function>
234
-
235
193
  <record id="demo_nfe_line_export_3-2" model="l10n_br_fiscal.document.line">
236
194
  <field name="document_id" ref="demo_nfe_export" />
237
195
  <field name="name">Teste</field>
@@ -254,13 +212,6 @@
254
212
  <value eval="[ref('demo_nfe_line_export_3-2')]" />
255
213
  </function>
256
214
 
257
- <function
258
- model="l10n_br_fiscal.document.line"
259
- name="_onchange_fiscal_operation_line_id"
260
- >
261
- <value eval="[ref('demo_nfe_line_export_3-2')]" />
262
- </function>
263
-
264
215
  <!-- NFe Test - Empresa Contribuinte - Nao Contribuinte PJ -->
265
216
  <record id="demo_nfe_nao_contribuinte" model="l10n_br_fiscal.document">
266
217
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -312,13 +263,6 @@
312
263
  <value eval="[ref('demo_nfe_line_nao_contribuinte_4-1')]" />
313
264
  </function>
314
265
 
315
- <function
316
- model="l10n_br_fiscal.document.line"
317
- name="_onchange_fiscal_operation_line_id"
318
- >
319
- <value eval="[ref('demo_nfe_line_nao_contribuinte_4-1')]" />
320
- </function>
321
-
322
266
  <record
323
267
  id="demo_nfe_line_nao_contribuinte_4-2"
324
268
  model="l10n_br_fiscal.document.line"
@@ -350,13 +294,6 @@
350
294
  <value eval="[ref('demo_nfe_line_nao_contribuinte_4-2')]" />
351
295
  </function>
352
296
 
353
- <function
354
- model="l10n_br_fiscal.document.line"
355
- name="_onchange_fiscal_operation_line_id"
356
- >
357
- <value eval="[ref('demo_nfe_line_nao_contribuinte_4-2')]" />
358
- </function>
359
-
360
297
  <!-- NFe Test - Empresa Contribuinte - Nao Contribuinte PJ Tax Benefit -->
361
298
  <record id="demo_nfe_tax_benefit" model="l10n_br_fiscal.document">
362
299
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -402,13 +339,6 @@
402
339
  <value eval="[ref('demo_nfe_tax_benefit_4-1')]" />
403
340
  </function>
404
341
 
405
- <function
406
- model="l10n_br_fiscal.document.line"
407
- name="_onchange_fiscal_operation_line_id"
408
- >
409
- <value eval="[ref('demo_nfe_tax_benefit_4-1')]" />
410
- </function>
411
-
412
342
  <!-- NFe Test - Empresa Contribuinte - Nao Contribuinte PF -->
413
343
  <record id="demo_nfe_nao_contribuinte_pf" model="l10n_br_fiscal.document">
414
344
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -449,13 +379,6 @@
449
379
  <value eval="[ref('demo_nfe_nao_contribuinte_pf_1-2')]" />
450
380
  </function>
451
381
 
452
- <function
453
- model="l10n_br_fiscal.document.line"
454
- name="_onchange_fiscal_operation_line_id"
455
- >
456
- <value eval="[ref('demo_nfe_nao_contribuinte_pf_1-2')]" />
457
- </function>
458
-
459
382
  <record id="demo_nfe_nao_contribuinte_pf_2-2" model="l10n_br_fiscal.document.line">
460
383
  <field name="document_id" ref="demo_nfe_nao_contribuinte_pf" />
461
384
  <field name="name">Teste</field>
@@ -481,13 +404,6 @@
481
404
  <value eval="[ref('demo_nfe_nao_contribuinte_pf_2-2')]" />
482
405
  </function>
483
406
 
484
- <function
485
- model="l10n_br_fiscal.document.line"
486
- name="_onchange_fiscal_operation_line_id"
487
- >
488
- <value eval="[ref('demo_nfe_nao_contribuinte_pf_2-2')]" />
489
- </function>
490
-
491
407
  <!-- NFe Test - Empresa Simples Nacional - Mesmo Estado -->
492
408
  <record id="demo_nfe_sn_same_state" model="l10n_br_fiscal.document">
493
409
  <field name="company_id" ref="l10n_br_base.empresa_simples_nacional" />
@@ -525,13 +441,6 @@
525
441
  <value eval="[ref('demo_nfe_line_sn_same_state_5-1')]" />
526
442
  </function>
527
443
 
528
- <function
529
- model="l10n_br_fiscal.document.line"
530
- name="_onchange_fiscal_operation_line_id"
531
- >
532
- <value eval="[ref('demo_nfe_line_sn_same_state_5-1')]" />
533
- </function>
534
-
535
444
  <record id="demo_nfe_line_sn_same_state_5-2" model="l10n_br_fiscal.document.line">
536
445
  <field name="document_id" ref="demo_nfe_sn_same_state" />
537
446
  <field name="name">Teste</field>
@@ -554,13 +463,6 @@
554
463
  <value eval="[ref('demo_nfe_line_sn_same_state_5-2')]" />
555
464
  </function>
556
465
 
557
- <function
558
- model="l10n_br_fiscal.document.line"
559
- name="_onchange_fiscal_operation_line_id"
560
- >
561
- <value eval="[ref('demo_nfe_line_sn_same_state_5-2')]" />
562
- </function>
563
-
564
466
  <!-- NFe Test - Empresa Simples Nacional - Outro Estado -->
565
467
  <record id="demo_nfe_sn_other_state" model="l10n_br_fiscal.document">
566
468
  <field name="company_id" ref="l10n_br_base.empresa_simples_nacional" />
@@ -598,13 +500,6 @@
598
500
  <value eval="[ref('demo_nfe_line_sn_other_state_6-1')]" />
599
501
  </function>
600
502
 
601
- <function
602
- model="l10n_br_fiscal.document.line"
603
- name="_onchange_fiscal_operation_line_id"
604
- >
605
- <value eval="[ref('demo_nfe_line_sn_other_state_6-1')]" />
606
- </function>
607
-
608
503
  <record id="demo_nfe_line_sn_other_state_6-2" model="l10n_br_fiscal.document.line">
609
504
  <field name="document_id" ref="demo_nfe_sn_other_state" />
610
505
  <field name="name">Teste</field>
@@ -627,13 +522,6 @@
627
522
  <value eval="[ref('demo_nfe_line_sn_other_state_6-2')]" />
628
523
  </function>
629
524
 
630
- <function
631
- model="l10n_br_fiscal.document.line"
632
- name="_onchange_fiscal_operation_line_id"
633
- >
634
- <value eval="[ref('demo_nfe_line_sn_other_state_6-2')]" />
635
- </function>
636
-
637
525
  <!-- NFe Test - Empresa Simples Nacional - Exterior -->
638
526
  <record id="demo_nfe_sn_export" model="l10n_br_fiscal.document">
639
527
  <field name="company_id" ref="l10n_br_base.empresa_simples_nacional" />
@@ -671,13 +559,6 @@
671
559
  <value eval="[ref('demo_nfe_line_sn_export_7-1')]" />
672
560
  </function>
673
561
 
674
- <function
675
- model="l10n_br_fiscal.document.line"
676
- name="_onchange_fiscal_operation_line_id"
677
- >
678
- <value eval="[ref('demo_nfe_line_sn_export_7-1')]" />
679
- </function>
680
-
681
562
  <record id="demo_nfe_line_sn_export_7-2" model="l10n_br_fiscal.document.line">
682
563
  <field name="document_id" ref="demo_nfe_sn_export" />
683
564
  <field name="name">Teste</field>
@@ -700,13 +581,6 @@
700
581
  <value eval="[ref('demo_nfe_line_sn_export_7-2')]" />
701
582
  </function>
702
583
 
703
- <function
704
- model="l10n_br_fiscal.document.line"
705
- name="_onchange_fiscal_operation_line_id"
706
- >
707
- <value eval="[ref('demo_nfe_line_sn_export_7-2')]" />
708
- </function>
709
-
710
584
  <!-- NFe Test - Empresa Simples Nacional - Outro Estado -->
711
585
  <record id="demo_nfe_sn_nao_contribuinte" model="l10n_br_fiscal.document">
712
586
  <field name="company_id" ref="l10n_br_base.empresa_simples_nacional" />
@@ -750,13 +624,6 @@
750
624
  <value eval="[ref('demo_nfe_line_sn_nao_contribuinte_7-1')]" />
751
625
  </function>
752
626
 
753
- <function
754
- model="l10n_br_fiscal.document.line"
755
- name="_onchange_fiscal_operation_line_id"
756
- >
757
- <value eval="[ref('demo_nfe_line_sn_nao_contribuinte_7-1')]" />
758
- </function>
759
-
760
627
  <record
761
628
  id="demo_nfe_line_sn_nao_contribuinte_7-2"
762
629
  model="l10n_br_fiscal.document.line"
@@ -785,13 +652,6 @@
785
652
  <value eval="[ref('demo_nfe_line_sn_nao_contribuinte_7-2')]" />
786
653
  </function>
787
654
 
788
- <function
789
- model="l10n_br_fiscal.document.line"
790
- name="_onchange_fiscal_operation_line_id"
791
- >
792
- <value eval="[ref('demo_nfe_line_sn_nao_contribuinte_7-2')]" />
793
- </function>
794
-
795
655
  <!-- NFe Test - Subsequent Operation - Simples Faturamento -->
796
656
  <record id="demo_nfe_so_simples_faturamento" model="l10n_br_fiscal.document">
797
657
  <field name="company_id" ref="l10n_br_base.empresa_lucro_presumido" />
@@ -843,13 +703,6 @@
843
703
  <value eval="[ref('demo_nfe_line_so_simples_faturamento_7-1')]" />
844
704
  </function>
845
705
 
846
- <function
847
- model="l10n_br_fiscal.document.line"
848
- name="_onchange_fiscal_operation_line_id"
849
- >
850
- <value eval="[ref('demo_nfe_line_so_simples_faturamento_7-1')]" />
851
- </function>
852
-
853
706
  <!-- NFe Compras Test - Empresa Contribuinte - Mesmo Estado -->
854
707
  <record id="demo_nfe_purchase_same_state" model="l10n_br_fiscal.document">
855
708
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
@@ -894,12 +747,4 @@
894
747
  <value eval="[ref('demo_nfe_purchase_line_same_state_1-1')]" />
895
748
  </function>
896
749
 
897
- <function
898
- model="l10n_br_fiscal.document.line"
899
- name="_onchange_fiscal_operation_line_id"
900
- >
901
- <value eval="[ref('demo_nfe_purchase_line_same_state_1-1')]" />
902
- </function>
903
-
904
-
905
750
  </odoo>
@@ -36,6 +36,7 @@ class DocumentLine(models.Model):
36
36
  comodel_name="res.company",
37
37
  related="document_id.company_id",
38
38
  store=True,
39
+ precompute=True,
39
40
  string="Company",
40
41
  )
41
42
 
@@ -46,6 +47,7 @@ class DocumentLine(models.Model):
46
47
  partner_id = fields.Many2one(
47
48
  related="document_id.partner_id",
48
49
  store=True,
50
+ precompute=True,
49
51
  )
50
52
 
51
53
  quantity = fields.Float(default=1.0)