odoo-addon-l10n-br-fiscal 16.0.2.6.0.1__py3-none-any.whl → 16.0.2.7.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.
- odoo/addons/l10n_br_fiscal/README.rst +1 -1
- odoo/addons/l10n_br_fiscal/__manifest__.py +1 -1
- odoo/addons/l10n_br_fiscal/i18n/l10n_br_fiscal.pot +6 -6
- odoo/addons/l10n_br_fiscal/models/document_line_mixin_methods.py +15 -4
- odoo/addons/l10n_br_fiscal/models/document_mixin_methods.py +15 -3
- odoo/addons/l10n_br_fiscal/static/description/index.html +1 -1
- {odoo_addon_l10n_br_fiscal-16.0.2.6.0.1.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.7.0.dist-info}/METADATA +2 -2
- {odoo_addon_l10n_br_fiscal-16.0.2.6.0.1.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.7.0.dist-info}/RECORD +10 -10
- {odoo_addon_l10n_br_fiscal-16.0.2.6.0.1.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.7.0.dist-info}/WHEEL +0 -0
- {odoo_addon_l10n_br_fiscal-16.0.2.6.0.1.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.7.0.dist-info}/top_level.txt +0 -0
|
@@ -7,7 +7,7 @@ Módulo fiscal brasileiro
|
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
|
8
8
|
!! changes will be overwritten. !!
|
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
-
!! source digest: sha256:
|
|
10
|
+
!! source digest: sha256:b37466b820971131a911c9b4aae817b5d6c08fc4d3e806d8edb4115bd7f4a716
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
|
@@ -2480,12 +2480,6 @@ msgstr ""
|
|
|
2480
2480
|
msgid "Document Fiscal Mixin Fields"
|
|
2481
2481
|
msgstr ""
|
|
2482
2482
|
|
|
2483
|
-
#. module: l10n_br_fiscal
|
|
2484
|
-
#: model:ir.model,name:l10n_br_fiscal.model_l10n_br_fiscal_document_line_mixin_methods
|
|
2485
|
-
#: model:ir.model,name:l10n_br_fiscal.model_l10n_br_fiscal_document_mixin_methods
|
|
2486
|
-
msgid "Document Fiscal Mixin Methods"
|
|
2487
|
-
msgstr ""
|
|
2488
|
-
|
|
2489
2483
|
#. module: l10n_br_fiscal
|
|
2490
2484
|
#: model_terms:ir.ui.view,arch_db:l10n_br_fiscal.document_form
|
|
2491
2485
|
msgid "Document Info"
|
|
@@ -2968,6 +2962,12 @@ msgstr ""
|
|
|
2968
2962
|
msgid "Fiscal Document Line"
|
|
2969
2963
|
msgstr ""
|
|
2970
2964
|
|
|
2965
|
+
#. module: l10n_br_fiscal
|
|
2966
|
+
#: model:ir.model,name:l10n_br_fiscal.model_l10n_br_fiscal_document_line_mixin_methods
|
|
2967
|
+
#: model:ir.model,name:l10n_br_fiscal.model_l10n_br_fiscal_document_mixin_methods
|
|
2968
|
+
msgid "Fiscal Document Mixin Methods"
|
|
2969
|
+
msgstr ""
|
|
2970
|
+
|
|
2971
2971
|
#. module: l10n_br_fiscal
|
|
2972
2972
|
#: model:ir.model,name:l10n_br_fiscal.model_l10n_br_fiscal_document_related
|
|
2973
2973
|
#: model:ir.model.fields,field_description:l10n_br_fiscal.field_l10n_br_fiscal_document__document_related_ids
|
|
@@ -47,7 +47,7 @@ FISCAL_CST_ID_FIELDS = [
|
|
|
47
47
|
|
|
48
48
|
class FiscalDocumentLineMixinMethods(models.AbstractModel):
|
|
49
49
|
_name = "l10n_br_fiscal.document.line.mixin.methods"
|
|
50
|
-
_description = "Document
|
|
50
|
+
_description = "Fiscal Document Mixin Methods"
|
|
51
51
|
|
|
52
52
|
@api.model
|
|
53
53
|
def inject_fiscal_fields(
|
|
@@ -174,7 +174,7 @@ class FiscalDocumentLineMixinMethods(models.AbstractModel):
|
|
|
174
174
|
self.ensure_one()
|
|
175
175
|
return taxes.compute_taxes(
|
|
176
176
|
company=self.company_id,
|
|
177
|
-
partner=self.
|
|
177
|
+
partner=self._get_fiscal_partner(),
|
|
178
178
|
product=self.product_id,
|
|
179
179
|
price_unit=self.price_unit,
|
|
180
180
|
quantity=self.quantity,
|
|
@@ -339,6 +339,17 @@ class FiscalDocumentLineMixinMethods(models.AbstractModel):
|
|
|
339
339
|
d.__document_comment_vals(), d.manual_additional_data
|
|
340
340
|
)
|
|
341
341
|
|
|
342
|
+
def _get_fiscal_partner(self):
|
|
343
|
+
"""
|
|
344
|
+
Meant to be overriden when the l10n_br_fiscal.document partner_id should not
|
|
345
|
+
be the same as the sale.order, purchase.order, account.move (...) partner_id.
|
|
346
|
+
|
|
347
|
+
(In the case of invoicing, the invoicing partner set by the user should
|
|
348
|
+
get priority over any invoicing contact returned by address_get.)
|
|
349
|
+
"""
|
|
350
|
+
self.ensure_one()
|
|
351
|
+
return self.partner_id
|
|
352
|
+
|
|
342
353
|
@api.onchange("fiscal_operation_id")
|
|
343
354
|
def _onchange_fiscal_operation_id(self):
|
|
344
355
|
if self.fiscal_operation_id:
|
|
@@ -347,7 +358,7 @@ class FiscalDocumentLineMixinMethods(models.AbstractModel):
|
|
|
347
358
|
self._onchange_commercial_quantity()
|
|
348
359
|
self.fiscal_operation_line_id = self.fiscal_operation_id.line_definition(
|
|
349
360
|
company=self.company_id,
|
|
350
|
-
partner=self.
|
|
361
|
+
partner=self._get_fiscal_partner(),
|
|
351
362
|
product=self.product_id,
|
|
352
363
|
)
|
|
353
364
|
self._onchange_fiscal_operation_line_id()
|
|
@@ -359,7 +370,7 @@ class FiscalDocumentLineMixinMethods(models.AbstractModel):
|
|
|
359
370
|
if self.fiscal_operation_line_id:
|
|
360
371
|
mapping_result = self.fiscal_operation_line_id.map_fiscal_taxes(
|
|
361
372
|
company=self.company_id,
|
|
362
|
-
partner=self.
|
|
373
|
+
partner=self._get_fiscal_partner(),
|
|
363
374
|
product=self.product_id,
|
|
364
375
|
ncm=self.ncm_id,
|
|
365
376
|
nbm=self.nbm_id,
|
|
@@ -8,7 +8,7 @@ from ..constants.fiscal import COMMENT_TYPE_COMMERCIAL, COMMENT_TYPE_FISCAL
|
|
|
8
8
|
|
|
9
9
|
class FiscalDocumentMixinMethods(models.AbstractModel):
|
|
10
10
|
_name = "l10n_br_fiscal.document.mixin.methods"
|
|
11
|
-
_description = "Document
|
|
11
|
+
_description = "Fiscal Document Mixin Methods"
|
|
12
12
|
|
|
13
13
|
def _prepare_br_fiscal_dict(self, default=False):
|
|
14
14
|
self.ensure_one()
|
|
@@ -92,10 +92,22 @@ class FiscalDocumentMixinMethods(models.AbstractModel):
|
|
|
92
92
|
)
|
|
93
93
|
d.fiscal_line_ids._document_comment()
|
|
94
94
|
|
|
95
|
+
def _get_fiscal_partner(self):
|
|
96
|
+
"""
|
|
97
|
+
Meant to be overriden when the l10n_br_fiscal.document partner_id should not
|
|
98
|
+
be the same as the sale.order, purchase.order, account.move (...) partner_id.
|
|
99
|
+
|
|
100
|
+
(In the case of invoicing, the invoicing partner set by the user should
|
|
101
|
+
get priority over any invoicing contact returned by address_get.)
|
|
102
|
+
"""
|
|
103
|
+
self.ensure_one()
|
|
104
|
+
return self.partner_id
|
|
105
|
+
|
|
95
106
|
@api.onchange("partner_id")
|
|
96
107
|
def _onchange_partner_id_fiscal(self):
|
|
97
|
-
|
|
98
|
-
|
|
108
|
+
partner = self._get_fiscal_partner()
|
|
109
|
+
if partner:
|
|
110
|
+
self.ind_final = partner.ind_final
|
|
99
111
|
for line in self._get_amount_lines():
|
|
100
112
|
# reload fiscal data, operation line, cfop, taxes, etc.
|
|
101
113
|
line._onchange_fiscal_operation_id()
|
|
@@ -367,7 +367,7 @@ ul.auto-toc {
|
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
|
368
368
|
!! changes will be overwritten. !!
|
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
370
|
-
!! source digest: sha256:
|
|
370
|
+
!! source digest: sha256:b37466b820971131a911c9b4aae817b5d6c08fc4d3e806d8edb4115bd7f4a716
|
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
372
372
|
<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/licence-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&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
373
373
|
<p><img alt="image" src="https://raw.githubusercontent.com/OCA/l10n-brazil/16.0/l10n_br_fiscal/static/img/fiscal_dashboard.png" /></p>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-l10n_br_fiscal
|
|
3
|
-
Version: 16.0.2.
|
|
3
|
+
Version: 16.0.2.7.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
|
|
@@ -25,7 +25,7 @@ Módulo fiscal brasileiro
|
|
|
25
25
|
!! This file is generated by oca-gen-addon-readme !!
|
|
26
26
|
!! changes will be overwritten. !!
|
|
27
27
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
28
|
-
!! source digest: sha256:
|
|
28
|
+
!! source digest: sha256:b37466b820971131a911c9b4aae817b5d6c08fc4d3e806d8edb4115bd7f4a716
|
|
29
29
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
30
30
|
|
|
31
31
|
.. |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=
|
|
1
|
+
odoo/addons/l10n_br_fiscal/README.rst,sha256=GALMmC5GFmLazTZAIAh0J31mUmuMsk2RvSTd6ZYmbB0,13710
|
|
2
2
|
odoo/addons/l10n_br_fiscal/__init__.py,sha256=16Tdff74OkWmnKSfmV6qrNkgsK12gOtMMppwWmIAFIo,144
|
|
3
|
-
odoo/addons/l10n_br_fiscal/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/l10n_br_fiscal/__manifest__.py,sha256=HL8Gz1kJcRNe5zdd61K9fJIkoaXkqrVdydAPCzwQC0E,3713
|
|
4
4
|
odoo/addons/l10n_br_fiscal/hooks.py,sha256=cna_821w1vrwbfQd59YVY66cU9hhY0av2Zwzr5nHDVI,4825
|
|
5
5
|
odoo/addons/l10n_br_fiscal/tools.py,sha256=TP8pifcnvh51FM70KxMxpbuU01gAx1BFTbaRZAvqyB0,2484
|
|
6
6
|
odoo/addons/l10n_br_fiscal/constants/fiscal.py,sha256=ICWcrew-iUcWFgF4bLzdjUtbMdaejZ0AucwLFu5u1fo,14935
|
|
@@ -58,7 +58,7 @@ odoo/addons/l10n_br_fiscal/demo/partner_demo.xml,sha256=Nuw5PaZ4ernV9bqEP4oRcsmV
|
|
|
58
58
|
odoo/addons/l10n_br_fiscal/demo/product_demo.xml,sha256=D61ewI_-geCkYnCVYN9nbflZlmX_j8xwE1UWVBTr5XE,83686
|
|
59
59
|
odoo/addons/l10n_br_fiscal/demo/res_users_demo.xml,sha256=CL7BmZ1xnWSh6MSWxrG9dK9C1ObTYGvgj21vCcY4_qE,599
|
|
60
60
|
odoo/addons/l10n_br_fiscal/demo/subsequent_operation_demo.xml,sha256=U-PJXr6uerccXT5dR8_KXKTu1YOahR0dKBcowlHgQIU,560
|
|
61
|
-
odoo/addons/l10n_br_fiscal/i18n/l10n_br_fiscal.pot,sha256=
|
|
61
|
+
odoo/addons/l10n_br_fiscal/i18n/l10n_br_fiscal.pot,sha256=o_0Roqop-NBiXdXzumAW0H6l-e0etmz5vfoscMFL_1c,430854
|
|
62
62
|
odoo/addons/l10n_br_fiscal/i18n/pt_BR.po,sha256=uky45TDP76zc2yXrhtta_N1mtnne6Fz9cLLzc5zBVjc,496039
|
|
63
63
|
odoo/addons/l10n_br_fiscal/migrations/16.0.2.0.0/pre-migration.py,sha256=tw6d7NZrbOmjEaGHI9y-AMiNWNqf_mceTFqTFXuc6cU,687
|
|
64
64
|
odoo/addons/l10n_br_fiscal/models/__init__.py,sha256=jA39miEtr6bRzl7PdmRmDKyk86wVtEpPqQ5edLZLOms,1749
|
|
@@ -75,10 +75,10 @@ odoo/addons/l10n_br_fiscal/models/document.py,sha256=LYK1fW7MUJ4_GvUtFObOJ_janzk
|
|
|
75
75
|
odoo/addons/l10n_br_fiscal/models/document_email.py,sha256=ikGhCrTI18X01RszlCqO0tvhTOKr2d5KJLcj_QA1o_Y,2113
|
|
76
76
|
odoo/addons/l10n_br_fiscal/models/document_line.py,sha256=h2ouoAh_EyKJURbbqWpUV7JhjHEftYErqNnse--oVGU,1292
|
|
77
77
|
odoo/addons/l10n_br_fiscal/models/document_line_mixin.py,sha256=8wboRxmShjdvuzvGK7AT_GLaHjvCw1wJea_GIfXx7Jw,26460
|
|
78
|
-
odoo/addons/l10n_br_fiscal/models/document_line_mixin_methods.py,sha256=
|
|
78
|
+
odoo/addons/l10n_br_fiscal/models/document_line_mixin_methods.py,sha256=afAdZPr8pjIex-cJBx20Hl5Xfz5xFlC4F9E5s8fEhL8,33175
|
|
79
79
|
odoo/addons/l10n_br_fiscal/models/document_mixin.py,sha256=1Ep0ClxXpMTB_mzikF_3gdA3Nk6N2YxMR8yDq_QoOAg,282
|
|
80
80
|
odoo/addons/l10n_br_fiscal/models/document_mixin_fields.py,sha256=L28fdGE8J94FA_2S2QCOElgjiUwX8A9rUDVFgdKX9M0,11334
|
|
81
|
-
odoo/addons/l10n_br_fiscal/models/document_mixin_methods.py,sha256=
|
|
81
|
+
odoo/addons/l10n_br_fiscal/models/document_mixin_methods.py,sha256=kFl35ijknc0u9Hm0ZxBsHBkpJkqkbQZfhFHW0iiBIIU,12122
|
|
82
82
|
odoo/addons/l10n_br_fiscal/models/document_move_mixin.py,sha256=hSmjeIzJ627gUi7V7CE8ST7oltYwh4E6WEmR9ZTFXAw,7131
|
|
83
83
|
odoo/addons/l10n_br_fiscal/models/document_related.py,sha256=rn3SK1BmrEYywquMRNodrwHdKa1PpZzEaqbyF9dw6EY,4181
|
|
84
84
|
odoo/addons/l10n_br_fiscal/models/document_serie.py,sha256=Spe7kpgMBFGS_LBv3DpiqTC4WuafTK8LRv53GVR2UcM,4128
|
|
@@ -130,7 +130,7 @@ odoo/addons/l10n_br_fiscal/readme/USAGE.md,sha256=Dw3uZaHJCUtV0xFq6VOQvF2G5fS_oS
|
|
|
130
130
|
odoo/addons/l10n_br_fiscal/security/fiscal_security.xml,sha256=c4D3MoIsVnkZ1pDY_iw8jM2hBPz3VCkl5JKnm_hkau0,3700
|
|
131
131
|
odoo/addons/l10n_br_fiscal/security/ir.model.access.csv,sha256=a1vKKQEUKVBbu6zfvlU3ayAP7VxFi3DABsg8TYH08BM,14591
|
|
132
132
|
odoo/addons/l10n_br_fiscal/static/description/icon.png,sha256=Vd1HydYBoGCzNfCqxLlch2i2aeCcyxo-uRxWNp6oMbw,14836
|
|
133
|
-
odoo/addons/l10n_br_fiscal/static/description/index.html,sha256=
|
|
133
|
+
odoo/addons/l10n_br_fiscal/static/description/index.html,sha256=q2zhopXmysZWdK7BA7lrDs5p_6ndFycr3yWdzvFin20,26274
|
|
134
134
|
odoo/addons/l10n_br_fiscal/static/img/fiscal_dashboard.png,sha256=Q0fpqFNqEXh6m6E1aJfzSKV2tQ9lC1Y-ofUt6qxVupc,151668
|
|
135
135
|
odoo/addons/l10n_br_fiscal/static/img/fiscal_line.png,sha256=S4Q4OGSzGnbfm4W5sQVvnD4uUzxS6tbJGT_gs3pB4K0,134276
|
|
136
136
|
odoo/addons/l10n_br_fiscal/static/img/fiscal_operation.png,sha256=2614c1XjxwVznh707e9gujlUXg0ttutKD1ZiSMTqyv8,105871
|
|
@@ -200,7 +200,7 @@ odoo/addons/l10n_br_fiscal/views/uom_uom.xml,sha256=pqq2l0Vd8nz3oJBoe2GERQFMB3I5
|
|
|
200
200
|
odoo/addons/l10n_br_fiscal/wizards/__init__.py,sha256=_sLxjpuJblbtSngjCsnMm7Iur5afF5xLEkAQLu4sy7I,69
|
|
201
201
|
odoo/addons/l10n_br_fiscal/wizards/base_wizard_mixin.py,sha256=-r25us0vdNCSe11Gnf_tyPtN1qq-JKsL-fgWbPGktRo,2856
|
|
202
202
|
odoo/addons/l10n_br_fiscal/wizards/document_status_wizard.py,sha256=KsYj5YWWePO7uk0psBsFdnCL71eLWhcyg7_c7J4G6vA,818
|
|
203
|
-
odoo_addon_l10n_br_fiscal-16.0.2.
|
|
204
|
-
odoo_addon_l10n_br_fiscal-16.0.2.
|
|
205
|
-
odoo_addon_l10n_br_fiscal-16.0.2.
|
|
206
|
-
odoo_addon_l10n_br_fiscal-16.0.2.
|
|
203
|
+
odoo_addon_l10n_br_fiscal-16.0.2.7.0.dist-info/METADATA,sha256=X0SuE_zexP3aryAZY9SAsn1nxf-69FG4WYDq9koLsrs,14381
|
|
204
|
+
odoo_addon_l10n_br_fiscal-16.0.2.7.0.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
|
205
|
+
odoo_addon_l10n_br_fiscal-16.0.2.7.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
206
|
+
odoo_addon_l10n_br_fiscal-16.0.2.7.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|