odoo-addon-l10n-br-fiscal 16.0.11.0.0__py3-none-any.whl → 16.0.11.1.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/models/document.py +3 -16
- odoo/addons/l10n_br_fiscal/models/document_mixin_methods.py +30 -16
- odoo/addons/l10n_br_fiscal/static/description/index.html +1 -1
- {odoo_addon_l10n_br_fiscal-16.0.11.0.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.11.1.0.dist-info}/METADATA +2 -2
- {odoo_addon_l10n_br_fiscal-16.0.11.0.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.11.1.0.dist-info}/RECORD +9 -9
- {odoo_addon_l10n_br_fiscal-16.0.11.0.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.11.1.0.dist-info}/WHEEL +0 -0
- {odoo_addon_l10n_br_fiscal-16.0.11.0.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.11.1.0.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:e340143dd8b9c79597c471c339e92379e093b8c8c2eaa6ab057bbc4146c6f2a3
|
|
15
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
16
|
|
|
17
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
|
@@ -546,22 +546,9 @@ class Document(models.Model):
|
|
|
546
546
|
for r in self:
|
|
547
547
|
r.name = r._compute_document_name()
|
|
548
548
|
|
|
549
|
-
@api.
|
|
550
|
-
|
|
551
|
-
"fiscal_line_ids
|
|
552
|
-
"fiscal_line_ids.amount_untaxed",
|
|
553
|
-
"fiscal_line_ids.amount_tax",
|
|
554
|
-
"fiscal_line_ids.amount_taxed",
|
|
555
|
-
"fiscal_line_ids.amount_total",
|
|
556
|
-
"fiscal_line_ids.financial_total",
|
|
557
|
-
"fiscal_line_ids.financial_total_gross",
|
|
558
|
-
"fiscal_line_ids.financial_discount_value",
|
|
559
|
-
"fiscal_line_ids.amount_tax_included",
|
|
560
|
-
"fiscal_line_ids.amount_tax_not_included",
|
|
561
|
-
"fiscal_line_ids.amount_tax_withholding",
|
|
562
|
-
)
|
|
563
|
-
def _compute_fiscal_amount(self):
|
|
564
|
-
return super()._compute_fiscal_amount()
|
|
549
|
+
@api.model
|
|
550
|
+
def _get_fiscal_lines_field_name(self):
|
|
551
|
+
return "fiscal_line_ids"
|
|
565
552
|
|
|
566
553
|
def unlink(self):
|
|
567
554
|
forbidden_states_unlink = [
|
|
@@ -66,20 +66,10 @@ class FiscalDocumentMixinMethods(models.AbstractModel):
|
|
|
66
66
|
self.document_type_id = self.company_id.document_type_id
|
|
67
67
|
|
|
68
68
|
def _get_amount_lines(self):
|
|
69
|
-
"""
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
This method should be overridden by models that inherit this mixin
|
|
73
|
-
if their fiscal document lines are stored in a field other than
|
|
74
|
-
`fiscal_line_ids`. The returned recordset should contain line objects
|
|
75
|
-
that have the fiscal amount fields to be summed.
|
|
76
|
-
|
|
77
|
-
:return: A recordset of fiscal document line objects.
|
|
78
|
-
"""
|
|
79
|
-
return self.mapped("fiscal_line_ids")
|
|
69
|
+
"""Get object lines instances used to compute fiscal fields"""
|
|
70
|
+
return self.mapped(self._get_fiscal_lines_field_name())
|
|
80
71
|
|
|
81
72
|
def _get_product_amount_lines(self):
|
|
82
|
-
"""Get object lines instaces used to compute fields"""
|
|
83
73
|
fiscal_line_ids = self._get_amount_lines()
|
|
84
74
|
return fiscal_line_ids.filtered(lambda line: line.product_id.type != "service")
|
|
85
75
|
|
|
@@ -108,6 +98,30 @@ class FiscalDocumentMixinMethods(models.AbstractModel):
|
|
|
108
98
|
elif doc.document_serie_id is None:
|
|
109
99
|
doc.document_serie_id = False
|
|
110
100
|
|
|
101
|
+
@api.model
|
|
102
|
+
def _get_fiscal_lines_field_name(self):
|
|
103
|
+
return "fiscal_line_ids"
|
|
104
|
+
|
|
105
|
+
def _get_fiscal_amount_field_dependencies(self):
|
|
106
|
+
"""
|
|
107
|
+
Dynamically get the list of field dependencies.
|
|
108
|
+
"""
|
|
109
|
+
if self._abstract:
|
|
110
|
+
return []
|
|
111
|
+
o2m_field_name = self._get_fiscal_lines_field_name()
|
|
112
|
+
target_fields = []
|
|
113
|
+
for field in self._get_amount_fields():
|
|
114
|
+
if (
|
|
115
|
+
field.replace("amount_", "")
|
|
116
|
+
in getattr(self, o2m_field_name)._fields.keys()
|
|
117
|
+
):
|
|
118
|
+
target_fields.append(field.replace("amount_", ""))
|
|
119
|
+
|
|
120
|
+
return [o2m_field_name] + [
|
|
121
|
+
f"{o2m_field_name}.{target_field}" for target_field in target_fields
|
|
122
|
+
]
|
|
123
|
+
|
|
124
|
+
@api.depends(lambda self: self._get_fiscal_amount_field_dependencies())
|
|
111
125
|
def _compute_fiscal_amount(self):
|
|
112
126
|
"""
|
|
113
127
|
Compute and sum various fiscal amounts from the document lines.
|
|
@@ -121,7 +135,7 @@ class FiscalDocumentMixinMethods(models.AbstractModel):
|
|
|
121
135
|
"""
|
|
122
136
|
|
|
123
137
|
fields = self._get_amount_fields()
|
|
124
|
-
for doc in self:
|
|
138
|
+
for doc in self.filtered(lambda m: m.fiscal_operation_id):
|
|
125
139
|
values = {key: 0.0 for key in fields}
|
|
126
140
|
for line in doc._get_amount_lines():
|
|
127
141
|
for field in fields:
|
|
@@ -130,9 +144,9 @@ class FiscalDocumentMixinMethods(models.AbstractModel):
|
|
|
130
144
|
if field.replace("amount_", "") in line._fields.keys():
|
|
131
145
|
# FIXME this field creates an error in invoice form
|
|
132
146
|
if field == "amount_financial_discount_value":
|
|
133
|
-
values[
|
|
134
|
-
|
|
135
|
-
|
|
147
|
+
values["amount_financial_discount_value"] += (
|
|
148
|
+
0 # line.financial_discount_value
|
|
149
|
+
)
|
|
136
150
|
else:
|
|
137
151
|
values[field] += line[field.replace("amount_", "")]
|
|
138
152
|
|
|
@@ -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:
|
|
375
|
+
!! source digest: sha256:e340143dd8b9c79597c471c339e92379e093b8c8c2eaa6ab057bbc4146c6f2a3
|
|
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&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>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-l10n_br_fiscal
|
|
3
|
-
Version: 16.0.11.
|
|
3
|
+
Version: 16.0.11.1.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:
|
|
34
|
+
!! source digest: sha256:e340143dd8b9c79597c471c339e92379e093b8c8c2eaa6ab057bbc4146c6f2a3
|
|
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=
|
|
1
|
+
odoo/addons/l10n_br_fiscal/README.rst,sha256=pXDLWnq2bDpyxvwtCkiM5n9HK5AAs4pvsjTSnMw_RvY,13957
|
|
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=S7LE501pYDUyaIJCTAZR-diXPEntX14B4PJyKV89tig,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
|
|
@@ -69,12 +69,12 @@ 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=
|
|
72
|
+
odoo/addons/l10n_br_fiscal/models/document.py,sha256=yLHHgfZ9usrEy4O0MrpMgpV9nTGVFphGChhr8RFELiY,19399
|
|
73
73
|
odoo/addons/l10n_br_fiscal/models/document_line.py,sha256=Y87Bevv0wDWP_oRUUvjKsWdow_dvQEKQ-31KEIdZghY,2032
|
|
74
74
|
odoo/addons/l10n_br_fiscal/models/document_line_mixin.py,sha256=e-bixaQI0cJzdnUBzbbTJoeEsjfHq09FF_xEPnV0KxM,27787
|
|
75
75
|
odoo/addons/l10n_br_fiscal/models/document_line_mixin_methods.py,sha256=6cmm93C2X8OJ8ZtlhdFySLt9IOvf4zRamfBHhsswQ_o,31705
|
|
76
76
|
odoo/addons/l10n_br_fiscal/models/document_mixin.py,sha256=G63Mr1XyX6YXrdCg0bGIjjvrJPmAs8UuzExKYheVOqg,13477
|
|
77
|
-
odoo/addons/l10n_br_fiscal/models/document_mixin_methods.py,sha256=
|
|
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
|
|
79
79
|
odoo/addons/l10n_br_fiscal/models/document_serie.py,sha256=Spe7kpgMBFGS_LBv3DpiqTC4WuafTK8LRv53GVR2UcM,4128
|
|
80
80
|
odoo/addons/l10n_br_fiscal/models/document_supplement.py,sha256=31oRSHT_SaGSf-dQvriweIxZZiTANxkHHupc5kMYfXA,409
|
|
@@ -124,7 +124,7 @@ 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=
|
|
127
|
+
odoo/addons/l10n_br_fiscal/static/description/index.html,sha256=rXkfrZ9BfIIGioCcZrtquRYDo0xlpmyvsT3sSQ5yWvE,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
|
|
@@ -192,7 +192,7 @@ odoo/addons/l10n_br_fiscal/views/uom_uom.xml,sha256=i4sQPGhwoKNpzfZFdFYrabXkGXE3
|
|
|
192
192
|
odoo/addons/l10n_br_fiscal/wizards/__init__.py,sha256=_sLxjpuJblbtSngjCsnMm7Iur5afF5xLEkAQLu4sy7I,69
|
|
193
193
|
odoo/addons/l10n_br_fiscal/wizards/base_wizard_mixin.py,sha256=-r25us0vdNCSe11Gnf_tyPtN1qq-JKsL-fgWbPGktRo,2856
|
|
194
194
|
odoo/addons/l10n_br_fiscal/wizards/document_status_wizard.py,sha256=KsYj5YWWePO7uk0psBsFdnCL71eLWhcyg7_c7J4G6vA,818
|
|
195
|
-
odoo_addon_l10n_br_fiscal-16.0.11.
|
|
196
|
-
odoo_addon_l10n_br_fiscal-16.0.11.
|
|
197
|
-
odoo_addon_l10n_br_fiscal-16.0.11.
|
|
198
|
-
odoo_addon_l10n_br_fiscal-16.0.11.
|
|
195
|
+
odoo_addon_l10n_br_fiscal-16.0.11.1.0.dist-info/METADATA,sha256=syVk6znBQ8ES8KCTUmL1bPybE23F7K2V4rZFRTIEeZA,14720
|
|
196
|
+
odoo_addon_l10n_br_fiscal-16.0.11.1.0.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
|
197
|
+
odoo_addon_l10n_br_fiscal-16.0.11.1.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
198
|
+
odoo_addon_l10n_br_fiscal-16.0.11.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|