odoo-addon-l10n-br-fiscal 16.0.2.17.0__py3-none-any.whl → 16.0.19.4.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.
- odoo/addons/l10n_br_fiscal/README.rst +11 -4
- odoo/addons/l10n_br_fiscal/__manifest__.py +20 -12
- odoo/addons/l10n_br_fiscal/constants/fiscal.py +64 -18
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.cest.csv +1043 -983
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.cfop.csv +620 -620
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.cst.csv +58 -0
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.document.type.csv +1 -0
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.legal.nature.csv +82 -0
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.nbs.csv +791 -764
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.operation.indicator.csv +27 -0
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.partner.profile.csv +11 -0
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.tax.classification.csv +163 -0
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.tax.csv +32 -0
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal.tax.group.csv +3 -0
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal_icms_tax_definition_data.xml +340 -352
- odoo/addons/l10n_br_fiscal/data/operation_data.xml +1 -1
- odoo/addons/l10n_br_fiscal/data/simplified_tax_data.xml +5 -5
- odoo/addons/l10n_br_fiscal/data/uom.alias.csv +25 -0
- odoo/addons/l10n_br_fiscal/data/uom_data.xml +104 -33
- odoo/addons/l10n_br_fiscal/demo/__init__.py +21 -15
- odoo/addons/l10n_br_fiscal/demo/company_demo.xml +6 -0
- odoo/addons/l10n_br_fiscal/demo/fiscal_document_demo.xml +3 -377
- odoo/addons/l10n_br_fiscal/demo/fiscal_document_nfse_demo.xml +0 -12
- odoo/addons/l10n_br_fiscal/demo/fiscal_operation_demo.xml +2 -2
- odoo/addons/l10n_br_fiscal/demo/icms_tax_definition_demo.xml +5 -2
- odoo/addons/l10n_br_fiscal/demo/res_users_demo.xml +2 -2
- odoo/addons/l10n_br_fiscal/i18n/l10n_br_fiscal.pot +1161 -804
- odoo/addons/l10n_br_fiscal/i18n/pt_BR.po +22 -22
- odoo/addons/l10n_br_fiscal/migrations/16.0.13.0.0/pre-migration.py +25 -0
- odoo/addons/l10n_br_fiscal/migrations/16.0.14.0.0/pre-migration.py +30 -0
- odoo/addons/l10n_br_fiscal/migrations/16.0.14.0.5/pre-migration.py +15 -0
- odoo/addons/l10n_br_fiscal/migrations/16.0.4.0.0/pre-migration.py +220 -0
- odoo/addons/l10n_br_fiscal/migrations/16.0.5.0.0/pre-migration.py +33 -0
- odoo/addons/l10n_br_fiscal/migrations/16.0.5.2.0/pre-migration.py +21 -0
- odoo/addons/l10n_br_fiscal/models/__init__.py +3 -8
- odoo/addons/l10n_br_fiscal/models/cest.py +0 -8
- odoo/addons/l10n_br_fiscal/models/cfop.py +91 -0
- odoo/addons/l10n_br_fiscal/models/city_taxation_code.py +1 -3
- odoo/addons/l10n_br_fiscal/models/comment.py +2 -2
- odoo/addons/l10n_br_fiscal/models/cst.py +0 -1
- odoo/addons/l10n_br_fiscal/models/data_abstract.py +26 -0
- odoo/addons/l10n_br_fiscal/models/data_ncm_nbs_abstract.py +1 -1
- odoo/addons/l10n_br_fiscal/models/document.py +131 -222
- odoo/addons/l10n_br_fiscal/models/document_line.py +82 -5
- odoo/addons/l10n_br_fiscal/models/document_line_mixin.py +1952 -138
- odoo/addons/l10n_br_fiscal/models/document_mixin.py +741 -6
- odoo/addons/l10n_br_fiscal/models/document_related.py +12 -9
- odoo/addons/l10n_br_fiscal/models/document_serie.py +33 -0
- odoo/addons/l10n_br_fiscal/models/document_type.py +0 -6
- odoo/addons/l10n_br_fiscal/models/ibpt.py +1 -1
- odoo/addons/l10n_br_fiscal/models/icms_regulation.py +2 -2
- odoo/addons/l10n_br_fiscal/models/invalidate_number.py +4 -5
- odoo/addons/l10n_br_fiscal/models/legal_nature.py +20 -0
- odoo/addons/l10n_br_fiscal/models/nbm.py +0 -8
- odoo/addons/l10n_br_fiscal/models/ncm.py +0 -12
- odoo/addons/l10n_br_fiscal/models/operation.py +49 -15
- odoo/addons/l10n_br_fiscal/models/operation_dashboard.py +3 -2
- odoo/addons/l10n_br_fiscal/models/operation_indicator.py +58 -0
- odoo/addons/l10n_br_fiscal/models/operation_line.py +75 -6
- odoo/addons/l10n_br_fiscal/models/partner_profile.py +6 -0
- odoo/addons/l10n_br_fiscal/models/product_mixin.py +24 -21
- odoo/addons/l10n_br_fiscal/models/product_template.py +23 -13
- odoo/addons/l10n_br_fiscal/models/res_company.py +31 -9
- odoo/addons/l10n_br_fiscal/models/res_partner.py +38 -6
- odoo/addons/l10n_br_fiscal/models/simplified_tax.py +0 -3
- odoo/addons/l10n_br_fiscal/models/simplified_tax_range.py +8 -0
- odoo/addons/l10n_br_fiscal/models/tax.py +144 -55
- odoo/addons/l10n_br_fiscal/models/tax_classification.py +81 -0
- odoo/addons/l10n_br_fiscal/models/tax_definition.py +72 -23
- odoo/addons/l10n_br_fiscal/models/tax_pis_cofins.py +0 -3
- odoo/addons/l10n_br_fiscal/models/tax_pis_cofins_base.py +1 -1
- odoo/addons/l10n_br_fiscal/models/tax_pis_cofins_credit.py +1 -1
- odoo/addons/l10n_br_fiscal/models/uom_uom.py +15 -30
- odoo/addons/l10n_br_fiscal/security/fiscal_security.xml +11 -27
- odoo/addons/l10n_br_fiscal/security/ir.model.access.csv +11 -10
- odoo/addons/l10n_br_fiscal/static/description/index.html +27 -21
- odoo/addons/l10n_br_fiscal/static/src/js/list_renderer_with_button.esm.js +38 -0
- odoo/addons/l10n_br_fiscal/tests/__init__.py +3 -2
- odoo/addons/l10n_br_fiscal/tests/test_document_edition.py +308 -0
- odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_generic.py +23 -129
- odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_nfse.py +5 -15
- odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_serie.py +60 -0
- odoo/addons/l10n_br_fiscal/tests/test_ibpt.py +4 -3
- odoo/addons/l10n_br_fiscal/tests/test_icms_regulation.py +2 -2
- odoo/addons/l10n_br_fiscal/tests/test_ncm.py +4 -1
- odoo/addons/l10n_br_fiscal/tests/test_tax_benefit.py +17 -22
- odoo/addons/l10n_br_fiscal/tests/test_tax_classification.py +110 -0
- odoo/addons/l10n_br_fiscal/tools.py +1 -1
- odoo/addons/l10n_br_fiscal/views/cest_view.xml +2 -4
- odoo/addons/l10n_br_fiscal/views/cfop_view.xml +25 -5
- odoo/addons/l10n_br_fiscal/views/city_taxation_code.xml +1 -4
- odoo/addons/l10n_br_fiscal/views/cnae_view.xml +2 -4
- odoo/addons/l10n_br_fiscal/views/comment_view.xml +2 -4
- odoo/addons/l10n_br_fiscal/views/cst_view.xml +6 -8
- odoo/addons/l10n_br_fiscal/views/{document_fiscal_line_mixin_view.xml → document_line_mixin_view.xml} +525 -385
- odoo/addons/l10n_br_fiscal/views/document_line_view.xml +101 -82
- odoo/addons/l10n_br_fiscal/views/document_related_view.xml +44 -46
- odoo/addons/l10n_br_fiscal/views/document_serie_view.xml +2 -6
- odoo/addons/l10n_br_fiscal/views/document_type_view.xml +0 -8
- odoo/addons/l10n_br_fiscal/views/document_view.xml +303 -370
- odoo/addons/l10n_br_fiscal/views/icms_regulation_view.xml +14 -16
- odoo/addons/l10n_br_fiscal/views/icms_relief_view.xml +8 -10
- odoo/addons/l10n_br_fiscal/views/invalidate_number_view.xml +46 -48
- odoo/addons/l10n_br_fiscal/views/l10n_br_fiscal_action.xml +166 -280
- odoo/addons/l10n_br_fiscal/views/l10n_br_fiscal_menu.xml +25 -99
- odoo/addons/l10n_br_fiscal/views/legal_nature_view.xml +40 -0
- odoo/addons/l10n_br_fiscal/views/nbm_view.xml +5 -6
- odoo/addons/l10n_br_fiscal/views/nbs_view.xml +5 -6
- odoo/addons/l10n_br_fiscal/views/ncm_view.xml +12 -15
- odoo/addons/l10n_br_fiscal/views/operation_dashboard_view.xml +13 -12
- odoo/addons/l10n_br_fiscal/views/operation_indicator_view.xml +75 -0
- odoo/addons/l10n_br_fiscal/views/operation_line_view.xml +22 -21
- odoo/addons/l10n_br_fiscal/views/operation_view.xml +4 -19
- odoo/addons/l10n_br_fiscal/views/partner_profile_view.xml +3 -6
- odoo/addons/l10n_br_fiscal/views/product_genre_view.xml +7 -9
- odoo/addons/l10n_br_fiscal/views/product_product_view.xml +37 -14
- odoo/addons/l10n_br_fiscal/views/product_template_view.xml +34 -14
- odoo/addons/l10n_br_fiscal/views/res_company_view.xml +55 -52
- odoo/addons/l10n_br_fiscal/views/res_config_settings_view.xml +23 -28
- odoo/addons/l10n_br_fiscal/views/res_partner_view.xml +22 -2
- odoo/addons/l10n_br_fiscal/views/service_type_view.xml +7 -8
- odoo/addons/l10n_br_fiscal/views/simplified_tax_range_view.xml +0 -2
- odoo/addons/l10n_br_fiscal/views/simplified_tax_view.xml +0 -2
- odoo/addons/l10n_br_fiscal/views/tax_classification.xml +110 -0
- odoo/addons/l10n_br_fiscal/views/tax_definition_view.xml +157 -129
- odoo/addons/l10n_br_fiscal/views/tax_estimate_view.xml +0 -2
- odoo/addons/l10n_br_fiscal/views/tax_group_view.xml +3 -6
- odoo/addons/l10n_br_fiscal/views/tax_ipi_control_seal_view.xml +0 -2
- odoo/addons/l10n_br_fiscal/views/tax_ipi_guideline_class_view.xml +0 -2
- odoo/addons/l10n_br_fiscal/views/tax_ipi_guideline_view.xml +2 -4
- odoo/addons/l10n_br_fiscal/views/tax_pis_cofins_base_view.xml +2 -4
- odoo/addons/l10n_br_fiscal/views/tax_pis_cofins_credit_view.xml +2 -4
- odoo/addons/l10n_br_fiscal/views/tax_pis_cofins_view.xml +5 -7
- odoo/addons/l10n_br_fiscal/views/tax_view.xml +5 -7
- odoo/addons/l10n_br_fiscal/views/uom_uom.xml +24 -17
- odoo/addons/l10n_br_fiscal/wizards/__init__.py +1 -0
- odoo/addons/l10n_br_fiscal/wizards/base_wizard_mixin.py +1 -1
- odoo/addons/l10n_br_fiscal/wizards/document_import_wizard_mixin.py +129 -0
- odoo/addons/l10n_br_fiscal/wizards/document_import_wizard_mixin.xml +41 -0
- {odoo_addon_l10n_br_fiscal-16.0.2.17.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.19.4.0.dist-info}/METADATA +15 -6
- odoo_addon_l10n_br_fiscal-16.0.19.4.0.dist-info/RECORD +210 -0
- {odoo_addon_l10n_br_fiscal-16.0.2.17.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.19.4.0.dist-info}/WHEEL +1 -1
- odoo/addons/l10n_br_fiscal/data/l10n_br_fiscal_email_template.xml +0 -68
- odoo/addons/l10n_br_fiscal/data/partner_profile_data.xml +0 -96
- odoo/addons/l10n_br_fiscal/data/uom_alternative_data.xml +0 -58
- odoo/addons/l10n_br_fiscal/demo/l10n_br_fiscal_document_email.xml +0 -54
- odoo/addons/l10n_br_fiscal/demo/subsequent_operation_demo.xml +0 -10
- odoo/addons/l10n_br_fiscal/models/document_email.py +0 -74
- odoo/addons/l10n_br_fiscal/models/document_line_mixin_methods.py +0 -913
- odoo/addons/l10n_br_fiscal/models/document_mixin_fields.py +0 -473
- odoo/addons/l10n_br_fiscal/models/document_mixin_methods.py +0 -269
- odoo/addons/l10n_br_fiscal/models/document_move_mixin.py +0 -261
- odoo/addons/l10n_br_fiscal/models/subsequent_document.py +0 -203
- odoo/addons/l10n_br_fiscal/models/subsequent_operation.py +0 -54
- odoo/addons/l10n_br_fiscal/models/uom_uom_alternative.py +0 -22
- odoo/addons/l10n_br_fiscal/tests/test_subsequent_operation.py +0 -71
- odoo/addons/l10n_br_fiscal/tests/test_uom_uom.py +0 -22
- odoo/addons/l10n_br_fiscal/views/document_email_view.xml +0 -48
- odoo/addons/l10n_br_fiscal/views/subsequent_document_view.xml +0 -43
- odoo/addons/l10n_br_fiscal/views/subsequent_operation_view.xml +0 -21
- odoo_addon_l10n_br_fiscal-16.0.2.17.0.dist-info/RECORD +0 -205
- {odoo_addon_l10n_br_fiscal-16.0.2.17.0.dist-info → odoo_addon_l10n_br_fiscal-16.0.19.4.0.dist-info}/top_level.txt +0 -0
|
@@ -1,473 +0,0 @@
|
|
|
1
|
-
# Copyright (C) 2019 Renato Lima - Akretion <renato.lima@akretion.com.br>
|
|
2
|
-
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
|
|
3
|
-
|
|
4
|
-
from odoo import api, fields, models
|
|
5
|
-
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT
|
|
6
|
-
|
|
7
|
-
from ..constants.fiscal import (
|
|
8
|
-
FINAL_CUSTOMER,
|
|
9
|
-
FINAL_CUSTOMER_YES,
|
|
10
|
-
FISCAL_COMMENT_DOCUMENT,
|
|
11
|
-
NFE_IND_PRES,
|
|
12
|
-
NFE_IND_PRES_DEFAULT,
|
|
13
|
-
)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class FiscalDocumentMixinFields(models.AbstractModel):
|
|
17
|
-
_name = "l10n_br_fiscal.document.mixin.fields"
|
|
18
|
-
_description = "Document Fiscal Mixin Fields"
|
|
19
|
-
|
|
20
|
-
def _date_server_format(self):
|
|
21
|
-
return fields.Datetime.now().strftime(DEFAULT_SERVER_DATETIME_FORMAT)
|
|
22
|
-
|
|
23
|
-
@api.model
|
|
24
|
-
def _default_operation(self):
|
|
25
|
-
return False
|
|
26
|
-
|
|
27
|
-
@api.model
|
|
28
|
-
def _operation_domain(self):
|
|
29
|
-
domain = (
|
|
30
|
-
"[('state', '=', 'approved'),"
|
|
31
|
-
"'|',"
|
|
32
|
-
f"('company_id', '=', {self.env.company.id}),"
|
|
33
|
-
"('company_id', '=', False),"
|
|
34
|
-
)
|
|
35
|
-
return domain
|
|
36
|
-
|
|
37
|
-
fiscal_operation_id = fields.Many2one(
|
|
38
|
-
comodel_name="l10n_br_fiscal.operation",
|
|
39
|
-
string="Operation",
|
|
40
|
-
domain=lambda self: self._operation_domain(),
|
|
41
|
-
default=_default_operation,
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
#
|
|
45
|
-
# Company and Partner are defined here to avoid warnings on runbot
|
|
46
|
-
#
|
|
47
|
-
company_id = fields.Many2one(
|
|
48
|
-
comodel_name="res.company",
|
|
49
|
-
string="Company",
|
|
50
|
-
)
|
|
51
|
-
|
|
52
|
-
partner_id = fields.Many2one(
|
|
53
|
-
comodel_name="res.partner",
|
|
54
|
-
index=True,
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
fiscal_operation_type = fields.Selection(
|
|
58
|
-
related="fiscal_operation_id.fiscal_operation_type",
|
|
59
|
-
readonly=True,
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
ind_pres = fields.Selection(
|
|
63
|
-
selection=NFE_IND_PRES,
|
|
64
|
-
string="Buyer Presence",
|
|
65
|
-
default=NFE_IND_PRES_DEFAULT,
|
|
66
|
-
)
|
|
67
|
-
|
|
68
|
-
comment_ids = fields.Many2many(
|
|
69
|
-
comodel_name="l10n_br_fiscal.comment",
|
|
70
|
-
relation="l10n_br_fiscal_document_mixin_comment_rel",
|
|
71
|
-
column1="document_mixin_id",
|
|
72
|
-
column2="comment_id",
|
|
73
|
-
string="Comments",
|
|
74
|
-
domain=[("object", "=", FISCAL_COMMENT_DOCUMENT)],
|
|
75
|
-
)
|
|
76
|
-
|
|
77
|
-
fiscal_additional_data = fields.Text()
|
|
78
|
-
|
|
79
|
-
manual_fiscal_additional_data = fields.Text(
|
|
80
|
-
help="Fiscal Additional data manually entered by user",
|
|
81
|
-
)
|
|
82
|
-
|
|
83
|
-
customer_additional_data = fields.Text()
|
|
84
|
-
|
|
85
|
-
manual_customer_additional_data = fields.Text(
|
|
86
|
-
help="Customer Additional data manually entered by user",
|
|
87
|
-
)
|
|
88
|
-
|
|
89
|
-
ind_final = fields.Selection(
|
|
90
|
-
selection=FINAL_CUSTOMER,
|
|
91
|
-
string="Final Consumption Operation",
|
|
92
|
-
default=FINAL_CUSTOMER_YES,
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
currency_id = fields.Many2one(
|
|
96
|
-
comodel_name="res.currency",
|
|
97
|
-
string="Currency",
|
|
98
|
-
default=lambda self: self.env.company.currency_id,
|
|
99
|
-
)
|
|
100
|
-
|
|
101
|
-
amount_price_gross = fields.Monetary(
|
|
102
|
-
compute="_compute_fiscal_amount",
|
|
103
|
-
store=True,
|
|
104
|
-
string="Amount Gross",
|
|
105
|
-
help="Amount without discount.",
|
|
106
|
-
)
|
|
107
|
-
|
|
108
|
-
amount_untaxed = fields.Monetary(
|
|
109
|
-
compute="_compute_fiscal_amount",
|
|
110
|
-
store=True,
|
|
111
|
-
)
|
|
112
|
-
|
|
113
|
-
amount_icms_base = fields.Monetary(
|
|
114
|
-
string="ICMS Base",
|
|
115
|
-
compute="_compute_fiscal_amount",
|
|
116
|
-
store=True,
|
|
117
|
-
)
|
|
118
|
-
|
|
119
|
-
amount_icms_value = fields.Monetary(
|
|
120
|
-
string="ICMS Value",
|
|
121
|
-
compute="_compute_fiscal_amount",
|
|
122
|
-
store=True,
|
|
123
|
-
)
|
|
124
|
-
|
|
125
|
-
amount_icmsst_base = fields.Monetary(
|
|
126
|
-
string="ICMS ST Base",
|
|
127
|
-
compute="_compute_fiscal_amount",
|
|
128
|
-
store=True,
|
|
129
|
-
)
|
|
130
|
-
|
|
131
|
-
amount_icmsst_value = fields.Monetary(
|
|
132
|
-
string="ICMS ST Value",
|
|
133
|
-
compute="_compute_fiscal_amount",
|
|
134
|
-
store=True,
|
|
135
|
-
)
|
|
136
|
-
|
|
137
|
-
amount_icmssn_credit_value = fields.Monetary(
|
|
138
|
-
string="ICMSSN Credit Value",
|
|
139
|
-
compute="_compute_fiscal_amount",
|
|
140
|
-
store=True,
|
|
141
|
-
)
|
|
142
|
-
|
|
143
|
-
amount_icmsfcp_base = fields.Monetary(
|
|
144
|
-
string="ICMS FCP Base",
|
|
145
|
-
compute="_compute_fiscal_amount",
|
|
146
|
-
store=True,
|
|
147
|
-
)
|
|
148
|
-
|
|
149
|
-
amount_icmsfcp_value = fields.Monetary(
|
|
150
|
-
string="ICMS FCP Value",
|
|
151
|
-
compute="_compute_fiscal_amount",
|
|
152
|
-
store=True,
|
|
153
|
-
)
|
|
154
|
-
|
|
155
|
-
amount_icmsfcpst_value = fields.Monetary(
|
|
156
|
-
string="ICMS FCP ST Value",
|
|
157
|
-
compute="_compute_fiscal_amount",
|
|
158
|
-
store=True,
|
|
159
|
-
)
|
|
160
|
-
|
|
161
|
-
amount_icms_destination_value = fields.Monetary(
|
|
162
|
-
string="ICMS Destination Value",
|
|
163
|
-
compute="_compute_fiscal_amount",
|
|
164
|
-
store=True,
|
|
165
|
-
)
|
|
166
|
-
|
|
167
|
-
amount_icms_origin_value = fields.Monetary(
|
|
168
|
-
string="ICMS Origin Value",
|
|
169
|
-
compute="_compute_fiscal_amount",
|
|
170
|
-
store=True,
|
|
171
|
-
)
|
|
172
|
-
|
|
173
|
-
amount_ipi_base = fields.Monetary(
|
|
174
|
-
string="IPI Base",
|
|
175
|
-
compute="_compute_fiscal_amount",
|
|
176
|
-
store=True,
|
|
177
|
-
)
|
|
178
|
-
|
|
179
|
-
amount_ipi_value = fields.Monetary(
|
|
180
|
-
string="IPI Value",
|
|
181
|
-
compute="_compute_fiscal_amount",
|
|
182
|
-
store=True,
|
|
183
|
-
)
|
|
184
|
-
|
|
185
|
-
amount_ii_base = fields.Monetary(
|
|
186
|
-
string="II Base",
|
|
187
|
-
compute="_compute_fiscal_amount",
|
|
188
|
-
store=True,
|
|
189
|
-
)
|
|
190
|
-
|
|
191
|
-
amount_ii_value = fields.Monetary(
|
|
192
|
-
string="II Value",
|
|
193
|
-
compute="_compute_fiscal_amount",
|
|
194
|
-
store=True,
|
|
195
|
-
)
|
|
196
|
-
|
|
197
|
-
amount_ii_customhouse_charges = fields.Monetary(
|
|
198
|
-
string="Customhouse Charges",
|
|
199
|
-
compute="_compute_fiscal_amount",
|
|
200
|
-
store=True,
|
|
201
|
-
)
|
|
202
|
-
|
|
203
|
-
amount_pis_base = fields.Monetary(
|
|
204
|
-
string="PIS Base",
|
|
205
|
-
compute="_compute_fiscal_amount",
|
|
206
|
-
store=True,
|
|
207
|
-
)
|
|
208
|
-
|
|
209
|
-
amount_pis_value = fields.Monetary(
|
|
210
|
-
string="PIS Value",
|
|
211
|
-
compute="_compute_fiscal_amount",
|
|
212
|
-
store=True,
|
|
213
|
-
)
|
|
214
|
-
|
|
215
|
-
amount_pisst_base = fields.Monetary(
|
|
216
|
-
string="PIS ST Base",
|
|
217
|
-
compute="_compute_fiscal_amount",
|
|
218
|
-
store=True,
|
|
219
|
-
)
|
|
220
|
-
|
|
221
|
-
amount_pisst_value = fields.Monetary(
|
|
222
|
-
string="PIS ST Value",
|
|
223
|
-
compute="_compute_fiscal_amount",
|
|
224
|
-
store=True,
|
|
225
|
-
)
|
|
226
|
-
|
|
227
|
-
amount_pis_wh_base = fields.Monetary(
|
|
228
|
-
string="PIS Ret Base",
|
|
229
|
-
compute="_compute_fiscal_amount",
|
|
230
|
-
store=True,
|
|
231
|
-
)
|
|
232
|
-
|
|
233
|
-
amount_pis_wh_value = fields.Monetary(
|
|
234
|
-
string="PIS Ret Value",
|
|
235
|
-
compute="_compute_fiscal_amount",
|
|
236
|
-
store=True,
|
|
237
|
-
)
|
|
238
|
-
|
|
239
|
-
amount_cofins_base = fields.Monetary(
|
|
240
|
-
string="COFINS Base",
|
|
241
|
-
compute="_compute_fiscal_amount",
|
|
242
|
-
store=True,
|
|
243
|
-
)
|
|
244
|
-
|
|
245
|
-
amount_cofins_value = fields.Monetary(
|
|
246
|
-
string="COFINS Value",
|
|
247
|
-
compute="_compute_fiscal_amount",
|
|
248
|
-
store=True,
|
|
249
|
-
)
|
|
250
|
-
|
|
251
|
-
amount_cofinsst_base = fields.Monetary(
|
|
252
|
-
string="COFINS ST Base",
|
|
253
|
-
compute="_compute_fiscal_amount",
|
|
254
|
-
store=True,
|
|
255
|
-
)
|
|
256
|
-
|
|
257
|
-
amount_cofinsst_value = fields.Monetary(
|
|
258
|
-
string="COFINS ST Value",
|
|
259
|
-
compute="_compute_fiscal_amount",
|
|
260
|
-
store=True,
|
|
261
|
-
)
|
|
262
|
-
|
|
263
|
-
amount_cofins_wh_base = fields.Monetary(
|
|
264
|
-
string="COFINS Ret Base",
|
|
265
|
-
compute="_compute_fiscal_amount",
|
|
266
|
-
store=True,
|
|
267
|
-
)
|
|
268
|
-
|
|
269
|
-
amount_cofins_wh_value = fields.Monetary(
|
|
270
|
-
string="COFINS Ret Value",
|
|
271
|
-
compute="_compute_fiscal_amount",
|
|
272
|
-
store=True,
|
|
273
|
-
)
|
|
274
|
-
|
|
275
|
-
amount_issqn_base = fields.Monetary(
|
|
276
|
-
string="ISSQN Base",
|
|
277
|
-
compute="_compute_fiscal_amount",
|
|
278
|
-
store=True,
|
|
279
|
-
)
|
|
280
|
-
|
|
281
|
-
amount_issqn_value = fields.Monetary(
|
|
282
|
-
string="ISSQN Value",
|
|
283
|
-
compute="_compute_fiscal_amount",
|
|
284
|
-
store=True,
|
|
285
|
-
)
|
|
286
|
-
|
|
287
|
-
amount_issqn_wh_base = fields.Monetary(
|
|
288
|
-
string="ISSQN Ret Base",
|
|
289
|
-
compute="_compute_fiscal_amount",
|
|
290
|
-
store=True,
|
|
291
|
-
)
|
|
292
|
-
|
|
293
|
-
amount_issqn_wh_value = fields.Monetary(
|
|
294
|
-
string="ISSQN Ret Value",
|
|
295
|
-
compute="_compute_fiscal_amount",
|
|
296
|
-
store=True,
|
|
297
|
-
)
|
|
298
|
-
|
|
299
|
-
amount_csll_base = fields.Monetary(
|
|
300
|
-
string="CSLL Base",
|
|
301
|
-
compute="_compute_fiscal_amount",
|
|
302
|
-
store=True,
|
|
303
|
-
)
|
|
304
|
-
|
|
305
|
-
amount_csll_value = fields.Monetary(
|
|
306
|
-
string="CSLL Value",
|
|
307
|
-
compute="_compute_fiscal_amount",
|
|
308
|
-
store=True,
|
|
309
|
-
)
|
|
310
|
-
|
|
311
|
-
amount_csll_wh_base = fields.Monetary(
|
|
312
|
-
string="CSLL Ret Base",
|
|
313
|
-
compute="_compute_fiscal_amount",
|
|
314
|
-
store=True,
|
|
315
|
-
)
|
|
316
|
-
|
|
317
|
-
amount_csll_wh_value = fields.Monetary(
|
|
318
|
-
string="CSLL Ret Value",
|
|
319
|
-
compute="_compute_fiscal_amount",
|
|
320
|
-
store=True,
|
|
321
|
-
)
|
|
322
|
-
|
|
323
|
-
amount_irpj_base = fields.Monetary(
|
|
324
|
-
string="IRPJ Base",
|
|
325
|
-
compute="_compute_fiscal_amount",
|
|
326
|
-
store=True,
|
|
327
|
-
)
|
|
328
|
-
|
|
329
|
-
amount_irpj_value = fields.Monetary(
|
|
330
|
-
string="IRPJ Value",
|
|
331
|
-
compute="_compute_fiscal_amount",
|
|
332
|
-
store=True,
|
|
333
|
-
)
|
|
334
|
-
|
|
335
|
-
amount_irpj_wh_base = fields.Monetary(
|
|
336
|
-
string="IRPJ Ret Base",
|
|
337
|
-
compute="_compute_fiscal_amount",
|
|
338
|
-
store=True,
|
|
339
|
-
)
|
|
340
|
-
|
|
341
|
-
amount_irpj_wh_value = fields.Monetary(
|
|
342
|
-
string="IRPJ Ret Value",
|
|
343
|
-
compute="_compute_fiscal_amount",
|
|
344
|
-
store=True,
|
|
345
|
-
)
|
|
346
|
-
|
|
347
|
-
amount_inss_base = fields.Monetary(
|
|
348
|
-
string="INSS Base",
|
|
349
|
-
compute="_compute_fiscal_amount",
|
|
350
|
-
store=True,
|
|
351
|
-
)
|
|
352
|
-
|
|
353
|
-
amount_inss_value = fields.Monetary(
|
|
354
|
-
string="INSS Value",
|
|
355
|
-
compute="_compute_fiscal_amount",
|
|
356
|
-
store=True,
|
|
357
|
-
)
|
|
358
|
-
|
|
359
|
-
amount_inss_wh_base = fields.Monetary(
|
|
360
|
-
string="INSS Ret Base",
|
|
361
|
-
compute="_compute_fiscal_amount",
|
|
362
|
-
store=True,
|
|
363
|
-
)
|
|
364
|
-
|
|
365
|
-
amount_inss_wh_value = fields.Monetary(
|
|
366
|
-
string="INSS Ret Value",
|
|
367
|
-
compute="_compute_fiscal_amount",
|
|
368
|
-
store=True,
|
|
369
|
-
)
|
|
370
|
-
|
|
371
|
-
amount_estimate_tax = fields.Monetary(
|
|
372
|
-
compute="_compute_fiscal_amount",
|
|
373
|
-
store=True,
|
|
374
|
-
)
|
|
375
|
-
|
|
376
|
-
amount_tax = fields.Monetary(
|
|
377
|
-
compute="_compute_fiscal_amount",
|
|
378
|
-
store=True,
|
|
379
|
-
)
|
|
380
|
-
|
|
381
|
-
amount_total = fields.Monetary(
|
|
382
|
-
compute="_compute_fiscal_amount",
|
|
383
|
-
store=True,
|
|
384
|
-
)
|
|
385
|
-
|
|
386
|
-
amount_tax_withholding = fields.Monetary(
|
|
387
|
-
string="Tax Withholding",
|
|
388
|
-
compute="_compute_fiscal_amount",
|
|
389
|
-
store=True,
|
|
390
|
-
)
|
|
391
|
-
|
|
392
|
-
amount_financial_total = fields.Monetary(
|
|
393
|
-
string="Amount Financial",
|
|
394
|
-
compute="_compute_fiscal_amount",
|
|
395
|
-
store=True,
|
|
396
|
-
)
|
|
397
|
-
|
|
398
|
-
amount_discount_value = fields.Monetary(
|
|
399
|
-
string="Amount Discount",
|
|
400
|
-
compute="_compute_fiscal_amount",
|
|
401
|
-
store=True,
|
|
402
|
-
)
|
|
403
|
-
|
|
404
|
-
amount_financial_total_gross = fields.Monetary(
|
|
405
|
-
string="Amount Financial Gross",
|
|
406
|
-
compute="_compute_fiscal_amount",
|
|
407
|
-
store=True,
|
|
408
|
-
)
|
|
409
|
-
|
|
410
|
-
amount_financial_discount_value = fields.Monetary(
|
|
411
|
-
string="Financial Discount Value",
|
|
412
|
-
compute="_compute_fiscal_amount",
|
|
413
|
-
store=True,
|
|
414
|
-
)
|
|
415
|
-
|
|
416
|
-
amount_insurance_value = fields.Monetary(
|
|
417
|
-
string="Insurance Value",
|
|
418
|
-
compute="_compute_fiscal_amount",
|
|
419
|
-
store=True,
|
|
420
|
-
inverse="_inverse_amount_insurance",
|
|
421
|
-
)
|
|
422
|
-
|
|
423
|
-
amount_other_value = fields.Monetary(
|
|
424
|
-
string="Other Costs",
|
|
425
|
-
compute="_compute_fiscal_amount",
|
|
426
|
-
store=True,
|
|
427
|
-
inverse="_inverse_amount_other",
|
|
428
|
-
)
|
|
429
|
-
|
|
430
|
-
amount_freight_value = fields.Monetary(
|
|
431
|
-
string="Freight Value",
|
|
432
|
-
compute="_compute_fiscal_amount",
|
|
433
|
-
store=True,
|
|
434
|
-
inverse="_inverse_amount_freight",
|
|
435
|
-
)
|
|
436
|
-
|
|
437
|
-
# Usado para tornar Somente Leitura os campos totais dos custos
|
|
438
|
-
# de entrega quando a definição for por Linha
|
|
439
|
-
delivery_costs = fields.Selection(
|
|
440
|
-
related="company_id.delivery_costs",
|
|
441
|
-
)
|
|
442
|
-
|
|
443
|
-
force_compute_delivery_costs_by_total = fields.Boolean(default=False)
|
|
444
|
-
|
|
445
|
-
document_type_id = fields.Many2one(
|
|
446
|
-
comodel_name="l10n_br_fiscal.document.type",
|
|
447
|
-
)
|
|
448
|
-
|
|
449
|
-
document_serie_id = fields.Many2one(
|
|
450
|
-
comodel_name="l10n_br_fiscal.document.serie",
|
|
451
|
-
domain="[('active', '=', True)," "('document_type_id', '=', document_type_id)]",
|
|
452
|
-
)
|
|
453
|
-
|
|
454
|
-
document_serie = fields.Char(
|
|
455
|
-
string="Serie Number",
|
|
456
|
-
)
|
|
457
|
-
|
|
458
|
-
document_number = fields.Char(
|
|
459
|
-
copy=False,
|
|
460
|
-
index=True,
|
|
461
|
-
unaccent=False,
|
|
462
|
-
)
|
|
463
|
-
|
|
464
|
-
document_key = fields.Char(
|
|
465
|
-
string="Key",
|
|
466
|
-
copy=False,
|
|
467
|
-
index=True,
|
|
468
|
-
unaccent=False,
|
|
469
|
-
)
|
|
470
|
-
|
|
471
|
-
key_random_code = fields.Char(string="Document Key Random Code")
|
|
472
|
-
key_check_digit = fields.Char(string="Document Key Check Digit")
|
|
473
|
-
total_weight = fields.Float()
|