odoo-addon-l10n-br-fiscal 16.0.1.18.2.3__py3-none-any.whl → 16.0.2.0.0.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.

Files changed (41) hide show
  1. odoo/addons/l10n_br_fiscal/README.rst +1 -1
  2. odoo/addons/l10n_br_fiscal/__manifest__.py +2 -12
  3. odoo/addons/l10n_br_fiscal/i18n/l10n_br_fiscal.pot +0 -820
  4. odoo/addons/l10n_br_fiscal/migrations/16.0.2.0.0/pre-migration.py +25 -0
  5. odoo/addons/l10n_br_fiscal/models/__init__.py +0 -3
  6. odoo/addons/l10n_br_fiscal/models/document.py +62 -20
  7. odoo/addons/l10n_br_fiscal/models/invalidate_number.py +0 -44
  8. odoo/addons/l10n_br_fiscal/security/ir.model.access.csv +0 -5
  9. odoo/addons/l10n_br_fiscal/static/description/index.html +1 -1
  10. odoo/addons/l10n_br_fiscal/tests/__init__.py +0 -1
  11. odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_generic.py +0 -48
  12. odoo/addons/l10n_br_fiscal/tests/test_fiscal_document_nfse.py +0 -2
  13. odoo/addons/l10n_br_fiscal/tests/test_subsequent_operation.py +2 -1
  14. odoo/addons/l10n_br_fiscal/tests/test_tax_benefit.py +0 -21
  15. odoo/addons/l10n_br_fiscal/views/document_view.xml +3 -69
  16. odoo/addons/l10n_br_fiscal/views/invalidate_number_view.xml +2 -7
  17. odoo/addons/l10n_br_fiscal/views/l10n_br_fiscal_action.xml +0 -34
  18. odoo/addons/l10n_br_fiscal/views/l10n_br_fiscal_menu.xml +0 -19
  19. odoo/addons/l10n_br_fiscal/wizards/__init__.py +0 -6
  20. odoo/addons/l10n_br_fiscal/wizards/base_wizard_mixin.py +0 -5
  21. odoo/addons/l10n_br_fiscal/wizards/document_status_wizard.py +2 -0
  22. {odoo_addon_l10n_br_fiscal-16.0.1.18.2.3.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.0.0.2.dist-info}/METADATA +3 -3
  23. {odoo_addon_l10n_br_fiscal-16.0.1.18.2.3.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.0.0.2.dist-info}/RECORD +25 -40
  24. odoo/addons/l10n_br_fiscal/models/document_eletronic.py +0 -233
  25. odoo/addons/l10n_br_fiscal/models/document_event.py +0 -392
  26. odoo/addons/l10n_br_fiscal/models/document_workflow.py +0 -402
  27. odoo/addons/l10n_br_fiscal/tests/test_workflow.py +0 -118
  28. odoo/addons/l10n_br_fiscal/views/document_event_report.xml +0 -15
  29. odoo/addons/l10n_br_fiscal/views/document_event_template.xml +0 -114
  30. odoo/addons/l10n_br_fiscal/views/document_event_view.xml +0 -68
  31. odoo/addons/l10n_br_fiscal/wizards/document_cancel_wizard.py +0 -20
  32. odoo/addons/l10n_br_fiscal/wizards/document_cancel_wizard.xml +0 -30
  33. odoo/addons/l10n_br_fiscal/wizards/document_correction_wizard.py +0 -17
  34. odoo/addons/l10n_br_fiscal/wizards/document_correction_wizard.xml +0 -30
  35. odoo/addons/l10n_br_fiscal/wizards/document_import_wizard_mixin.py +0 -132
  36. odoo/addons/l10n_br_fiscal/wizards/document_import_wizard_mixin.xml +0 -44
  37. odoo/addons/l10n_br_fiscal/wizards/document_status_wizard.xml +0 -58
  38. odoo/addons/l10n_br_fiscal/wizards/invalidate_number_wizard.py +0 -29
  39. odoo/addons/l10n_br_fiscal/wizards/invalidate_number_wizard.xml +0 -30
  40. {odoo_addon_l10n_br_fiscal-16.0.1.18.2.3.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.0.0.2.dist-info}/WHEEL +0 -0
  41. {odoo_addon_l10n_br_fiscal-16.0.1.18.2.3.dist-info → odoo_addon_l10n_br_fiscal-16.0.2.0.0.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,25 @@
1
+ # Copyright (C) 2024 - TODAY - Raphaël Valyi - Akretion <raphael.valyi@akretion.com.br>
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+
4
+ from openupgradelib import openupgrade
5
+
6
+ to_install = "l10n_br_fiscal_edi"
7
+
8
+
9
+ def install_new_modules(cr):
10
+ sql = f"""
11
+ UPDATE ir_module_module
12
+ SET state='to install'
13
+ WHERE name = '{to_install}' AND state='uninstalled'
14
+ """
15
+ openupgrade.logged_query(cr, sql)
16
+
17
+
18
+ @openupgrade.migrate()
19
+ def migrate(env, version):
20
+ install_new_modules(env.cr)
21
+ query = """
22
+ DELETE FROM ir_model_fields
23
+ WHERE model = 'l10n_br_fiscal.document.electronic'
24
+ """
25
+ openupgrade.logged_query(env.cr, query)
@@ -3,15 +3,12 @@
3
3
  from . import data_abstract
4
4
  from . import data_product_abstract
5
5
  from . import data_ncm_nbs_abstract
6
- from . import document_workflow
7
6
  from . import document_fiscal_mixin_methods
8
7
  from . import document_fiscal_mixin_fields
9
8
  from . import document_fiscal_mixin
10
9
  from . import document_move_mixin
11
10
  from . import document_fiscal_line_mixin_methods
12
11
  from . import document_fiscal_line_mixin
13
- from . import document_event
14
- from . import document_eletronic
15
12
  from . import invalidate_number
16
13
  from . import comment
17
14
  from . import ibpt
@@ -10,6 +10,7 @@ from odoo import _, api, fields, models
10
10
  from odoo.exceptions import ValidationError
11
11
 
12
12
  from ..constants.fiscal import (
13
+ DOCUMENT_ISSUER,
13
14
  DOCUMENT_ISSUER_COMPANY,
14
15
  DOCUMENT_ISSUER_DICT,
15
16
  DOCUMENT_ISSUER_PARTNER,
@@ -20,10 +21,13 @@ from ..constants.fiscal import (
20
21
  MODELO_FISCAL_NFCE,
21
22
  MODELO_FISCAL_NFE,
22
23
  MODELO_FISCAL_NFSE,
24
+ SITUACAO_EDOC,
23
25
  SITUACAO_EDOC_AUTORIZADA,
24
26
  SITUACAO_EDOC_CANCELADA,
25
27
  SITUACAO_EDOC_DENEGADA,
28
+ SITUACAO_EDOC_EM_DIGITACAO,
26
29
  SITUACAO_EDOC_INUTILIZADA,
30
+ SITUACAO_FISCAL,
27
31
  )
28
32
 
29
33
 
@@ -49,7 +53,6 @@ class Document(models.Model):
49
53
  _name = "l10n_br_fiscal.document"
50
54
  _inherit = [
51
55
  "l10n_br_fiscal.document.mixin.fields",
52
- "l10n_br_fiscal.document.electronic",
53
56
  "l10n_br_fiscal.document.move.mixin",
54
57
  "mail.thread",
55
58
  ]
@@ -62,6 +65,25 @@ class Document(models.Model):
62
65
  index=True,
63
66
  )
64
67
 
68
+ state_edoc = fields.Selection(
69
+ selection=SITUACAO_EDOC,
70
+ string="Situação e-doc",
71
+ default=SITUACAO_EDOC_EM_DIGITACAO,
72
+ copy=False,
73
+ required=True,
74
+ readonly=True,
75
+ # tracking=True,
76
+ index=True,
77
+ )
78
+
79
+ state_fiscal = fields.Selection(
80
+ selection=SITUACAO_FISCAL,
81
+ string="Situação Fiscal",
82
+ copy=False,
83
+ # tracking=True,
84
+ index=True,
85
+ )
86
+
65
87
  fiscal_operation_id = fields.Many2one(
66
88
  domain="[('state', '=', 'approved'), "
67
89
  "'|', ('fiscal_operation_type', '=', fiscal_operation_type),"
@@ -141,23 +163,6 @@ class Document(models.Model):
141
163
  default=EDOC_PURPOSE_NORMAL,
142
164
  )
143
165
 
144
- event_ids = fields.One2many(
145
- comodel_name="l10n_br_fiscal.event",
146
- inverse_name="document_id",
147
- string="Events",
148
- copy=False,
149
- readonly=True,
150
- )
151
-
152
- correction_event_ids = fields.One2many(
153
- comodel_name="l10n_br_fiscal.event",
154
- inverse_name="document_id",
155
- domain=[("type", "=", "14")],
156
- string="Correction Events",
157
- copy=False,
158
- readonly=True,
159
- )
160
-
161
166
  document_type = fields.Char(
162
167
  string="Document Type Code",
163
168
  related="document_type_id.code",
@@ -172,10 +177,16 @@ class Document(models.Model):
172
177
  copy=False,
173
178
  )
174
179
 
175
- # Você não vai poder fazer isso em modelos que tem state
176
- # TODO Porque não usar o campo state do fiscal.document???
180
+ # this related "state" field is required for the status bar widget
181
+ # while state_edoc avoids colliding with the state field
182
+ # of objects where the fiscal mixin might be injected.
177
183
  state = fields.Selection(related="state_edoc", string="State")
178
184
 
185
+ issuer = fields.Selection(
186
+ selection=DOCUMENT_ISSUER,
187
+ default=DOCUMENT_ISSUER_COMPANY,
188
+ )
189
+
179
190
  document_subsequent_ids = fields.One2many(
180
191
  comodel_name="l10n_br_fiscal.subsequent.document",
181
192
  inverse_name="source_document_id",
@@ -405,6 +416,37 @@ class Document(models.Model):
405
416
 
406
417
  return action
407
418
 
419
+ # the following actions are meant to be implemented in other modules such as
420
+ # l10n_br_fiscal_edi. They are defined here so they can be overriden in modules
421
+ # that don't depend on l10n_br_fiscal_edi (such as l10n_br_account).
422
+ def view_pdf(self):
423
+ pass
424
+
425
+ def view_xml(self):
426
+ pass
427
+
428
+ def action_document_confirm(self):
429
+ pass
430
+
431
+ def action_document_send(self):
432
+ pass
433
+
434
+ def action_document_back2draft(self):
435
+ pass
436
+
437
+ def action_document_cancel(self):
438
+ pass
439
+
440
+ def action_document_invalidate(self):
441
+ pass
442
+
443
+ def action_document_correction(self):
444
+ pass
445
+
446
+ def exec_after_SITUACAO_EDOC_DENEGADA(self, old_state, new_state):
447
+ # see https://github.com/OCA/l10n-brazil/pull/3272
448
+ pass
449
+
408
450
  def _get_email_template(self, state):
409
451
  self.ensure_one()
410
452
  return self.document_type_id.document_email_ids.search(
@@ -82,50 +82,6 @@ class InvalidateNumber(models.Model):
82
82
  default="draft",
83
83
  )
84
84
 
85
- event_ids = fields.One2many(
86
- comodel_name="l10n_br_fiscal.event",
87
- inverse_name="invalidate_number_id",
88
- string="Events",
89
- readonly=True,
90
- states={"done": [("readonly", True)]},
91
- )
92
-
93
- # Authorization Event Related Fields
94
- authorization_event_id = fields.Many2one(
95
- comodel_name="l10n_br_fiscal.event",
96
- string="Authorization Event",
97
- readonly=True,
98
- copy=False,
99
- )
100
-
101
- authorization_date = fields.Datetime(
102
- string="Authorization Date",
103
- readonly=True,
104
- related="authorization_event_id.protocol_date",
105
- )
106
-
107
- authorization_protocol = fields.Char(
108
- string="Authorization Protocol",
109
- related="authorization_event_id.protocol_number",
110
- readonly=True,
111
- )
112
-
113
- send_file_id = fields.Many2one(
114
- comodel_name="ir.attachment",
115
- related="authorization_event_id.file_request_id",
116
- string="Send Document File XML",
117
- ondelete="restrict",
118
- readonly=True,
119
- )
120
-
121
- authorization_file_id = fields.Many2one(
122
- comodel_name="ir.attachment",
123
- related="authorization_event_id.file_response_id",
124
- string="Authorization File XML",
125
- ondelete="restrict",
126
- readonly=True,
127
- )
128
-
129
85
  @api.constrains("number_start", "number_end")
130
86
  def _check_range(self):
131
87
  for record in self:
@@ -93,14 +93,9 @@
93
93
  "uom_alternative_user","UOM alternative for User","model_uom_uom_alternative","l10n_br_fiscal.group_user",1,0,0,0
94
94
  "uom_alternative_manager","UOM alternative for Manager","model_uom_uom_alternative","l10n_br_fiscal.group_manager",1,0,0,0
95
95
  "uom_alternative_maintenance","UOM alternative for Maintenance","model_uom_uom_alternative","l10n_br_fiscal.group_data_maintenance",1,1,1,1
96
- "l10n_br_fiscal_event_user","Fiscal Document Event for User","model_l10n_br_fiscal_event","l10n_br_fiscal.group_user",1,1,1,0
97
96
  "l10n_br_fiscal_invalidate_number_user","user_l10n_br_fiscal_invalidate_number","model_l10n_br_fiscal_invalidate_number","l10n_br_fiscal.group_user",1,0,0,0
98
97
  "l10n_br_fiscal_invalidate_number_manager","manager_l10n_br_fiscal_invalidate_number","model_l10n_br_fiscal_invalidate_number","l10n_br_fiscal.group_manager",1,1,1,1
99
98
  "l10n_br_fiscal_city_taxation_code_user","Fiscal City Taxation Code for User","model_l10n_br_fiscal_city_taxation_code","l10n_br_fiscal.group_user",1,1,1,0
100
99
  "l10n_br_fiscal_city_taxation_code_manager","Fiscal City Taxation Code for Manager","model_l10n_br_fiscal_city_taxation_code","l10n_br_fiscal.group_user",1,1,1,1
101
100
  "l10n_br_fiscal_base_wizard_mixin_user",l10n_br_fiscal_base_wizard_mixin,model_l10n_br_fiscal_base_wizard_mixin,base.group_user,1,1,1,1
102
- "l10n_br_fiscal_document_cancel_wizard_user",l10n_br_fiscal_document_cancel_wizard,model_l10n_br_fiscal_document_cancel_wizard,base.group_user,1,1,1,1
103
- "l10n_br_fiscal_document_correction_wizard_user",l10n_br_fiscal_document_correction_wizard,model_l10n_br_fiscal_document_correction_wizard,base.group_user,1,1,1,1
104
101
  "l10n_br_fiscal_document_status_wizard_user",l10n_br_fiscal_document_status_wizard,model_l10n_br_fiscal_document_status_wizard,base.group_user,1,1,1,1
105
- "l10n_br_fiscal_invalidate_number_wizard_user",l10n_br_fiscal_invalidate_number_wizard,model_l10n_br_fiscal_invalidate_number_wizard,base.group_user,1,1,1,1
106
- "l10n_br_fiscal_document_import_wizard_mixin_user",l10n_br_fiscal_document_import_wizard_mixin_user,model_l10n_br_fiscal_document_import_wizard_mixin,base.group_user,1,1,1,1
@@ -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:a248da3cdce943ad2d1d06331dca73ca572668dbf62b6786726192e4a000e1f2
370
+ !! source digest: sha256:9165dc37b4b81b12aef106282b7c40de7a4aec9762d614daccf79e7d3588071c
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&amp;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>
@@ -14,5 +14,4 @@ from . import (
14
14
  test_service_type,
15
15
  test_subsequent_operation,
16
16
  test_uom_uom,
17
- test_workflow,
18
17
  )
@@ -5,12 +5,6 @@
5
5
 
6
6
  from odoo.tests import TransactionCase
7
7
 
8
- from ..constants.fiscal import (
9
- SITUACAO_EDOC_A_ENVIAR,
10
- SITUACAO_EDOC_AUTORIZADA,
11
- SITUACAO_EDOC_CANCELADA,
12
- SITUACAO_EDOC_EM_DIGITACAO,
13
- )
14
8
  from ..constants.icms import ICMS_ORIGIN_TAX_IMPORTED
15
9
 
16
10
 
@@ -172,26 +166,9 @@ class TestFiscalDocumentGeneric(TransactionCase):
172
166
 
173
167
  self.nfe_same_state.action_document_confirm()
174
168
 
175
- self.assertEqual(
176
- self.nfe_same_state.state_edoc,
177
- SITUACAO_EDOC_A_ENVIAR,
178
- "Document is not in To Sent state",
179
- )
180
-
181
- self.nfe_same_state.action_document_send()
182
-
183
- self.assertEqual(
184
- self.nfe_same_state.state_edoc,
185
- SITUACAO_EDOC_AUTORIZADA,
186
- "Document is not in Authorized state",
187
- )
188
-
189
169
  # Total value of the products
190
170
  self.assertEqual(self.nfe_same_state.amount_price_gross, 200)
191
171
 
192
- result = self.nfe_same_state.action_document_cancel()
193
- self.assertTrue(result)
194
-
195
172
  def test_nfe_other_state(self):
196
173
  """Test NFe other state."""
197
174
 
@@ -1164,28 +1141,3 @@ class TestFiscalDocumentGeneric(TransactionCase):
1164
1141
  "Unexpected value for the field"
1165
1142
  " Other Values in Fiscal Document line",
1166
1143
  )
1167
-
1168
- def test_nfe_purchase_same_state(self):
1169
- self.nfe_purchase_same_state.action_document_confirm()
1170
-
1171
- self.assertEqual(
1172
- self.nfe_purchase_same_state.state_edoc,
1173
- SITUACAO_EDOC_AUTORIZADA,
1174
- "Document is not in Authorized state",
1175
- )
1176
-
1177
- self.nfe_purchase_same_state.action_document_back2draft()
1178
-
1179
- self.assertEqual(
1180
- self.nfe_purchase_same_state.state_edoc,
1181
- SITUACAO_EDOC_EM_DIGITACAO,
1182
- "Document is not in Draft state",
1183
- )
1184
-
1185
- self.nfe_purchase_same_state.action_document_cancel()
1186
-
1187
- self.assertEqual(
1188
- self.nfe_purchase_same_state.state_edoc,
1189
- SITUACAO_EDOC_CANCELADA,
1190
- "Document is not in Canceled state",
1191
- )
@@ -46,5 +46,3 @@ class TestFiscalDocumentNFSe(TransactionCase):
46
46
  "Error to mapping ICMS CST Tributada com permissão de crédito"
47
47
  " for Venda de Serviço de Contribuinte Dentro do Estado.",
48
48
  )
49
-
50
- self.nfse_same_state.action_document_confirm()
@@ -33,7 +33,8 @@ class TestSubsequentOperation(TransactionCase):
33
33
  line._onchange_product_id_fiscal()
34
34
  line._onchange_fiscal_taxes()
35
35
 
36
- self.nfe_simples_faturamento.action_document_confirm()
36
+ self.nfe_simples_faturamento.state_edoc = "a_enviar"
37
+ self.nfe_simples_faturamento._generates_subsequent_operations()
37
38
 
38
39
  subsequent_documents = self.nfe_simples_faturamento.document_subsequent_ids
39
40
 
@@ -3,8 +3,6 @@
3
3
 
4
4
  from odoo.tests import TransactionCase
5
5
 
6
- from ..constants.fiscal import SITUACAO_EDOC_A_ENVIAR, SITUACAO_EDOC_AUTORIZADA
7
-
8
6
 
9
7
  class TestTaxBenefit(TransactionCase):
10
8
  def setUp(self):
@@ -53,22 +51,3 @@ class TestTaxBenefit(TransactionCase):
53
51
  self.tax_benefit,
54
52
  "Document line must have tax benefit",
55
53
  )
56
-
57
- self.nfe_tax_benefit.action_document_confirm()
58
-
59
- self.assertEqual(
60
- self.nfe_tax_benefit.state_edoc,
61
- SITUACAO_EDOC_A_ENVIAR,
62
- "Document is not in To Send state",
63
- )
64
-
65
- self.nfe_tax_benefit.action_document_send()
66
-
67
- self.assertEqual(
68
- self.nfe_tax_benefit.state_edoc,
69
- SITUACAO_EDOC_AUTORIZADA,
70
- "Document is not in Authorized state",
71
- )
72
-
73
- result = self.nfe_tax_benefit.action_document_cancel()
74
- self.assertTrue(result)
@@ -94,7 +94,7 @@
94
94
  <field name="fiscal_operation_type" invisible="1" />
95
95
  <field name="document_type" invisible="1" />
96
96
  <header>
97
- <!-- Please use one state_edoc and attrs to maintain compatibility with invoice -->
97
+ <!-- Please use state_edoc and attrs to maintain compatibility with invoice -->
98
98
  <button
99
99
  name="action_document_confirm"
100
100
  type="object"
@@ -198,10 +198,7 @@
198
198
  attrs="{'invisible': [('state_edoc','not in',('rejeitada', 'denegada'))]}"
199
199
  >
200
200
  Fiscal Document: <field name="document_type_id" readonly="1" /> is <strong
201
- ><field name="state_edoc" readonly="1" /></strong>: <field
202
- name="status_description"
203
- readonly="1"
204
- />
201
+ ><field name="state_edoc" readonly="1" /></strong>
205
202
  </div>
206
203
  <div
207
204
  class="alert alert-success"
@@ -300,7 +297,7 @@
300
297
  </group>
301
298
  </group>
302
299
  <group name="company_info" string="Company">
303
- <field name="company_id" invisible="1" />
300
+ <field name="company_id" invisible="1" />
304
301
  <field
305
302
  name="company_id"
306
303
  required="1"
@@ -406,69 +403,6 @@
406
403
  <field name="force_compute_delivery_costs_by_total" />
407
404
  </group>
408
405
  </page>
409
- <page name="others" string="Others">
410
- <group>
411
- <field name="operation_name" />
412
- <field
413
- name="status_description"
414
- attrs="{'invisible': [('document_electronic', '=', '0')]}"
415
- />
416
- </group>
417
- <group>
418
- <group name="authorization" string="Authorization" colspan="4">
419
- <field name="authorization_event_id" />
420
- <field name="authorization_date" />
421
- <field name="authorization_protocol" />
422
- <field name="send_file_id" />
423
- <field name="authorization_file_id" />
424
- <field name="file_report_id" />
425
- </group>
426
- <group
427
- name="cancel"
428
- string="Cancellation"
429
- colspan="4"
430
- attrs="{'invisible': [('state_edoc', '!=', 'cancelada')]}"
431
- >
432
- <field name="cancel_event_id" />
433
- <field name="cancel_date" />
434
- <field name="cancel_protocol_number" />
435
- <field name="cancel_reason" />
436
- <field name="cancel_file_id" />
437
- </group>
438
- <group
439
- name="corrections"
440
- string="Corrections"
441
- colspan="4"
442
- attrs="{'invisible': [('correction_event_ids', '=', [])]}"
443
- >
444
- <field name="correction_event_ids" nolabel="1">
445
- <tree>
446
- <field name="id" />
447
- <field name="justification" />
448
- <field name="create_date" />
449
- <field name="state" />
450
- <button
451
- name="print_document_event"
452
- title="Print Document Event"
453
- icon="fa-print"
454
- type="object"
455
- />
456
- </tree>
457
- </field>
458
- </group>
459
- <group name="events" string="Events and Services" colspan="4">
460
- <field name="event_ids" nolabel="1">
461
- <tree>
462
- <field name="id" />
463
- <field name="type" />
464
- <field name="origin" />
465
- <field name="create_date" />
466
- <field name="state" />
467
- </tree>
468
- </field>
469
- </group>
470
- </group>
471
- </page>
472
406
  <page name="amounts" string="Amounts">
473
407
  <group>
474
408
  <group>
@@ -42,21 +42,16 @@
42
42
  class="oe_highlight"
43
43
  />
44
44
  </header>
45
- <group>
45
+ <group name="serie">
46
46
  <field name="company_id" />
47
47
  <field name="document_type_id" />
48
48
  <field name="document_serie_id" />
49
49
  </group>
50
- <group>
50
+ <group name="invalidation">
51
51
  <field name="number_start" />
52
52
  <field name="number_end" />
53
53
  <field name="justification" />
54
54
  </group>
55
- <notebook>
56
- <page string="Events">
57
- <field name="event_ids" />
58
- </page>
59
- </notebook>
60
55
  </form>
61
56
  </field>
62
57
  </record>
@@ -647,40 +647,6 @@
647
647
  </field>
648
648
  </record>
649
649
 
650
- <!-- Document Event -->
651
- <record id="event_action" model="ir.actions.act_window">
652
- <field name="name">Fiscal Event</field>
653
- <field name="type">ir.actions.act_window</field>
654
- <field name="res_model">l10n_br_fiscal.event</field>
655
- <field name="view_mode">kanban,tree,form</field>
656
- <field name="search_view_id" ref="event_search" />
657
- <field name="view_id" ref="event_tree" />
658
- <field name="help" type="html">
659
- <p class="o_view_nocontent_smiling_face">
660
- Create a new Document
661
- </p><p>
662
- Odoo helps you easily track all activities
663
- related to a fiscal operation.
664
- </p>
665
- </field>
666
- </record>
667
-
668
- <!-- Invalidate Number -->
669
- <record id="invalidate_number_action" model="ir.actions.act_window">
670
- <field name="name">Invalidate Number</field>
671
- <field name="type">ir.actions.act_window</field>
672
- <field name="res_model">l10n_br_fiscal.invalidate.number</field>
673
- <field name="view_mode">tree,form</field>
674
- <field name="help" type="html">
675
- <p class="o_view_nocontent_smiling_face">
676
- Create a new Document
677
- </p><p>
678
- Odoo helps you easily track all activities
679
- related to a fiscal operation.
680
- </p>
681
- </field>
682
- </record>
683
-
684
650
  <!-- Config Settings -->
685
651
  <record id="config_action" model="ir.actions.act_window">
686
652
  <field name="name">Settings</field>
@@ -86,25 +86,6 @@
86
86
  sequence="30"
87
87
  />
88
88
 
89
- <!-- Invalidate Number -->
90
- <menuitem
91
- id="invalidate_number_menu"
92
- action="invalidate_number_action"
93
- name="Invalidate Number"
94
- parent="document_sub_menu"
95
- sequence="40"
96
- />
97
-
98
- <!-- Fiscal Events -->
99
- <menuitem
100
- id="event_menu"
101
- action="event_action"
102
- name="Fiscal Event"
103
- groups="l10n_br_fiscal.group_user,l10n_br_fiscal.group_manager"
104
- parent="document_sub_menu"
105
- sequence="50"
106
- />
107
-
108
89
  <!-- Partners -->
109
90
  <menuitem
110
91
  id="partners_menu"
@@ -1,8 +1,2 @@
1
- # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
2
-
3
1
  from . import base_wizard_mixin
4
- from . import document_cancel_wizard
5
- from . import document_correction_wizard
6
2
  from . import document_status_wizard
7
- from . import invalidate_number_wizard
8
- from . import document_import_wizard_mixin
@@ -36,11 +36,6 @@ class BaseWizardMixin(models.TransientModel):
36
36
 
37
37
  document_serie = fields.Char()
38
38
 
39
- event_id = fields.Many2one(
40
- comodel_name="l10n_br_fiscal.event",
41
- string="Fiscal Event",
42
- )
43
-
44
39
  justification = fields.Text()
45
40
 
46
41
  document_status = fields.Text(string="Status", readonly=True)
@@ -4,6 +4,8 @@
4
4
  from odoo import models
5
5
 
6
6
 
7
+ # this class is defined here so it can be overriden in l10n_br_account
8
+ # without depending on l10n_br_fiscal_edi.
7
9
  class DocumentStatusWizard(models.TransientModel):
8
10
  _name = "l10n_br_fiscal.document.status.wizard"
9
11
  _description = "Fiscal Document Status Wizard"
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-l10n_br_fiscal
3
- Version: 16.0.1.18.2.3
3
+ Version: 16.0.2.0.0.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
7
7
  Requires-Dist: odoo>=16.0a,<16.1dev
8
- Summary: Brazilian fiscal core module.
8
+ Summary: Fiscal module/tax engine for Brazil
9
9
  Home-page: https://github.com/OCA/l10n-brazil
10
10
  License: AGPL-3
11
11
  Author: Akretion, Odoo Community Association (OCA)
@@ -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:a248da3cdce943ad2d1d06331dca73ca572668dbf62b6786726192e4a000e1f2
28
+ !! source digest: sha256:9165dc37b4b81b12aef106282b7c40de7a4aec9762d614daccf79e7d3588071c
29
29
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
30
30
 
31
31
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png