odoo-addon-l10n-br-fiscal 16.0.11.1.1__py3-none-any.whl → 16.0.11.2.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:b885c7f07dc5927d04d0bba6575996b2c0b26e5fe4e2f251bc508d0ad013578c
14
+ !! source digest: sha256:6ab2fb2e55c11e13e78048fb917f6711c02fcf72bc59dbbfc3ff2b6dcaf6cac4
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.1.1",
13
+ "version": "16.0.11.2.0",
14
14
  "depends": [
15
15
  "product",
16
16
  "uom_alias",
@@ -30,7 +30,6 @@
30
30
  <field name="name">Teste</field>
31
31
  <field name="product_id" ref="product.product_product_6" />
32
32
  <field name="uom_id" ref="uom.product_uom_unit" />
33
- <field name="price_unit">100</field>
34
33
  <field name="quantity">1</field>
35
34
  <field name="fiscal_operation_type">out</field>
36
35
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -42,7 +41,6 @@
42
41
  </function>
43
42
 
44
43
  <record id="demo_nfe_line_same_state_1-1" model="l10n_br_fiscal.document.line">
45
- <field name="price_unit">100</field>
46
44
  </record>
47
45
 
48
46
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -61,7 +59,6 @@
61
59
  <field name="name">Teste</field>
62
60
  <field name="product_id" ref="product.product_product_27" />
63
61
  <field name="uom_id" ref="uom.product_uom_unit" />
64
- <field name="price_unit">100</field>
65
62
  <field name="quantity">1</field>
66
63
  <field name="fiscal_operation_type">out</field>
67
64
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -73,7 +70,6 @@
73
70
  </function>
74
71
 
75
72
  <record id="demo_nfe_line_same_state_1-2" model="l10n_br_fiscal.document.line">
76
- <field name="price_unit">100</field>
77
73
  </record>
78
74
 
79
75
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -107,7 +103,6 @@
107
103
  <field name="name">Teste</field>
108
104
  <field name="product_id" ref="product.product_product_6" />
109
105
  <field name="uom_id" ref="uom.product_uom_unit" />
110
- <field name="price_unit">100</field>
111
106
  <field name="quantity">1</field>
112
107
  <field name="fiscal_operation_type">out</field>
113
108
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -119,7 +114,6 @@
119
114
  </function>
120
115
 
121
116
  <record id="demo_nfe_line_other_state_1-3" model="l10n_br_fiscal.document.line">
122
- <field name="price_unit">100</field>
123
117
  </record>
124
118
 
125
119
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -138,7 +132,6 @@
138
132
  <field name="name">Teste</field>
139
133
  <field name="product_id" ref="product.product_product_27" />
140
134
  <field name="uom_id" ref="uom.product_uom_unit" />
141
- <field name="price_unit">100</field>
142
135
  <field name="quantity">1</field>
143
136
  <field name="fiscal_operation_type">out</field>
144
137
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -150,7 +143,6 @@
150
143
  </function>
151
144
 
152
145
  <record id="demo_nfe_line_other_state_2-3" model="l10n_br_fiscal.document.line">
153
- <field name="price_unit">100</field>
154
146
  </record>
155
147
 
156
148
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -181,7 +173,6 @@
181
173
  </function>
182
174
 
183
175
  <record id="demo_nfe_line_other_state_3-3" model="l10n_br_fiscal.document.line">
184
- <field name="price_unit">100</field>
185
176
  </record>
186
177
 
187
178
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -217,7 +208,6 @@
217
208
  <field name="name">Teste</field>
218
209
  <field name="product_id" ref="product.product_product_6" />
219
210
  <field name="uom_id" ref="uom.product_uom_unit" />
220
- <field name="price_unit">100</field>
221
211
  <field name="quantity">1</field>
222
212
  <field name="fiscal_operation_type">out</field>
223
213
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -229,7 +219,6 @@
229
219
  </function>
230
220
 
231
221
  <record id="demo_nfe_line_export_3-1" model="l10n_br_fiscal.document.line">
232
- <field name="price_unit">100</field>
233
222
  </record>
234
223
 
235
224
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -248,7 +237,6 @@
248
237
  <field name="name">Teste</field>
249
238
  <field name="product_id" ref="product.product_product_27" />
250
239
  <field name="uom_id" ref="uom.product_uom_unit" />
251
- <field name="price_unit">100</field>
252
240
  <field name="quantity">1</field>
253
241
  <field name="fiscal_operation_type">out</field>
254
242
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -260,7 +248,6 @@
260
248
  </function>
261
249
 
262
250
  <record id="demo_nfe_line_export_3-2" model="l10n_br_fiscal.document.line">
263
- <field name="price_unit">100</field>
264
251
  </record>
265
252
 
266
253
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -297,7 +284,6 @@
297
284
  <field name="name">Teste</field>
298
285
  <field name="product_id" ref="product.product_product_6" />
299
286
  <field name="uom_id" ref="uom.product_uom_unit" />
300
- <field name="price_unit">100</field>
301
287
  <field name="quantity">1</field>
302
288
  <field name="fiscal_operation_type">out</field>
303
289
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -320,7 +306,6 @@
320
306
  id="demo_nfe_line_nao_contribuinte_4-1"
321
307
  model="l10n_br_fiscal.document.line"
322
308
  >
323
- <field name="price_unit">100</field>
324
309
  </record>
325
310
 
326
311
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -342,7 +327,6 @@
342
327
  <field name="name">Teste</field>
343
328
  <field name="product_id" ref="product.product_product_27" />
344
329
  <field name="uom_id" ref="uom.product_uom_unit" />
345
- <field name="price_unit">100</field>
346
330
  <field name="quantity">1</field>
347
331
  <field name="fiscal_operation_type">out</field>
348
332
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -360,7 +344,6 @@
360
344
  id="demo_nfe_line_nao_contribuinte_4-2"
361
345
  model="l10n_br_fiscal.document.line"
362
346
  >
363
- <field name="price_unit">100</field>
364
347
  </record>
365
348
 
366
349
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -394,7 +377,6 @@
394
377
  <field name="name">Teste</field>
395
378
  <field name="product_id" ref="product.product_product_7" />
396
379
  <field name="uom_id" ref="uom.product_uom_unit" />
397
- <field name="price_unit">100</field>
398
380
  <field name="quantity">1</field>
399
381
  <field name="fiscal_operation_type">out</field>
400
382
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -414,7 +396,6 @@
414
396
  </function>
415
397
 
416
398
  <record id="demo_nfe_tax_benefit_4-1" model="l10n_br_fiscal.document.line">
417
- <field name="price_unit">100</field>
418
399
  </record>
419
400
 
420
401
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -448,7 +429,6 @@
448
429
  <field name="name">Teste</field>
449
430
  <field name="product_id" ref="product.product_product_6" />
450
431
  <field name="uom_id" ref="uom.product_uom_unit" />
451
- <field name="price_unit">100</field>
452
432
  <field name="quantity">1</field>
453
433
  <field name="fiscal_operation_type">out</field>
454
434
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -463,7 +443,6 @@
463
443
  </function>
464
444
 
465
445
  <record id="demo_nfe_nao_contribuinte_pf_1-2" model="l10n_br_fiscal.document.line">
466
- <field name="price_unit">100</field>
467
446
  </record>
468
447
 
469
448
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -482,7 +461,6 @@
482
461
  <field name="name">Teste</field>
483
462
  <field name="product_id" ref="product.product_product_27" />
484
463
  <field name="uom_id" ref="uom.product_uom_unit" />
485
- <field name="price_unit">100</field>
486
464
  <field name="quantity">1</field>
487
465
  <field name="fiscal_operation_type">out</field>
488
466
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -497,7 +475,6 @@
497
475
  </function>
498
476
 
499
477
  <record id="demo_nfe_nao_contribuinte_pf_2-2" model="l10n_br_fiscal.document.line">
500
- <field name="price_unit">100</field>
501
478
  </record>
502
479
 
503
480
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -531,7 +508,6 @@
531
508
  <field name="name">Teste</field>
532
509
  <field name="product_id" ref="product.product_product_6" />
533
510
  <field name="uom_id" ref="uom.product_uom_unit" />
534
- <field name="price_unit">100</field>
535
511
  <field name="quantity">1</field>
536
512
  <field name="fiscal_operation_type">out</field>
537
513
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -543,7 +519,6 @@
543
519
  </function>
544
520
 
545
521
  <record id="demo_nfe_line_sn_same_state_5-1" model="l10n_br_fiscal.document.line">
546
- <field name="price_unit">100</field>
547
522
  </record>
548
523
 
549
524
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -562,7 +537,6 @@
562
537
  <field name="name">Teste</field>
563
538
  <field name="product_id" ref="product.product_product_27" />
564
539
  <field name="uom_id" ref="uom.product_uom_unit" />
565
- <field name="price_unit">100</field>
566
540
  <field name="quantity">1</field>
567
541
  <field name="fiscal_operation_type">out</field>
568
542
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -574,7 +548,6 @@
574
548
  </function>
575
549
 
576
550
  <record id="demo_nfe_line_sn_same_state_5-2" model="l10n_br_fiscal.document.line">
577
- <field name="price_unit">100</field>
578
551
  </record>
579
552
 
580
553
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -608,7 +581,6 @@
608
581
  <field name="name">Teste</field>
609
582
  <field name="product_id" ref="product.product_product_6" />
610
583
  <field name="uom_id" ref="uom.product_uom_unit" />
611
- <field name="price_unit">100</field>
612
584
  <field name="quantity">1</field>
613
585
  <field name="fiscal_operation_type">out</field>
614
586
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -620,7 +592,6 @@
620
592
  </function>
621
593
 
622
594
  <record id="demo_nfe_line_sn_other_state_6-1" model="l10n_br_fiscal.document.line">
623
- <field name="price_unit">100</field>
624
595
  </record>
625
596
 
626
597
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -639,7 +610,6 @@
639
610
  <field name="name">Teste</field>
640
611
  <field name="product_id" ref="product.product_product_27" />
641
612
  <field name="uom_id" ref="uom.product_uom_unit" />
642
- <field name="price_unit">100</field>
643
613
  <field name="quantity">1</field>
644
614
  <field name="fiscal_operation_type">out</field>
645
615
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -651,7 +621,6 @@
651
621
  </function>
652
622
 
653
623
  <record id="demo_nfe_line_sn_other_state_6-2" model="l10n_br_fiscal.document.line">
654
- <field name="price_unit">100</field>
655
624
  </record>
656
625
 
657
626
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -685,7 +654,6 @@
685
654
  <field name="name">Teste</field>
686
655
  <field name="product_id" ref="product.product_product_6" />
687
656
  <field name="uom_id" ref="uom.product_uom_unit" />
688
- <field name="price_unit">100</field>
689
657
  <field name="quantity">1</field>
690
658
  <field name="fiscal_operation_type">out</field>
691
659
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -697,7 +665,6 @@
697
665
  </function>
698
666
 
699
667
  <record id="demo_nfe_line_sn_export_7-1" model="l10n_br_fiscal.document.line">
700
- <field name="price_unit">100</field>
701
668
  </record>
702
669
 
703
670
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -716,7 +683,6 @@
716
683
  <field name="name">Teste</field>
717
684
  <field name="product_id" ref="product.product_product_27" />
718
685
  <field name="uom_id" ref="uom.product_uom_unit" />
719
- <field name="price_unit">100</field>
720
686
  <field name="quantity">1</field>
721
687
  <field name="fiscal_operation_type">out</field>
722
688
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -728,7 +694,6 @@
728
694
  </function>
729
695
 
730
696
  <record id="demo_nfe_line_sn_export_7-2" model="l10n_br_fiscal.document.line">
731
- <field name="price_unit">100</field>
732
697
  </record>
733
698
 
734
699
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -765,7 +730,6 @@
765
730
  <field name="name">Teste</field>
766
731
  <field name="product_id" ref="product.product_product_6" />
767
732
  <field name="uom_id" ref="uom.product_uom_unit" />
768
- <field name="price_unit">100</field>
769
733
  <field name="quantity">1</field>
770
734
  <field name="fiscal_operation_type">out</field>
771
735
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -780,7 +744,6 @@
780
744
  id="demo_nfe_line_sn_nao_contribuinte_7-1"
781
745
  model="l10n_br_fiscal.document.line"
782
746
  >
783
- <field name="price_unit">100</field>
784
747
  </record>
785
748
 
786
749
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -802,7 +765,6 @@
802
765
  <field name="name">Teste</field>
803
766
  <field name="product_id" ref="product.product_product_27" />
804
767
  <field name="uom_id" ref="uom.product_uom_unit" />
805
- <field name="price_unit">100</field>
806
768
  <field name="quantity">1</field>
807
769
  <field name="fiscal_operation_type">out</field>
808
770
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
@@ -817,7 +779,6 @@
817
779
  id="demo_nfe_line_sn_nao_contribuinte_7-2"
818
780
  model="l10n_br_fiscal.document.line"
819
781
  >
820
- <field name="price_unit">100</field>
821
782
  </record>
822
783
 
823
784
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -855,7 +816,6 @@
855
816
  <field name="name">Teste</field>
856
817
  <field name="product_id" ref="product.product_product_6" />
857
818
  <field name="uom_id" ref="uom.product_uom_unit" />
858
- <field name="price_unit">100</field>
859
819
  <field name="quantity">1</field>
860
820
  <field name="fiscal_operation_type">out</field>
861
821
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_simples_faturamento" />
@@ -877,7 +837,6 @@
877
837
  id="demo_nfe_line_so_simples_faturamento_7-1"
878
838
  model="l10n_br_fiscal.document.line"
879
839
  >
880
- <field name="price_unit">100</field>
881
840
  </record>
882
841
 
883
842
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -912,7 +871,6 @@
912
871
  <field name="name">Purchase Test</field>
913
872
  <field name="product_id" ref="product.product_product_6" />
914
873
  <field name="uom_id" ref="uom.product_uom_unit" />
915
- <field name="price_unit">100</field>
916
874
  <field name="quantity">1</field>
917
875
  <field name="fiscal_operation_type">in</field>
918
876
  <field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
@@ -930,7 +888,6 @@
930
888
  id="demo_nfe_purchase_line_same_state_1-1"
931
889
  model="l10n_br_fiscal.document.line"
932
890
  >
933
- <field name="price_unit">100</field>
934
891
  </record>
935
892
 
936
893
  <function model="l10n_br_fiscal.document.line" name="_onchange_fiscal_operation_id">
@@ -31,8 +31,5 @@
31
31
  <function model="l10n_br_fiscal.document.line" name="_onchange_product_id_fiscal">
32
32
  <value eval="[ref('l10n_br_fiscal.demo_nfse_line_same_state_1-1')]" />
33
33
  </function>
34
- <function model="l10n_br_fiscal.document.line" name="_onchange_commercial_quantity">
35
- <value eval="[ref('l10n_br_fiscal.demo_nfse_line_same_state_1-1')]" />
36
- </function>
37
34
 
38
35
  </odoo>
@@ -2991,6 +2991,7 @@ msgstr ""
2991
2991
 
2992
2992
  #. module: l10n_br_fiscal
2993
2993
  #: model:ir.model,name:l10n_br_fiscal.model_l10n_br_fiscal_operation
2994
+ #: model:ir.model.fields,field_description:l10n_br_fiscal.field_l10n_br_fiscal_document__fiscal_operation_id
2994
2995
  #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal.operation_form
2995
2996
  #: model_terms:ir.ui.view,arch_db:l10n_br_fiscal.operation_search
2996
2997
  msgid "Fiscal Operation"
@@ -6099,7 +6100,6 @@ msgstr ""
6099
6100
 
6100
6101
  #. module: l10n_br_fiscal
6101
6102
  #: model:ir.actions.act_window,name:l10n_br_fiscal.operation_action
6102
- #: model:ir.model.fields,field_description:l10n_br_fiscal.field_l10n_br_fiscal_document__fiscal_operation_id
6103
6103
  #: model:ir.model.fields,field_description:l10n_br_fiscal.field_l10n_br_fiscal_document_line__fiscal_operation_id
6104
6104
  #: model:ir.model.fields,field_description:l10n_br_fiscal.field_l10n_br_fiscal_document_line_mixin__fiscal_operation_id
6105
6105
  #: model:ir.model.fields,field_description:l10n_br_fiscal.field_l10n_br_fiscal_document_mixin__fiscal_operation_id
@@ -91,9 +91,9 @@ class Document(models.Model):
91
91
  )
92
92
 
93
93
  fiscal_operation_id = fields.Many2one(
94
- domain="[('state', '=', 'approved'), "
95
- "'|', ('fiscal_operation_type', '=', fiscal_operation_type),"
96
- " ('fiscal_operation_type', '=', 'all')]",
94
+ "l10n_br_fiscal.operation",
95
+ string="Fiscal Operation",
96
+ domain="[('state', '=', 'approved')]",
97
97
  )
98
98
 
99
99
  fiscal_operation_type = fields.Selection(
@@ -486,6 +486,19 @@ class Document(models.Model):
486
486
  )
487
487
  )
488
488
 
489
+ @api.onchange("fiscal_operation_type")
490
+ def _onchange_fiscal_operation_type(self):
491
+ domain = [("state", "=", "approved")]
492
+ if self.fiscal_operation_type:
493
+ domain.append(("fiscal_operation_type", "=", self.fiscal_operation_type))
494
+ if (
495
+ self.fiscal_operation_id
496
+ and self.fiscal_operation_id.fiscal_operation_type
497
+ != self.fiscal_operation_type
498
+ ):
499
+ self.fiscal_operation_id = False
500
+ return {"domain": {"fiscal_operation_id": domain}}
501
+
489
502
  @api.depends("company_id")
490
503
  def _compute_currency_id(self):
491
504
  for doc in self:
@@ -127,7 +127,13 @@ class FiscalDocumentLineMixin(models.AbstractModel):
127
127
  help="Indicates potential 'CSLL' and 'IRPJ' tax charges.",
128
128
  )
129
129
 
130
- price_unit = fields.Float(digits="Product Price")
130
+ price_unit = fields.Float(
131
+ digits="Product Price",
132
+ compute="_compute_price_unit_fiscal",
133
+ store=True,
134
+ precompute=True,
135
+ readonly=False,
136
+ )
131
137
 
132
138
  partner_id = fields.Many2one(comodel_name="res.partner", string="Partner")
133
139
 
@@ -198,11 +204,29 @@ class FiscalDocumentLineMixin(models.AbstractModel):
198
204
  string="CFOP Destination",
199
205
  )
200
206
 
201
- fiscal_price = fields.Float(digits="Product Price")
207
+ fiscal_price = fields.Float(
208
+ digits="Product Price",
209
+ compute="_compute_fiscal_price",
210
+ store=True,
211
+ precompute=True,
212
+ readonly=False,
213
+ )
202
214
 
203
- uot_id = fields.Many2one(comodel_name="uom.uom", string="Tax UoM")
215
+ uot_id = fields.Many2one(
216
+ comodel_name="uom.uom",
217
+ string="Tax UoM",
218
+ compute="_compute_uot_id",
219
+ store=True,
220
+ readonly=False,
221
+ )
204
222
 
205
- fiscal_quantity = fields.Float(digits="Product Unit of Measure")
223
+ fiscal_quantity = fields.Float(
224
+ digits="Product Unit of Measure",
225
+ compute="_compute_fiscal_quantity",
226
+ store=True,
227
+ precompute=True,
228
+ readonly=False,
229
+ )
206
230
 
207
231
  discount_value = fields.Monetary()
208
232
 
@@ -567,8 +591,7 @@ class FiscalDocumentLineMixin(models.AbstractModel):
567
591
  ipi_cst_id = fields.Many2one(
568
592
  comodel_name="l10n_br_fiscal.cst",
569
593
  string="CST IPI",
570
- domain="[('cst_type', '=', fiscal_operation_type),"
571
- "('tax_domain', '=', 'ipi')]",
594
+ domain="[('cst_type', '=', fiscal_operation_type),('tax_domain', '=', 'ipi')]",
572
595
  )
573
596
 
574
597
  ipi_cst_code = fields.Char(
@@ -590,8 +613,7 @@ class FiscalDocumentLineMixin(models.AbstractModel):
590
613
  ipi_guideline_id = fields.Many2one(
591
614
  comodel_name="l10n_br_fiscal.tax.ipi.guideline",
592
615
  string="IPI Guideline",
593
- domain="['|', ('cst_in_id', '=', ipi_cst_id),"
594
- "('cst_out_id', '=', ipi_cst_id)]",
616
+ domain="['|', ('cst_in_id', '=', ipi_cst_id),('cst_out_id', '=', ipi_cst_id)]",
595
617
  )
596
618
 
597
619
  # IPI Devolvido Fields
@@ -352,14 +352,12 @@ class FiscalDocumentLineMixinMethods(models.AbstractModel):
352
352
  tax_values.update(prepared_fields)
353
353
  return tax_values
354
354
 
355
- def _get_product_price(self):
356
- self.ensure_one()
357
- price = {
358
- "sale_price": self.product_id.list_price,
359
- "cost_price": self.product_id.standard_price,
360
- }
361
-
362
- self.price_unit = price.get(self.fiscal_operation_id.default_price_unit, 0.00)
355
+ def _compute_price_unit_fiscal(self):
356
+ for line in self:
357
+ line.price_unit = {
358
+ "sale_price": line.product_id.list_price,
359
+ "cost_price": line.product_id.standard_price,
360
+ }.get(line.fiscal_operation_id.default_price_unit, 0)
363
361
 
364
362
  def __document_comment_vals(self):
365
363
  self.ensure_one()
@@ -393,8 +391,7 @@ class FiscalDocumentLineMixinMethods(models.AbstractModel):
393
391
  def _onchange_fiscal_operation_id(self):
394
392
  if self.fiscal_operation_id:
395
393
  if not self.price_unit:
396
- self._get_product_price()
397
- self._onchange_commercial_quantity()
394
+ self._compute_price_unit_fiscal()
398
395
  self.fiscal_operation_line_id = self.fiscal_operation_id.line_definition(
399
396
  company=self.company_id,
400
397
  partner=self._get_fiscal_partner(),
@@ -476,7 +473,7 @@ class FiscalDocumentLineMixinMethods(models.AbstractModel):
476
473
  self.city_taxation_code_id = False
477
474
  self.uot_id = False
478
475
 
479
- self._get_product_price()
476
+ self._compute_price_unit_fiscal()
480
477
  self._onchange_fiscal_operation_id()
481
478
 
482
479
  def _prepare_fields_issqn(self, tax_dict):
@@ -755,28 +752,47 @@ class FiscalDocumentLineMixinMethods(models.AbstractModel):
755
752
  self._update_fiscal_tax_ids(self._get_all_tax_id_fields())
756
753
  self._update_fiscal_taxes()
757
754
 
758
- @api.model
759
- def _update_fiscal_quantity(self, product_id, price, quantity, uom_id, uot_id):
760
- result = {"uot_id": uom_id, "fiscal_quantity": quantity, "fiscal_price": price}
761
- if uot_id and uom_id != uot_id:
762
- result["uot_id"] = uot_id
763
- if product_id and price and quantity:
764
- product = self.env["product.product"].browse(product_id)
765
- result["fiscal_price"] = price / (product.uot_factor or 1.0)
766
- result["fiscal_quantity"] = quantity * (product.uot_factor or 1.0)
767
-
768
- return result
769
-
770
- @api.onchange("uot_id", "uom_id", "price_unit", "quantity")
771
- def _onchange_commercial_quantity(self):
772
- product_id = False
773
- if self.product_id:
774
- product_id = self.product_id.id
775
- self.update(
776
- self._update_fiscal_quantity(
777
- product_id, self.price_unit, self.quantity, self.uom_id, self.uot_id
778
- )
779
- )
755
+ @api.depends("uom_id")
756
+ def _compute_uot_id(self):
757
+ for line in self:
758
+ if not line.uot_id:
759
+ line.uot_id = line.uom_id
760
+
761
+ @api.onchange("price_unit")
762
+ def _onchange_price_unit_fiscal(self):
763
+ self.fiscal_price = 0
764
+ self._compute_fiscal_price()
765
+
766
+ @api.depends("price_unit")
767
+ def _compute_fiscal_price(self):
768
+ for line in self:
769
+ # this test and the onchange are required to avoid
770
+ # resetting manual changes in fiscal_price
771
+ if not line.fiscal_price:
772
+ if line.product_id and line.price_unit:
773
+ line.fiscal_price = line.price_unit / (
774
+ line.product_id.uot_factor or 1.0
775
+ )
776
+ else:
777
+ line.fiscal_price = line.price_unit
778
+
779
+ @api.onchange("quantity")
780
+ def _onchange_quantity_fiscal(self):
781
+ self.fiscal_quantity = 0
782
+ self._compute_fiscal_quantity()
783
+
784
+ @api.depends("quantity")
785
+ def _compute_fiscal_quantity(self):
786
+ for line in self:
787
+ # this test and the onchange are required to avoid
788
+ # resetting manual changes in fiscal_quantity
789
+ if not line.fiscal_quantity:
790
+ if line.product_id and line.quantity:
791
+ line.fiscal_quantity = line.quantity * (
792
+ line.product_id.uot_factor or 1.0
793
+ )
794
+ else:
795
+ line.fiscal_quantity = line.quantity
780
796
 
781
797
  @api.onchange("ii_customhouse_charges")
782
798
  def _onchange_ii_customhouse_charges(self):
@@ -372,7 +372,7 @@ ul.auto-toc {
372
372
  !! This file is generated by oca-gen-addon-readme !!
373
373
  !! changes will be overwritten. !!
374
374
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375
- !! source digest: sha256:b885c7f07dc5927d04d0bba6575996b2c0b26e5fe4e2f251bc508d0ad013578c
375
+ !! source digest: sha256:6ab2fb2e55c11e13e78048fb917f6711c02fcf72bc59dbbfc3ff2b6dcaf6cac4
376
376
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377
377
  <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_fiscal"><img alt="OCA/l10n-brazil" src="https://img.shields.io/badge/github-OCA%2Fl10n--brazil-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-brazil-16-0/l10n-brazil-16-0-l10n_br_fiscal"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-brazil&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378
378
  <p><img alt="image" src="https://raw.githubusercontent.com/OCA/l10n-brazil/16.0/l10n_br_fiscal/static/img/fiscal_dashboard.png" /></p>
@@ -6,6 +6,7 @@ from . import (
6
6
  test_fiscal_document_nfse,
7
7
  test_fiscal_tax,
8
8
  test_tax_benefit,
9
+ test_document_edition,
9
10
  test_ibpt_product,
10
11
  test_ibpt_service,
11
12
  test_icms_regulation,
@@ -0,0 +1,117 @@
1
+ # Copyright 2025-TODAY Akretion - Raphaël Valyi
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+
4
+ from unittest import mock
5
+
6
+ from odoo.tests import TransactionCase
7
+ from odoo.tests.common import Form
8
+
9
+
10
+ class TestDocumentEdition(TransactionCase):
11
+ @classmethod
12
+ def setUpClass(cls):
13
+ super().setUpClass()
14
+ cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
15
+
16
+ def test_basic_doc_edition(self):
17
+ doc_form = Form(
18
+ self.env["l10n_br_fiscal.document"].with_context(
19
+ default_fiscal_operation_type="out",
20
+ )
21
+ )
22
+ doc_form.company_id = self.env.ref("l10n_br_base.empresa_lucro_presumido")
23
+ doc_form.partner_id = self.env.ref("l10n_br_base.res_partner_cliente1_sp")
24
+ doc_form.fiscal_operation_id = self.env.ref("l10n_br_fiscal.fo_venda")
25
+ doc_form.ind_final = "1"
26
+ product_id = self.env.ref("product.product_product_6")
27
+ product_id.list_price = 150 # we will later check we can set priceunit to 100
28
+ with doc_form.fiscal_line_ids.new() as line_form:
29
+ original_method = type(
30
+ self.env["l10n_br_fiscal.operation.line"]
31
+ ).map_fiscal_taxes
32
+
33
+ def wrapped_method(self, *args, **kwargs):
34
+ return original_method(self, *args, **kwargs)
35
+
36
+ with mock.patch.object(
37
+ type(self.env["l10n_br_fiscal.operation.line"]),
38
+ "map_fiscal_taxes",
39
+ side_effect=wrapped_method,
40
+ autospec=True,
41
+ ) as mocked:
42
+ line_form.product_id = product_id
43
+
44
+ # ensure the tax engine is called with the proper
45
+ # parameters, especially ind_final
46
+ # as it is related=document_id.ind_final
47
+ # which is converted to move_id.ind_final to work live
48
+ mocked.assert_called_with(
49
+ self.env.ref("l10n_br_fiscal.fo_venda_revenda"),
50
+ company=doc_form.company_id,
51
+ partner=doc_form.partner_id,
52
+ product=product_id,
53
+ ncm=product_id.ncm_id,
54
+ nbm=self.env["l10n_br_fiscal.nbm"],
55
+ nbs=self.env["l10n_br_fiscal.nbs"],
56
+ cest=self.env["l10n_br_fiscal.cest"],
57
+ city_taxation_code=self.env["l10n_br_fiscal.city.taxation.code"],
58
+ service_type=self.env["l10n_br_fiscal.service.type"],
59
+ ind_final="1",
60
+ )
61
+
62
+ line_form.price_unit = 100
63
+ line_form.quantity = 2
64
+
65
+ doc = doc_form.save()
66
+ self.assertEqual(doc.fiscal_line_ids[0].price_unit, 100)
67
+ self.assertEqual(doc.fiscal_line_ids[0].fiscal_price, 100)
68
+ self.assertEqual(doc.fiscal_line_ids[0].quantity, 2)
69
+ self.assertEqual(doc.fiscal_line_ids[0].fiscal_quantity, 2)
70
+
71
+ def test_product_fiscal_factor(self):
72
+ doc_form = Form(
73
+ self.env["l10n_br_fiscal.document"].with_context(
74
+ default_fiscal_operation_type="out",
75
+ )
76
+ )
77
+ doc_form.company_id = self.env.ref("l10n_br_base.empresa_lucro_presumido")
78
+ doc_form.partner_id = self.env.ref("l10n_br_base.res_partner_cliente1_sp")
79
+ doc_form.fiscal_operation_id = self.env.ref("l10n_br_fiscal.fo_venda")
80
+ doc_form.ind_final = "1"
81
+ product_id = self.env.ref("product.product_product_6")
82
+ product_id.uot_factor = 2
83
+ with doc_form.fiscal_line_ids.new() as line_form:
84
+ line_form.product_id = product_id
85
+ line_form.price_unit = 100
86
+ line_form.quantity = 10
87
+
88
+ doc = doc_form.save()
89
+ self.assertEqual(doc.fiscal_line_ids[0].price_unit, 100)
90
+ self.assertEqual(doc.fiscal_line_ids[0].fiscal_price, 50)
91
+ self.assertEqual(doc.fiscal_line_ids[0].quantity, 10)
92
+ self.assertEqual(doc.fiscal_line_ids[0].fiscal_quantity, 20)
93
+
94
+ def test_product_fiscal_price_and_qty_edition(self):
95
+ doc_form = Form(
96
+ self.env["l10n_br_fiscal.document"].with_context(
97
+ default_fiscal_operation_type="out",
98
+ )
99
+ )
100
+ doc_form.company_id = self.env.ref("l10n_br_base.empresa_lucro_presumido")
101
+ doc_form.partner_id = self.env.ref("l10n_br_base.res_partner_cliente1_sp")
102
+ doc_form.fiscal_operation_id = self.env.ref("l10n_br_fiscal.fo_venda")
103
+ doc_form.ind_final = "1"
104
+ product_id = self.env.ref("product.product_product_6")
105
+ product_id.list_price = 100
106
+ with doc_form.fiscal_line_ids.new() as line_form:
107
+ line_form.product_id = product_id
108
+ line_form.price_unit = 110
109
+ line_form.quantity = 10
110
+ line_form.fiscal_price = 112
111
+ line_form.fiscal_quantity = 5
112
+
113
+ doc = doc_form.save()
114
+ self.assertEqual(doc.fiscal_line_ids[0].price_unit, 110)
115
+ self.assertEqual(doc.fiscal_line_ids[0].fiscal_price, 112)
116
+ self.assertEqual(doc.fiscal_line_ids[0].quantity, 10)
117
+ self.assertEqual(doc.fiscal_line_ids[0].fiscal_quantity, 5)
@@ -2,7 +2,6 @@
2
2
  # Magno Costa <magno.costa@akretion.com.br>
3
3
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4
4
 
5
-
6
5
  from odoo.tests import TransactionCase
7
6
 
8
7
  from ..constants.icms import ICMS_ORIGIN_TAX_IMPORTED
@@ -44,17 +43,12 @@ class TestFiscalDocumentGeneric(TransactionCase):
44
43
  self.nfe_same_state._onchange_fiscal_operation_id()
45
44
 
46
45
  for line in self.nfe_same_state.fiscal_line_ids:
47
- # Save the original price_unit value of the line as defined in
48
- # the NFe demo data.
49
- original_price_unit = line.price_unit
50
-
51
46
  line._onchange_product_id_fiscal()
52
47
 
53
48
  # Restore the original price_unit value,
54
49
  # as the product change might have altered it.
55
- line.price_unit = original_price_unit
50
+ line.price_unit = 100
56
51
 
57
- line._onchange_commercial_quantity()
58
52
  line._onchange_fiscal_operation_id()
59
53
  line._onchange_fiscal_taxes()
60
54
 
@@ -175,7 +169,6 @@ class TestFiscalDocumentGeneric(TransactionCase):
175
169
 
176
170
  for line in self.nfe_other_state.fiscal_line_ids:
177
171
  line._onchange_product_id_fiscal()
178
- line._onchange_commercial_quantity()
179
172
  line._onchange_fiscal_operation_id()
180
173
  line._onchange_fiscal_taxes()
181
174
 
@@ -294,7 +287,6 @@ class TestFiscalDocumentGeneric(TransactionCase):
294
287
 
295
288
  for line in self.nfe_not_taxpayer.fiscal_line_ids:
296
289
  line._onchange_product_id_fiscal()
297
- line._onchange_commercial_quantity()
298
290
  line._onchange_fiscal_operation_id()
299
291
  line._onchange_fiscal_taxes()
300
292
 
@@ -400,7 +392,6 @@ class TestFiscalDocumentGeneric(TransactionCase):
400
392
 
401
393
  for line in self.nfe_not_taxpayer_pf.fiscal_line_ids:
402
394
  line._onchange_product_id_fiscal()
403
- line._onchange_commercial_quantity()
404
395
  line._onchange_fiscal_operation_id()
405
396
  line._onchange_fiscal_taxes()
406
397
 
@@ -506,7 +497,6 @@ class TestFiscalDocumentGeneric(TransactionCase):
506
497
 
507
498
  for line in self.nfe_export.fiscal_line_ids:
508
499
  line._onchange_product_id_fiscal()
509
- line._onchange_commercial_quantity()
510
500
  line._onchange_fiscal_operation_id()
511
501
  line._onchange_fiscal_taxes()
512
502
 
@@ -573,8 +563,7 @@ class TestFiscalDocumentGeneric(TransactionCase):
573
563
  self.assertEqual(
574
564
  line.pis_tax_id.name,
575
565
  "PIS 0,65%",
576
- "Error to mapping PIS 0,65%"
577
- " for Venda de Contribuinte p/ o Exterior.",
566
+ "Error to mapping PIS 0,65% for Venda de Contribuinte p/ o Exterior.",
578
567
  )
579
568
  self.assertEqual(
580
569
  line.pis_cst_id.code,
@@ -588,8 +577,7 @@ class TestFiscalDocumentGeneric(TransactionCase):
588
577
  self.assertEqual(
589
578
  line.cofins_tax_id.name,
590
579
  "COFINS 3%",
591
- "Error to mapping COFINS 3%"
592
- " for Venda de Contribuinte p/ o Exterior.",
580
+ "Error to mapping COFINS 3% for Venda de Contribuinte p/ o Exterior.",
593
581
  )
594
582
  self.assertEqual(
595
583
  line.cofins_cst_id.code,
@@ -606,7 +594,6 @@ class TestFiscalDocumentGeneric(TransactionCase):
606
594
 
607
595
  for line in self.nfe_sn_same_state.fiscal_line_ids:
608
596
  line._onchange_product_id_fiscal()
609
- line._onchange_commercial_quantity()
610
597
 
611
598
  # set fake estimate tax
612
599
  line.ncm_id.tax_estimate_ids.create(
@@ -723,7 +710,6 @@ class TestFiscalDocumentGeneric(TransactionCase):
723
710
 
724
711
  for line in self.nfe_sn_other_state.fiscal_line_ids:
725
712
  line._onchange_product_id_fiscal()
726
- line._onchange_commercial_quantity()
727
713
  line._onchange_fiscal_operation_id()
728
714
  line._onchange_fiscal_taxes()
729
715
 
@@ -825,7 +811,6 @@ class TestFiscalDocumentGeneric(TransactionCase):
825
811
 
826
812
  for line in self.nfe_sn_not_taxpayer.fiscal_line_ids:
827
813
  line._onchange_product_id_fiscal()
828
- line._onchange_commercial_quantity()
829
814
  line._onchange_fiscal_operation_id()
830
815
  line._onchange_fiscal_taxes()
831
816
 
@@ -868,8 +853,7 @@ class TestFiscalDocumentGeneric(TransactionCase):
868
853
  self.assertEqual(
869
854
  line.ipi_tax_id.name,
870
855
  "IPI 5%",
871
- "Erro ao mapear IPI 5%"
872
- " para Venda de Simples Nacional Fora do Estado.",
856
+ "Erro ao mapear IPI 5% para Venda de Simples Nacional Fora do Estado.",
873
857
  )
874
858
  self.assertEqual(
875
859
  line.ipi_cst_id.code,
@@ -915,7 +899,6 @@ class TestFiscalDocumentGeneric(TransactionCase):
915
899
 
916
900
  for line in self.nfe_sn_export.fiscal_line_ids:
917
901
  line._onchange_product_id_fiscal()
918
- line._onchange_commercial_quantity()
919
902
  line._onchange_fiscal_operation_id()
920
903
  line._onchange_fiscal_taxes()
921
904
 
@@ -1038,6 +1021,7 @@ class TestFiscalDocumentGeneric(TransactionCase):
1038
1021
 
1039
1022
  # Teste definindo os valores Por Linha
1040
1023
  for line in self.nfe_same_state.fiscal_line_ids:
1024
+ line.price_unit = 100
1041
1025
  line.freight_value = 10.0
1042
1026
  line.insurance_value = 10.0
1043
1027
  line.other_value = 10.0
@@ -1045,19 +1029,17 @@ class TestFiscalDocumentGeneric(TransactionCase):
1045
1029
  self.assertEqual(
1046
1030
  self.nfe_same_state.amount_freight_value,
1047
1031
  20.0,
1048
- "Unexpected value for the field" " Amount Freight in Fiscal Document line",
1032
+ "Unexpected value for the field Amount Freight in Fiscal Document line",
1049
1033
  )
1050
1034
  self.assertEqual(
1051
1035
  self.nfe_same_state.amount_insurance_value,
1052
1036
  20.0,
1053
- "Unexpected value for the field"
1054
- " Amount Insurance in Fiscal Document line",
1037
+ "Unexpected value for the field Amount Insurance in Fiscal Document line",
1055
1038
  )
1056
1039
  self.assertEqual(
1057
1040
  self.nfe_same_state.amount_other_value,
1058
1041
  20.0,
1059
- "Unexpected value for the field"
1060
- " Amount Other Value in Fiscal Document line",
1042
+ "Unexpected value for the field Amount Other Value in Fiscal Document line",
1061
1043
  )
1062
1044
 
1063
1045
  # Teste definindo os valores Por Total
@@ -1073,18 +1055,17 @@ class TestFiscalDocumentGeneric(TransactionCase):
1073
1055
  self.assertEqual(
1074
1056
  line.freight_value,
1075
1057
  5.0,
1076
- "Unexpected value for the field" " Freight in Fiscal Document line",
1058
+ "Unexpected value for the field Freight in Fiscal Document line",
1077
1059
  )
1078
1060
  self.assertEqual(
1079
1061
  line.insurance_value,
1080
1062
  5.0,
1081
- "Unexpected value for the field" " Insurance in Fiscal Document line",
1063
+ "Unexpected value for the field Insurance in Fiscal Document line",
1082
1064
  )
1083
1065
  self.assertEqual(
1084
1066
  line.other_value,
1085
1067
  5.0,
1086
- "Unexpected value for the field"
1087
- " Other Values in Fiscal Document line",
1068
+ "Unexpected value for the field Other Values in Fiscal Document line",
1088
1069
  )
1089
1070
 
1090
1071
  # Caso que os Campos na Linha não tem valor
@@ -1101,16 +1082,15 @@ class TestFiscalDocumentGeneric(TransactionCase):
1101
1082
  self.assertEqual(
1102
1083
  line.freight_value,
1103
1084
  10.0,
1104
- "Unexpected value for the field" " Freight in Fiscal Document line",
1085
+ "Unexpected value for the field Freight in Fiscal Document line",
1105
1086
  )
1106
1087
  self.assertEqual(
1107
1088
  line.insurance_value,
1108
1089
  10.0,
1109
- "Unexpected value for the field" " Insurance in Fiscal Document line",
1090
+ "Unexpected value for the field Insurance in Fiscal Document line",
1110
1091
  )
1111
1092
  self.assertEqual(
1112
1093
  line.other_value,
1113
1094
  10.0,
1114
- "Unexpected value for the field"
1115
- " Other Values in Fiscal Document line",
1095
+ "Unexpected value for the field Other Values in Fiscal Document line",
1116
1096
  )
@@ -18,7 +18,6 @@ class TestFiscalDocumentNFSe(TransactionCase):
18
18
 
19
19
  for line in self.nfse_same_state.fiscal_line_ids:
20
20
  line._onchange_product_id_fiscal()
21
- line._onchange_commercial_quantity()
22
21
  line._onchange_fiscal_operation_id()
23
22
  line._onchange_fiscal_taxes()
24
23
 
@@ -43,7 +43,6 @@ class TestTaxBenefit(TransactionCase):
43
43
 
44
44
  for line in self.nfe_tax_benefit.fiscal_line_ids:
45
45
  line._onchange_product_id_fiscal()
46
- line._onchange_commercial_quantity()
47
46
  line._onchange_fiscal_operation_id()
48
47
  line._onchange_fiscal_taxes()
49
48
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-l10n_br_fiscal
3
- Version: 16.0.11.1.1
3
+ Version: 16.0.11.2.0
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: erpbrasil.base>=2.3.0
6
6
  Requires-Dist: odoo-addon-l10n_br_base>=16.0dev,<16.1dev
@@ -31,7 +31,7 @@ Módulo fiscal brasileiro
31
31
  !! This file is generated by oca-gen-addon-readme !!
32
32
  !! changes will be overwritten. !!
33
33
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
34
- !! source digest: sha256:b885c7f07dc5927d04d0bba6575996b2c0b26e5fe4e2f251bc508d0ad013578c
34
+ !! source digest: sha256:6ab2fb2e55c11e13e78048fb917f6711c02fcf72bc59dbbfc3ff2b6dcaf6cac4
35
35
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
36
36
 
37
37
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -1,6 +1,6 @@
1
- odoo/addons/l10n_br_fiscal/README.rst,sha256=pg7HwMCjlWUuRp62rtpVyoXFunJB0PrPEKsQnM-gXg4,13957
1
+ odoo/addons/l10n_br_fiscal/README.rst,sha256=lfVFLFYZ_1X6jZudue_PAQTS029Czwskg0zkcpcIEt4,13957
2
2
  odoo/addons/l10n_br_fiscal/__init__.py,sha256=BQXfCjW4ehK1W1j0z6k8xN7Q2LoZBCjjvYDkQt6nSkI,2717
3
- odoo/addons/l10n_br_fiscal/__manifest__.py,sha256=CgcKf9TmVMNL2reaO29KNkwdiTTeLgKsjCO_KST1ZKQ,4894
3
+ odoo/addons/l10n_br_fiscal/__manifest__.py,sha256=hPbybPLvprJbyjyf_Cn6tFcpFME1Pk3_-vkP0KhN2S4,4894
4
4
  odoo/addons/l10n_br_fiscal/tools.py,sha256=HgaCLkPznFxgLfjb76nH36PJ7bN5W7-fdaqtBvM6XC0,4056
5
5
  odoo/addons/l10n_br_fiscal/constants/fiscal.py,sha256=F2a4jYAk2j2Yh1Xw7WeS1GcLfW1DbjeNgEF6l7135wc,14962
6
6
  odoo/addons/l10n_br_fiscal/constants/icms.py,sha256=rHlM6jyRvhrIm03sd6guS1xh7SptADLltPmRJ3C_Vh8,3512
@@ -45,14 +45,14 @@ odoo/addons/l10n_br_fiscal/data/uom_data.xml,sha256=bDVsZn9KA5ozkZuPC9cyylPlsBtX
45
45
  odoo/addons/l10n_br_fiscal/demo/__init__.py,sha256=D9IO9xsEyTSXTF03sJ836cHDsB3snXXizs1SUA2IvwA,4420
46
46
  odoo/addons/l10n_br_fiscal/demo/city_taxation_code_demo.xml,sha256=tVMji5bhxl7cfsf48JjtwHfVVyMOm28WA9H5K6Zr2R0,476
47
47
  odoo/addons/l10n_br_fiscal/demo/company_demo.xml,sha256=XPZE-3nHNYdeSGkJ7XamGAWM7Vs5AwhFBl-3yZCc2fA,13429
48
- odoo/addons/l10n_br_fiscal/demo/fiscal_document_demo.xml,sha256=10zKM9hS-z4gvpahMUbdLxhsuPFldKVgVin4r1j8Cu0,40075
49
- odoo/addons/l10n_br_fiscal/demo/fiscal_document_nfse_demo.xml,sha256=qC658lGMV-h7XcmH_wCkjlMwB2RvHkEI_NYg9ZVcCpM,2051
48
+ odoo/addons/l10n_br_fiscal/demo/fiscal_document_demo.xml,sha256=fvkXSpkyMm5biaCaMAQIr-xgaJW7HbJAQN3EmNRtwG4,38140
49
+ odoo/addons/l10n_br_fiscal/demo/fiscal_document_nfse_demo.xml,sha256=5YGmkP1dy-Q2-ZNUDI_dcr3TVMrjxnybnUBH1EQa-Nk,1867
50
50
  odoo/addons/l10n_br_fiscal/demo/fiscal_operation_demo.xml,sha256=Va_eLyQwHug8ZVgQ8lPkJyiU7zs8KU-ABqBk0RM4n3o,493
51
51
  odoo/addons/l10n_br_fiscal/demo/icms_tax_definition_demo.xml,sha256=38sImUwueccEEBrTnQ8_e4f614U10DIh8r9PYEXYexg,1033
52
52
  odoo/addons/l10n_br_fiscal/demo/partner_demo.xml,sha256=dPFBshkjUmIdkp5X4UPDVtFcDcOPHEj9VZs06SXUklE,7173
53
53
  odoo/addons/l10n_br_fiscal/demo/product_demo.xml,sha256=xaJuXOdRp_DSWxrkoKaC6HAuMpgCGjDe9KHh_-iOxAo,83287
54
54
  odoo/addons/l10n_br_fiscal/demo/res_users_demo.xml,sha256=zwDfPw56a3_Z181Rt4YtfVv13x_Wquo-sKjYF6SgJhE,607
55
- odoo/addons/l10n_br_fiscal/i18n/l10n_br_fiscal.pot,sha256=NvnwjsUi8OJzi6bBwrLcowrXWY3DDMYyGcn_SHGO-a4,418651
55
+ odoo/addons/l10n_br_fiscal/i18n/l10n_br_fiscal.pot,sha256=uNIA6RK2Ofsh0n85t7_zizUP9BBp8YVOEhpfMeHOYag,418651
56
56
  odoo/addons/l10n_br_fiscal/i18n/pt_BR.po,sha256=r18-H9zeX1TEwux85-Jt5CuF_l6dLpj8Ix9kPW-tjbs,496209
57
57
  odoo/addons/l10n_br_fiscal/migrations/16.0.2.0.0/pre-migration.py,sha256=tw6d7NZrbOmjEaGHI9y-AMiNWNqf_mceTFqTFXuc6cU,687
58
58
  odoo/addons/l10n_br_fiscal/migrations/16.0.2.15.0/pre-migration.py,sha256=5-aWMxFdyNbyw_MJbfyiSFHnm9zxWKYHibOW5GNauWc,517
@@ -69,10 +69,10 @@ odoo/addons/l10n_br_fiscal/models/cst.py,sha256=m3KIalTYxOoiydXje4VHni6knmXZVdR3
69
69
  odoo/addons/l10n_br_fiscal/models/data_abstract.py,sha256=l46d2ViejGvcjPtKxaA0vn4S0qrn8zqo4bGeQU6oOaU,4599
70
70
  odoo/addons/l10n_br_fiscal/models/data_ncm_nbs_abstract.py,sha256=a0K-32ockgmQV5WaljCCSZQYn8YmuYZ0CYqTDct0vLI,6758
71
71
  odoo/addons/l10n_br_fiscal/models/data_product_abstract.py,sha256=wbc3exJQp33aYK8IOJ490JvDWBPCpU0NEkMR6YjaLfQ,793
72
- odoo/addons/l10n_br_fiscal/models/document.py,sha256=Kn3TFa29QWZLc5-D6ysPjWfyAeegNAqw5uPkXwx282o,19341
72
+ odoo/addons/l10n_br_fiscal/models/document.py,sha256=4_a07OhC1k5NDluUou1c0-Np-BGm2wwC0XTeEvqg0Ko,19823
73
73
  odoo/addons/l10n_br_fiscal/models/document_line.py,sha256=Y87Bevv0wDWP_oRUUvjKsWdow_dvQEKQ-31KEIdZghY,2032
74
- odoo/addons/l10n_br_fiscal/models/document_line_mixin.py,sha256=e-bixaQI0cJzdnUBzbbTJoeEsjfHq09FF_xEPnV0KxM,27787
75
- odoo/addons/l10n_br_fiscal/models/document_line_mixin_methods.py,sha256=6cmm93C2X8OJ8ZtlhdFySLt9IOvf4zRamfBHhsswQ_o,31705
74
+ odoo/addons/l10n_br_fiscal/models/document_line_mixin.py,sha256=1rY8wJ-pTwZeg4kJhDO4E_MNU22ARb_DkIpw6Rk6Tpw,28250
75
+ odoo/addons/l10n_br_fiscal/models/document_line_mixin_methods.py,sha256=z9Rkm2EdyaR2khLjDCoA7KjBLfqvojnLEDqXn5gH7Wg,32221
76
76
  odoo/addons/l10n_br_fiscal/models/document_mixin.py,sha256=G63Mr1XyX6YXrdCg0bGIjjvrJPmAs8UuzExKYheVOqg,13477
77
77
  odoo/addons/l10n_br_fiscal/models/document_mixin_methods.py,sha256=XYrhXQs1blFCEzwgPGToGkWP7uyUnptKXBRwLRvu_FY,16390
78
78
  odoo/addons/l10n_br_fiscal/models/document_related.py,sha256=SKUToxuoC2eOZAG8pJnBg0o5269JjvLbpvuy0M8zSlQ,4689
@@ -124,16 +124,17 @@ odoo/addons/l10n_br_fiscal/readme/USAGE.md,sha256=Dw3uZaHJCUtV0xFq6VOQvF2G5fS_oS
124
124
  odoo/addons/l10n_br_fiscal/security/fiscal_security.xml,sha256=PxRef68OVjlCVMOJZbhieVxivgKJYJm9r3TiZO4RerA,3362
125
125
  odoo/addons/l10n_br_fiscal/security/ir.model.access.csv,sha256=4R4STg4HCTG37rFb3YBfZRlEJMSX7fU5fwtHHWI9aeY,14195
126
126
  odoo/addons/l10n_br_fiscal/static/description/icon.png,sha256=Vd1HydYBoGCzNfCqxLlch2i2aeCcyxo-uRxWNp6oMbw,14836
127
- odoo/addons/l10n_br_fiscal/static/description/index.html,sha256=pWklIWy5cIjTaNY27AkCTwil0RR-NVWJgC1Fh789pmM,26637
127
+ odoo/addons/l10n_br_fiscal/static/description/index.html,sha256=2W_MrGdvDJoRiRmkVAhyRAFNTcGrhCu8sU1ISiJg_PM,26637
128
128
  odoo/addons/l10n_br_fiscal/static/img/fiscal_dashboard.png,sha256=Q0fpqFNqEXh6m6E1aJfzSKV2tQ9lC1Y-ofUt6qxVupc,151668
129
129
  odoo/addons/l10n_br_fiscal/static/img/fiscal_line.png,sha256=S4Q4OGSzGnbfm4W5sQVvnD4uUzxS6tbJGT_gs3pB4K0,134276
130
130
  odoo/addons/l10n_br_fiscal/static/img/fiscal_operation.png,sha256=2614c1XjxwVznh707e9gujlUXg0ttutKD1ZiSMTqyv8,105871
131
131
  odoo/addons/l10n_br_fiscal/static/img/fiscal_total.png,sha256=MaR6ZoM6ZZEaNZk2ynSmaHjkRUU0SOkeUW5_HbJQS50,132739
132
132
  odoo/addons/l10n_br_fiscal/static/src/js/list_renderer_with_button.esm.js,sha256=Ucw7pymMrW2yi_nNrDMvq6ubyub9QMlqH3ZOoaTEHN0,1243
133
- odoo/addons/l10n_br_fiscal/tests/__init__.py,sha256=ESupwviZ2P-1nTuwxFBdHRzso41xBOP0kQmhKhYu5VE,366
133
+ odoo/addons/l10n_br_fiscal/tests/__init__.py,sha256=83m4BimGb-6EseEmmCVaKTSel5GB_vkzbI3YZi4mStE,393
134
134
  odoo/addons/l10n_br_fiscal/tests/test_cnae.py,sha256=mmskSfWaoFSohjmRbnGci_6Euc9fc2zbhyH5FdyeIeA,616
135
- odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_generic.py,sha256=i_6Pmsh5vsiWlRIA7cRKvKH3iU5gfon1k-gLrc6X8og,41270
136
- odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_nfse.py,sha256=NrIfRZ2ehgTk79tNhnuy83Xy2izbY1G-MavknmklyaQ,1649
135
+ odoo/addons/l10n_br_fiscal/tests/test_document_edition.py,sha256=w_ANtriwn9IpG3XvMruINMOIcZJyPwUY47iFSgz2bj0,5067
136
+ odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_generic.py,sha256=V8DHVC4sDNlJ_umoIaSkaesJfSEd31wija-bNgrBUZg,40547
137
+ odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_nfse.py,sha256=X5_pHhChyDL6UmAgWTaAhgPuKWiCKZ1tw95hZecSRcY,1600
137
138
  odoo/addons/l10n_br_fiscal/tests/test_fiscal_tax.py,sha256=U6JbuqKTcyyFTiW5FZGqGY5yi_aPKaC6_LWz_3sKdpg,11322
138
139
  odoo/addons/l10n_br_fiscal/tests/test_ibpt.py,sha256=vJKit2Aok-zIk_723nRietLTbVKPstD88vznN2PwMZg,5227
139
140
  odoo/addons/l10n_br_fiscal/tests/test_ibpt_product.py,sha256=h00TpY-tTw3z8U24yTzzvyWkfnKjHqlCbqetBKJNV94,2794
@@ -143,7 +144,7 @@ odoo/addons/l10n_br_fiscal/tests/test_ncm.py,sha256=legCHGki7r8xIC260jKdPpVUNC_Z
143
144
  odoo/addons/l10n_br_fiscal/tests/test_operation.py,sha256=zt3GJh3_z7p4zCFN2VSrUVgCGT7EQJ6GmjMGPIY98cg,480
144
145
  odoo/addons/l10n_br_fiscal/tests/test_partner_profile.py,sha256=aMjOQzygxVMQZnvdAEcR9Wun5igpTBzgOegkjsums68,738
145
146
  odoo/addons/l10n_br_fiscal/tests/test_service_type.py,sha256=k9Ro0pGVsiHslAa1NcLK-FlNnrFEeh394aw2tOF_M5o,556
146
- odoo/addons/l10n_br_fiscal/tests/test_tax_benefit.py,sha256=LQZNHFmYMNm7T9naWJNHUDs9W-SHaKilvXl8FW_fuM0,2102
147
+ odoo/addons/l10n_br_fiscal/tests/test_tax_benefit.py,sha256=UHC7ZTnHKY12jK1zOlOm00ric8iBBYVL2boifPXOYPM,2053
147
148
  odoo/addons/l10n_br_fiscal/views/cest_view.xml,sha256=buiOX9AZ4OMHyjHZfoazcQQzjBSE7fT1S0LlYmo_3P4,3162
148
149
  odoo/addons/l10n_br_fiscal/views/cfop_view.xml,sha256=eSAo01pTaF2AY5_NfWJqY5H3WnaFmzfaSJ6l0DkyEcY,5018
149
150
  odoo/addons/l10n_br_fiscal/views/city_taxation_code.xml,sha256=SnoB8FmZdCzJhqKrEAXG3VVZDBIlDBpIq3oKycbx6uQ,2104
@@ -192,7 +193,7 @@ odoo/addons/l10n_br_fiscal/views/uom_uom.xml,sha256=i4sQPGhwoKNpzfZFdFYrabXkGXE3
192
193
  odoo/addons/l10n_br_fiscal/wizards/__init__.py,sha256=_sLxjpuJblbtSngjCsnMm7Iur5afF5xLEkAQLu4sy7I,69
193
194
  odoo/addons/l10n_br_fiscal/wizards/base_wizard_mixin.py,sha256=-r25us0vdNCSe11Gnf_tyPtN1qq-JKsL-fgWbPGktRo,2856
194
195
  odoo/addons/l10n_br_fiscal/wizards/document_status_wizard.py,sha256=KsYj5YWWePO7uk0psBsFdnCL71eLWhcyg7_c7J4G6vA,818
195
- odoo_addon_l10n_br_fiscal-16.0.11.1.1.dist-info/METADATA,sha256=OoUVeiXjXZzqTzalmXo2sNZcJZLJWkBCUyeZDH4xxqE,14720
196
- odoo_addon_l10n_br_fiscal-16.0.11.1.1.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
197
- odoo_addon_l10n_br_fiscal-16.0.11.1.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
198
- odoo_addon_l10n_br_fiscal-16.0.11.1.1.dist-info/RECORD,,
196
+ odoo_addon_l10n_br_fiscal-16.0.11.2.0.dist-info/METADATA,sha256=CKJQekaaO20xQnL-hJe11JG2WDQ3PyTr0dGWW05MtT4,14720
197
+ odoo_addon_l10n_br_fiscal-16.0.11.2.0.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
198
+ odoo_addon_l10n_br_fiscal-16.0.11.2.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
199
+ odoo_addon_l10n_br_fiscal-16.0.11.2.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: Whool 1.2
2
+ Generator: Whool 1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5