odoo-addon-l10n-br-fiscal 16.0.2.17.1__py3-none-any.whl → 16.0.2.17.2__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/models/product_mixin.py +26 -21
- odoo/addons/l10n_br_fiscal/models/product_template.py +8 -1
- odoo/addons/l10n_br_fiscal/static/description/index.html +1 -1
- {odoo_addon_l10n_br_fiscal-16.0.2.17.1.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.17.2.dist-info}/METADATA +2 -2
- {odoo_addon_l10n_br_fiscal-16.0.2.17.1.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.17.2.dist-info}/RECORD +9 -9
- {odoo_addon_l10n_br_fiscal-16.0.2.17.1.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.17.2.dist-info}/WHEEL +0 -0
- {odoo_addon_l10n_br_fiscal-16.0.2.17.1.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.17.2.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:cdbc7d72a53ed24633bc033812422e30b7adc277e00f588264bb1233d4bf41ea
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
|
@@ -15,26 +15,31 @@ class ProductMixin(models.AbstractModel):
|
|
|
15
15
|
_name = "l10n_br_fiscal.product.mixin"
|
|
16
16
|
_description = "Fiscal Product Mixin"
|
|
17
17
|
|
|
18
|
-
@api.
|
|
19
|
-
def
|
|
20
|
-
for
|
|
21
|
-
if
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
@api.depends("fiscal_type", "fiscal_genre_id")
|
|
19
|
+
def _compute_ncm_id(self):
|
|
20
|
+
for product in self:
|
|
21
|
+
if product.fiscal_type == PRODUCT_FISCAL_TYPE_SERVICE:
|
|
22
|
+
product.ncm_id = self.env.ref(NCM_FOR_SERVICE_REF)
|
|
23
|
+
elif product.fiscal_genre_id and product.ncm_id:
|
|
24
|
+
if product.fiscal_genre_id.code != product.ncm_id.code[0:2]:
|
|
25
|
+
product.ncm_id = False
|
|
26
|
+
elif product.ncm_id is None:
|
|
27
|
+
product.ncm_id = False
|
|
26
28
|
|
|
27
|
-
@api.
|
|
28
|
-
def
|
|
29
|
-
for
|
|
30
|
-
if
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
)
|
|
29
|
+
@api.depends("ncm_id")
|
|
30
|
+
def _compute_fiscal_genre_id(self):
|
|
31
|
+
for product in self:
|
|
32
|
+
if product.ncm_id:
|
|
33
|
+
product.fiscal_genre_id = self.env[
|
|
34
|
+
"l10n_br_fiscal.product.genre"
|
|
35
|
+
].search([("code", "=", product.ncm_id.code[0:2])])
|
|
36
|
+
elif product.fiscal_genre_id is None:
|
|
37
|
+
product.fiscal_genere_id = False
|
|
34
38
|
|
|
35
|
-
@api.
|
|
36
|
-
def
|
|
37
|
-
for
|
|
38
|
-
if
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
@api.depends("fiscal_type")
|
|
40
|
+
def _compute_tax_icms_or_issqn(self):
|
|
41
|
+
for product in self:
|
|
42
|
+
if product.fiscal_type == PRODUCT_FISCAL_TYPE_SERVICE:
|
|
43
|
+
product.tax_icms_or_issqn = TAX_DOMAIN_ISSQN
|
|
44
|
+
else:
|
|
45
|
+
product.tax_icms_or_issqn = TAX_DOMAIN_ICMS
|
|
@@ -51,6 +51,8 @@ class ProductTemplate(models.Model):
|
|
|
51
51
|
index=True,
|
|
52
52
|
default=_get_default_ncm_id,
|
|
53
53
|
string="NCM",
|
|
54
|
+
compute="_compute_ncm_id",
|
|
55
|
+
store=True,
|
|
54
56
|
)
|
|
55
57
|
|
|
56
58
|
nbm_id = fields.Many2one(
|
|
@@ -61,10 +63,15 @@ class ProductTemplate(models.Model):
|
|
|
61
63
|
selection=TAX_ICMS_OR_ISSQN,
|
|
62
64
|
string="ICMS or ISSQN Tax",
|
|
63
65
|
default=TAX_DOMAIN_ICMS,
|
|
66
|
+
compute="_compute_tax_icms_or_issqn",
|
|
67
|
+
store=True,
|
|
64
68
|
)
|
|
65
69
|
|
|
66
70
|
fiscal_genre_id = fields.Many2one(
|
|
67
|
-
comodel_name="l10n_br_fiscal.product.genre",
|
|
71
|
+
comodel_name="l10n_br_fiscal.product.genre",
|
|
72
|
+
string="Fiscal Product Genre",
|
|
73
|
+
compute="_compute_fiscal_genre_id",
|
|
74
|
+
store=True,
|
|
68
75
|
)
|
|
69
76
|
|
|
70
77
|
service_type_id = fields.Many2one(
|
|
@@ -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:cdbc7d72a53ed24633bc033812422e30b7adc277e00f588264bb1233d4bf41ea
|
|
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.17.
|
|
3
|
+
Version: 16.0.2.17.2
|
|
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:cdbc7d72a53ed24633bc033812422e30b7adc277e00f588264bb1233d4bf41ea
|
|
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=e_ODMb7ZYG04eIoqxR1SdUc2H5qb-NbEa39tA7uT8vU,13644
|
|
2
2
|
odoo/addons/l10n_br_fiscal/__init__.py,sha256=BQXfCjW4ehK1W1j0z6k8xN7Q2LoZBCjjvYDkQt6nSkI,2717
|
|
3
|
-
odoo/addons/l10n_br_fiscal/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/l10n_br_fiscal/__manifest__.py,sha256=fBREd38mqDXkTUZE0IArEGnJxBYeOz1uy1h3papysw8,4914
|
|
4
4
|
odoo/addons/l10n_br_fiscal/tools.py,sha256=4oAxP-kPKq3L3xhNdhOivxWakJa-j0ISpVIBCtsB0NQ,4061
|
|
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
|
|
@@ -94,9 +94,9 @@ odoo/addons/l10n_br_fiscal/models/operation_document_type.py,sha256=ZZQYNCe7lof5
|
|
|
94
94
|
odoo/addons/l10n_br_fiscal/models/operation_line.py,sha256=3Vdzbrpdpy0R3ycWjsv4QRikr1l5CIyYStra6be4WuA,10729
|
|
95
95
|
odoo/addons/l10n_br_fiscal/models/partner_profile.py,sha256=0crL892OKXZyv188KhjG8AsiiqDoNE2dcqgOo7x471c,3546
|
|
96
96
|
odoo/addons/l10n_br_fiscal/models/product_genre.py,sha256=Q4NhYuwCNfwKqU6W_EOb9tzqFQ9EmOFxQZiNUm3NrVs,426
|
|
97
|
-
odoo/addons/l10n_br_fiscal/models/product_mixin.py,sha256=
|
|
97
|
+
odoo/addons/l10n_br_fiscal/models/product_mixin.py,sha256=G6jXD-tZm38PS0T8BDEv632T5zJ4UaG-YUvq5VovWWs,1651
|
|
98
98
|
odoo/addons/l10n_br_fiscal/models/product_product.py,sha256=oo-vk3FF438qeQrI7LosD0vq1-YuTgfVqrq3_UrmdgY,300
|
|
99
|
-
odoo/addons/l10n_br_fiscal/models/product_template.py,sha256=
|
|
99
|
+
odoo/addons/l10n_br_fiscal/models/product_template.py,sha256=xjbCysGyeNJdl172-A5JOC-tSa35r2kpmNpgQMilVQ8,4028
|
|
100
100
|
odoo/addons/l10n_br_fiscal/models/res_company.py,sha256=3aEriHya9Fk3jtTHz3WPAPblJRTyf54vYLLIs5PCXjs,16255
|
|
101
101
|
odoo/addons/l10n_br_fiscal/models/res_config_settings.py,sha256=wqYGsGSNkbypOEU5pk2LMPYZCy7_VSdZw44hYxGpCbo,1325
|
|
102
102
|
odoo/addons/l10n_br_fiscal/models/res_country_state.py,sha256=5hxWhGXqCqcH1aChGGm36d5WGjYaZXiRmDyASA6_7AM,483
|
|
@@ -128,7 +128,7 @@ odoo/addons/l10n_br_fiscal/readme/USAGE.md,sha256=Dw3uZaHJCUtV0xFq6VOQvF2G5fS_oS
|
|
|
128
128
|
odoo/addons/l10n_br_fiscal/security/fiscal_security.xml,sha256=c4D3MoIsVnkZ1pDY_iw8jM2hBPz3VCkl5JKnm_hkau0,3700
|
|
129
129
|
odoo/addons/l10n_br_fiscal/security/ir.model.access.csv,sha256=3E9q6uzshDOKbm2zUV8cv2x1EIV3WkAkqjaq4_sOUtM,14918
|
|
130
130
|
odoo/addons/l10n_br_fiscal/static/description/icon.png,sha256=Vd1HydYBoGCzNfCqxLlch2i2aeCcyxo-uRxWNp6oMbw,14836
|
|
131
|
-
odoo/addons/l10n_br_fiscal/static/description/index.html,sha256=
|
|
131
|
+
odoo/addons/l10n_br_fiscal/static/description/index.html,sha256=Ab7VvHwCPiEH9qLM4EbPYrG1U4TRGZoILQKxs0jBKD0,26274
|
|
132
132
|
odoo/addons/l10n_br_fiscal/static/img/fiscal_dashboard.png,sha256=Q0fpqFNqEXh6m6E1aJfzSKV2tQ9lC1Y-ofUt6qxVupc,151668
|
|
133
133
|
odoo/addons/l10n_br_fiscal/static/img/fiscal_line.png,sha256=S4Q4OGSzGnbfm4W5sQVvnD4uUzxS6tbJGT_gs3pB4K0,134276
|
|
134
134
|
odoo/addons/l10n_br_fiscal/static/img/fiscal_operation.png,sha256=2614c1XjxwVznh707e9gujlUXg0ttutKD1ZiSMTqyv8,105871
|
|
@@ -199,7 +199,7 @@ odoo/addons/l10n_br_fiscal/views/uom_uom.xml,sha256=pqq2l0Vd8nz3oJBoe2GERQFMB3I5
|
|
|
199
199
|
odoo/addons/l10n_br_fiscal/wizards/__init__.py,sha256=_sLxjpuJblbtSngjCsnMm7Iur5afF5xLEkAQLu4sy7I,69
|
|
200
200
|
odoo/addons/l10n_br_fiscal/wizards/base_wizard_mixin.py,sha256=-r25us0vdNCSe11Gnf_tyPtN1qq-JKsL-fgWbPGktRo,2856
|
|
201
201
|
odoo/addons/l10n_br_fiscal/wizards/document_status_wizard.py,sha256=KsYj5YWWePO7uk0psBsFdnCL71eLWhcyg7_c7J4G6vA,818
|
|
202
|
-
odoo_addon_l10n_br_fiscal-16.0.2.17.
|
|
203
|
-
odoo_addon_l10n_br_fiscal-16.0.2.17.
|
|
204
|
-
odoo_addon_l10n_br_fiscal-16.0.2.17.
|
|
205
|
-
odoo_addon_l10n_br_fiscal-16.0.2.17.
|
|
202
|
+
odoo_addon_l10n_br_fiscal-16.0.2.17.2.dist-info/METADATA,sha256=u5SbVk4jKQ4-zDGwJsBHHlRYVZjZ02iqstoF9N-_5uE,14316
|
|
203
|
+
odoo_addon_l10n_br_fiscal-16.0.2.17.2.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
|
204
|
+
odoo_addon_l10n_br_fiscal-16.0.2.17.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
205
|
+
odoo_addon_l10n_br_fiscal-16.0.2.17.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|