odoo-addon-l10n-br-fiscal 16.0.12.3.0__py3-none-any.whl → 17.0.1.0.0.11__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 (54) hide show
  1. odoo/addons/l10n_br_fiscal/README.rst +10 -10
  2. odoo/addons/l10n_br_fiscal/__init__.py +2 -3
  3. odoo/addons/l10n_br_fiscal/__manifest__.py +2 -2
  4. odoo/addons/l10n_br_fiscal/data/product_data.xml +2 -2
  5. odoo/addons/l10n_br_fiscal/i18n/l10n_br_fiscal.pot +24 -429
  6. odoo/addons/l10n_br_fiscal/models/comment.py +20 -18
  7. odoo/addons/l10n_br_fiscal/models/data_abstract.py +11 -12
  8. odoo/addons/l10n_br_fiscal/models/document.py +2 -4
  9. odoo/addons/l10n_br_fiscal/models/document_serie.py +4 -2
  10. odoo/addons/l10n_br_fiscal/models/invalidate_number.py +0 -6
  11. odoo/addons/l10n_br_fiscal/models/operation.py +0 -11
  12. odoo/addons/l10n_br_fiscal/models/tax_definition.py +2 -35
  13. odoo/addons/l10n_br_fiscal/static/description/index.html +8 -8
  14. odoo/addons/l10n_br_fiscal/tests/test_cnae.py +2 -3
  15. odoo/addons/l10n_br_fiscal/tests/test_document_edition.py +9 -31
  16. odoo/addons/l10n_br_fiscal/tests/test_service_type.py +2 -3
  17. odoo/addons/l10n_br_fiscal/views/cest_view.xml +2 -2
  18. odoo/addons/l10n_br_fiscal/views/cnae_view.xml +0 -1
  19. odoo/addons/l10n_br_fiscal/views/document_line_mixin_view.xml +170 -140
  20. odoo/addons/l10n_br_fiscal/views/document_line_view.xml +7 -7
  21. odoo/addons/l10n_br_fiscal/views/document_related_view.xml +15 -11
  22. odoo/addons/l10n_br_fiscal/views/document_serie_view.xml +1 -1
  23. odoo/addons/l10n_br_fiscal/views/document_view.xml +30 -25
  24. odoo/addons/l10n_br_fiscal/views/invalidate_number_view.xml +12 -12
  25. odoo/addons/l10n_br_fiscal/views/l10n_br_fiscal_menu.xml +2 -2
  26. odoo/addons/l10n_br_fiscal/views/nbm_view.xml +2 -2
  27. odoo/addons/l10n_br_fiscal/views/nbs_view.xml +1 -1
  28. odoo/addons/l10n_br_fiscal/views/ncm_view.xml +3 -3
  29. odoo/addons/l10n_br_fiscal/views/operation_dashboard_view.xml +27 -18
  30. odoo/addons/l10n_br_fiscal/views/operation_line_view.xml +2 -2
  31. odoo/addons/l10n_br_fiscal/views/operation_view.xml +39 -16
  32. odoo/addons/l10n_br_fiscal/views/partner_profile_view.xml +3 -6
  33. odoo/addons/l10n_br_fiscal/views/product_genre_view.xml +2 -2
  34. odoo/addons/l10n_br_fiscal/views/product_product_view.xml +13 -16
  35. odoo/addons/l10n_br_fiscal/views/product_template_view.xml +12 -9
  36. odoo/addons/l10n_br_fiscal/views/res_company_view.xml +17 -12
  37. odoo/addons/l10n_br_fiscal/views/res_config_settings_view.xml +37 -98
  38. odoo/addons/l10n_br_fiscal/views/res_partner_view.xml +3 -3
  39. odoo/addons/l10n_br_fiscal/views/service_type_view.xml +2 -3
  40. odoo/addons/l10n_br_fiscal/views/tax_definition_view.xml +60 -29
  41. odoo/addons/l10n_br_fiscal/views/tax_estimate_view.xml +2 -2
  42. odoo/addons/l10n_br_fiscal/views/tax_group_view.xml +4 -4
  43. odoo/addons/l10n_br_fiscal/views/tax_view.xml +14 -16
  44. odoo/addons/l10n_br_fiscal/wizards/document_import_wizard_mixin.py +1 -1
  45. odoo/addons/l10n_br_fiscal/wizards/document_import_wizard_mixin.xml +2 -5
  46. {odoo_addon_l10n_br_fiscal-16.0.12.3.0.dist-info → odoo_addon_l10n_br_fiscal-17.0.1.0.0.11.dist-info}/METADATA +15 -15
  47. {odoo_addon_l10n_br_fiscal-16.0.12.3.0.dist-info → odoo_addon_l10n_br_fiscal-17.0.1.0.0.11.dist-info}/RECORD +49 -54
  48. odoo/addons/l10n_br_fiscal/migrations/16.0.2.0.0/pre-migration.py +0 -25
  49. odoo/addons/l10n_br_fiscal/migrations/16.0.2.15.0/pre-migration.py +0 -19
  50. odoo/addons/l10n_br_fiscal/migrations/16.0.4.0.0/pre-migration.py +0 -220
  51. odoo/addons/l10n_br_fiscal/migrations/16.0.5.0.0/pre-migration.py +0 -33
  52. odoo/addons/l10n_br_fiscal/migrations/16.0.5.2.0/pre-migration.py +0 -21
  53. {odoo_addon_l10n_br_fiscal-16.0.12.3.0.dist-info → odoo_addon_l10n_br_fiscal-17.0.1.0.0.11.dist-info}/WHEEL +0 -0
  54. {odoo_addon_l10n_br_fiscal-16.0.12.3.0.dist-info → odoo_addon_l10n_br_fiscal-17.0.1.0.0.11.dist-info}/top_level.txt +0 -0
@@ -24,11 +24,15 @@
24
24
  <field name="model">l10n_br_fiscal.operation</field>
25
25
  <field name="arch" type="xml">
26
26
  <tree>
27
- <field name="code" />
28
- <field name="name" />
29
- <field name="company_id" groups="base.group_multi_company" />
30
- <field name="fiscal_operation_type" />
31
- <field name="fiscal_type" />
27
+ <field name="code" readonly="state != 'draft'" />
28
+ <field name="name" readonly="state != 'draft'" />
29
+ <field
30
+ name="company_id"
31
+ groups="base.group_multi_company"
32
+ readonly="state != 'draft'"
33
+ />
34
+ <field name="fiscal_operation_type" readonly="state != 'draft'" />
35
+ <field name="fiscal_type" readonly="state != 'draft'" />
32
36
  <field name="state" />
33
37
  </tree>
34
38
  </field>
@@ -44,7 +48,7 @@
44
48
  <button
45
49
  name="action_review"
46
50
  type="object"
47
- states="draft"
51
+ invisible="state != 'draft'"
48
52
  string="Review"
49
53
  class="oe_highlight"
50
54
  groups="l10n_br_fiscal.group_manager"
@@ -52,7 +56,7 @@
52
56
  <button
53
57
  name="action_approve"
54
58
  type="object"
55
- states="review,expired"
59
+ invisible="state not in ('review', 'expired')"
56
60
  string="Approve"
57
61
  class="oe_highlight"
58
62
  groups="l10n_br_fiscal.group_manager"
@@ -60,7 +64,7 @@
60
64
  <button
61
65
  name="action_draft"
62
66
  type="object"
63
- states="review,approved"
67
+ invisible="state not in ('review', 'approved')"
64
68
  string="Reset To Draft"
65
69
  class="oe_highlight"
66
70
  groups="l10n_br_fiscal.group_manager"
@@ -72,37 +76,56 @@
72
76
  <div class="col-10">
73
77
  <label for="name" class="oe_edit_only" />
74
78
  <div class="o_row d-flex">
75
- <field name="name" class="oe_inline" />
79
+ <field
80
+ name="name"
81
+ class="oe_inline"
82
+ readonly="state != 'draft'"
83
+ />
76
84
  </div>
77
85
  </div>
78
86
  </h1>
79
87
  <group>
80
88
  <group>
81
- <field name="fiscal_operation_type" />
82
- <field name="fiscal_type" />
83
- <field name="code" />
89
+ <field
90
+ name="fiscal_operation_type"
91
+ readonly="state != 'draft'"
92
+ />
93
+ <field name="fiscal_type" readonly="state != 'draft'" />
94
+ <field name="code" readonly="state != 'draft'" />
84
95
  <field
85
96
  name="company_id"
86
97
  groups="base.group_multi_company"
98
+ readonly="state != 'draft'"
87
99
  />
88
- <field name="edoc_purpose" />
100
+ <field name="edoc_purpose" readonly="state != 'draft'" />
89
101
  </group>
90
102
  <group>
91
- <field name="default_price_unit" />
92
- <field name="return_fiscal_operation_id" />
93
- <field name="inverse_fiscal_operation_id" />
103
+ <field
104
+ name="default_price_unit"
105
+ readonly="state != 'draft'"
106
+ />
107
+ <field
108
+ name="return_fiscal_operation_id"
109
+ readonly="state != 'draft'"
110
+ />
111
+ <field
112
+ name="inverse_fiscal_operation_id"
113
+ readonly="state != 'draft'"
114
+ />
94
115
  </group>
95
116
  </group>
96
117
  <notebook>
97
118
  <page name="operation_line" string="Operation Line">
98
119
  <field
99
120
  name="line_ids"
121
+ readonly="state != 'draft'"
100
122
  context="{'default_fiscal_operation_id': id, 'default_fiscal_type': fiscal_type, 'default_fiscal_operation_type': fiscal_operation_type, 'form_view_ref': 'l10n_br_fiscal.operation_line_form' , 'show_code_only': 1}"
101
123
  />
102
124
  </page>
103
125
  <page name="operation_document_type" string="Fiscal Documents">
104
126
  <field
105
127
  name="document_type_ids"
128
+ readonly="state != 'draft'"
106
129
  context="{'default_fiscal_operation_id': id}"
107
130
  >
108
131
  <tree>
@@ -48,8 +48,8 @@
48
48
  id="partner_button"
49
49
  icon="fa-bars"
50
50
  name="action_view_partners"
51
- context="{'default_fiscal_profile_id': active_id}"
52
- attrs="{'invisible': [('partner_qty', '=', 0)]}"
51
+ context="{'default_fiscal_profile_id': id}"
52
+ invisible="partner_qty == 0"
53
53
  >
54
54
  <field
55
55
  string="Partners"
@@ -65,10 +65,7 @@
65
65
  <field name="is_public_entity" />
66
66
  <field name="default" />
67
67
  <field name="ind_ie_dest" />
68
- <field
69
- name="tax_framework"
70
- attrs="{'invisible': [('is_company', '=', False)]}"
71
- />
68
+ <field name="tax_framework" invisible="not is_company" />
72
69
  </group>
73
70
  <notebook>
74
71
  <page string="Related Partners" name="partner_related">
@@ -35,8 +35,8 @@
35
35
  id="product_tmpl_button"
36
36
  icon="fa-bars"
37
37
  name="%(product.product_template_action_all)d"
38
- context="{'search_default_product_genre_id': active_id}"
39
- attrs="{'invisible': [('product_tmpl_qty', '=', 0)]}"
38
+ context="{'search_default_product_genre_id': id}"
39
+ invisible="product_tmpl_qty == 0"
40
40
  >
41
41
  <field
42
42
  string="Products"
@@ -40,7 +40,7 @@
40
40
  <field name="ncm_id" />
41
41
  <field name="standard_price" />
42
42
  <field name="type" />
43
- <field name="active" invisible="1" />
43
+ <field name="active" column_invisible="True" />
44
44
  </tree>
45
45
  </field>
46
46
  </record>
@@ -61,17 +61,18 @@
61
61
  <field name="fiscal_type" required="1" />
62
62
  <field
63
63
  name="icms_origin"
64
- attrs="{'required': [('fiscal_type', '!=', '09')], 'invisible': [('fiscal_type', '=', '09')]}"
64
+ invisible="fiscal_type == '09'"
65
+ required="fiscal_type != '09'"
65
66
  />
66
67
  <field name="ncm_id" required="1" />
67
68
  <field name="tax_icms_or_issqn" required="1" />
68
69
  <field
69
70
  name="service_type_id"
70
- attrs="{'invisible': [('fiscal_type', '!=', '09')]}"
71
+ invisible="fiscal_type != '09'"
71
72
  />
72
73
  <field
73
74
  name="city_taxation_code_id"
74
- attrs="{'invisible': [('fiscal_type', '!=', '09')]}"
75
+ invisible="fiscal_type != '09'"
75
76
  context="{'default_service_type_id': service_type_id}"
76
77
  >
77
78
  <tree editable="bottom">
@@ -85,33 +86,29 @@
85
86
  </group>
86
87
  <group>
87
88
  <field name="fiscal_genre_id" required="1" />
88
- <field
89
- name="cest_id"
90
- attrs="{'invisible': [('fiscal_type', '=', '09')]}"
91
- />
92
- <field
93
- name="nbs_id"
94
- attrs="{'invisible': [('fiscal_type', '!=', '09')]}"
95
- />
89
+ <field name="cest_id" invisible="fiscal_type == '09'" />
90
+ <field name="nbs_id" invisible="fiscal_type != '09'" />
96
91
  <field
97
92
  name="ipi_guideline_class_id"
98
- attrs="{'invisible': [('fiscal_type', '=', '09')]}"
93
+ invisible="fiscal_type == '09'"
99
94
  />
100
95
  <field
101
96
  name="ipi_control_seal_id"
102
- attrs="{'invisible': [('fiscal_type', '=', '09')]}"
97
+ invisible="fiscal_type == '09'"
103
98
  />
104
99
  </group>
105
100
  <group string="Tax UOM">
106
101
  <field name="uoe_id" />
107
102
  <field
108
103
  name="uoe_factor"
109
- attrs="{'invisible': [('fiscal_type', '=', False)], 'required': [('uot_id', '!=', False)]}"
104
+ invisible="not fiscal_type"
105
+ required="uot_id"
110
106
  />
111
107
  <field name="uot_id" />
112
108
  <field
113
109
  name="uot_factor"
114
- attrs="{'invisible': [('uot_id', '=', False)], 'required': [('uot_id', '!=', False)]}"
110
+ invisible="not uot_id"
111
+ required="uot_id"
115
112
  />
116
113
  </group>
117
114
  </group>
@@ -45,7 +45,7 @@
45
45
  <field name="ncm_id" />
46
46
  <field name="standard_price" />
47
47
  <field name="type" />
48
- <field name="active" invisible="1" />
48
+ <field name="active" column_invisible="True" />
49
49
  </tree>
50
50
  </field>
51
51
  </record>
@@ -62,7 +62,8 @@
62
62
  <field name="fiscal_type" required="1" />
63
63
  <field
64
64
  name="icms_origin"
65
- attrs="{'required': [('fiscal_type', '!=', '09')], 'invisible': [('fiscal_type', '=', '09')]}"
65
+ invisible="fiscal_type == '09'"
66
+ required="fiscal_type != '09'"
66
67
  />
67
68
  <field
68
69
  name="ncm_id"
@@ -72,11 +73,11 @@
72
73
  <field name="tax_icms_or_issqn" required="1" />
73
74
  <field
74
75
  name="service_type_id"
75
- attrs="{'invisible': [('fiscal_type', '!=', '09')]}"
76
+ invisible="fiscal_type != '09'"
76
77
  />
77
78
  <field
78
79
  name="city_taxation_code_id"
79
- attrs="{'invisible': [('fiscal_type', '!=', '09')]}"
80
+ invisible="fiscal_type != '09'"
80
81
  context="{'default_service_type_id': service_type_id}"
81
82
  >
82
83
  <tree editable="bottom">
@@ -109,17 +110,17 @@
109
110
  />
110
111
  <field
111
112
  name="cest_id"
112
- attrs="{'invisible': [('fiscal_type', '=', '09')]}"
113
+ invisible="fiscal_type == '09'"
113
114
  options="{'no_create': True, 'no_create_edit': True}"
114
115
  />
115
116
  <field
116
117
  name="nbm_id"
117
- attrs="{'invisible': [('fiscal_type', '=', '09')]}"
118
+ invisible="fiscal_type == '09'"
118
119
  options="{'no_create': True, 'no_create_edit': True}"
119
120
  />
120
121
  <field
121
122
  name="nbs_id"
122
- attrs="{'invisible': [('fiscal_type', '!=', '09')]}"
123
+ invisible="fiscal_type != '09'"
123
124
  options="{'no_create': True, 'no_create_edit': True}"
124
125
  />
125
126
  </group>
@@ -130,7 +131,8 @@
130
131
  />
131
132
  <field
132
133
  name="uoe_factor"
133
- attrs="{'invisible': [('fiscal_type', '=', False)], 'required': [('uot_id', '!=', False)]}"
134
+ invisible="not fiscal_type"
135
+ required="uot_id"
134
136
  />
135
137
  <field
136
138
  name="uot_id"
@@ -138,7 +140,8 @@
138
140
  />
139
141
  <field
140
142
  name="uot_factor"
141
- attrs="{'invisible': [('uot_id', '=', False)], 'required': [('uot_id', '!=', False)]}"
143
+ invisible="not uot_id"
144
+ required="uot_id"
142
145
  />
143
146
  </group>
144
147
  </group>
@@ -44,7 +44,7 @@
44
44
  <group
45
45
  name="simples"
46
46
  string="Simples Nacional"
47
- attrs="{'invisible': [('tax_framework', '=', '3')]}"
47
+ invisible="tax_framework == '3'"
48
48
  >
49
49
  <group>
50
50
  <field name="annual_revenue" />
@@ -61,19 +61,20 @@
61
61
  <group
62
62
  name="normal"
63
63
  string="Regime Normal"
64
- attrs="{'invisible': [('tax_framework', '!=', '3')]}"
64
+ invisible="tax_framework != '3'"
65
65
  >
66
66
  <group>
67
67
  <field
68
68
  name="profit_calculation"
69
- attrs="{'required': [('tax_framework', '=', '3')]}"
69
+ required="tax_framework == '3'"
70
70
  />
71
71
  </group>
72
72
  <group>
73
73
  <field name="is_industry" />
74
74
  <field
75
75
  name="industry_type"
76
- attrs="{'invisible': [('is_industry', '=', False)], 'required': [('is_industry', '=', True)]}"
76
+ invisible="not is_industry"
77
+ required="is_industry"
77
78
  />
78
79
  </group>
79
80
  </group>
@@ -84,7 +85,7 @@
84
85
  <field
85
86
  name="piscofins_id"
86
87
  required="1"
87
- domain="{'3': [('piscofins_type', '=', 'company'), ('id', '!=', %(l10n_br_fiscal.tax_pis_cofins_simples_nacional)d)]}.get(tax_framework, [('piscofins_type', '=', 'company'), ('id', '=', %(l10n_br_fiscal.tax_pis_cofins_simples_nacional)d)])"
88
+ domain="[ ('piscofins_type', '=', 'company'), '|', '&amp;', ('parent.tax_framework', '=', 3), ('id', '!=', %(l10n_br_fiscal.tax_pis_cofins_simples_nacional)d), '&amp;', ('parent.tax_framework', '!=', 3), ('id', '=', %(l10n_br_fiscal.tax_pis_cofins_simples_nacional)d) ]"
88
89
  options="{'no_create': True, 'no_create_edit': True}"
89
90
  />
90
91
  <field name="tax_pis_wh_id" />
@@ -93,29 +94,33 @@
93
94
  <group name="ipi_taxes" string="IPI">
94
95
  <field
95
96
  name="ripi"
96
- attrs="{'invisible': [('tax_framework', '!=', '3')]}"
97
+ invisible="tax_framework != '3'"
97
98
  />
98
99
  <field
99
100
  name="tax_ipi_id"
100
- attrs="{'invisible': [('tax_framework', '=', '3'), ('ripi', '=', True)], 'required': [('tax_framework', '!=', '3')]}"
101
- domain="{'3': [('id', '!=', %(l10n_br_fiscal.tax_ipi_outros)d), ('tax_group_id', '=', %(l10n_br_fiscal.tax_group_ipi)d)]}.get(tax_framework, [('id', '=', %(l10n_br_fiscal.tax_ipi_outros)d)])"
101
+ invisible="tax_framework == '3' and ripi"
102
+ required="tax_framework != '3'"
103
+ domain="['|', '&amp;', ('parent.tax_framework', '=', 3), '&amp;', ('id', '!=', %(l10n_br_fiscal.tax_ipi_outros)d), ('tax_group_id', '=', %(l10n_br_fiscal.tax_group_ipi)d), '&amp;', ('parent.tax_framework', '!=', 3), ('id', '=', %(l10n_br_fiscal.tax_ipi_outros)d) ]"
104
+ options="{'no_create': True, 'no_create_edit': True}"
102
105
  />
103
106
  <div
104
107
  class="text-muted"
105
108
  colspan="2"
106
- attrs="{'invisible': [('ripi', '=', False)]}"
109
+ invisible="not ripi"
107
110
  >IPI tax will be calculed by Product NCM and Fiscal Operation.</div>
108
111
  </group>
109
112
  <group name="icms_taxes" string="ICMS">
110
113
  <field
111
114
  name="tax_icms_id"
112
- attrs="{'invisible': [('tax_framework', '=', '3')], 'required': [('tax_framework', 'in', ('1', '2'))]}"
113
- domain="{'3': [('tax_group_id', '=', %(l10n_br_fiscal.tax_group_icms)d)]}.get(tax_framework, [('tax_group_id', '=', %(l10n_br_fiscal.tax_group_icmssn)d)])"
115
+ invisible="tax_framework == '3'"
116
+ required="tax_framework in ('1', '2')"
117
+ domain="['|', '&amp;', ('parent.tax_framework', '=', 3), ('tax_group_id', '=', %(l10n_br_fiscal.tax_group_icms)d), '&amp;', ('parent.tax_framework', '!=', 3), ('tax_group_id', '=', %(l10n_br_fiscal.tax_group_icmssn)d) ]"
114
118
  options="{'no_create': True, 'no_create_edit': True}"
115
119
  />
116
120
  <field
117
121
  name="icms_regulation_id"
118
- attrs="{'invisible': [('tax_framework', '!=', '3')], 'required': [('tax_framework', '=', '3')]}"
122
+ invisible="tax_framework != '3'"
123
+ required="tax_framework == '3'"
119
124
  options="{'no_create': True, 'no_create_edit': True}"
120
125
  />
121
126
  </group>
@@ -6,23 +6,18 @@
6
6
  <field name="priority" eval="40" />
7
7
  <field name="inherit_id" ref="base.res_config_settings_view_form" />
8
8
  <field name="arch" type="xml">
9
- <xpath expr="//div[hasclass('settings')]" position="inside">
10
- <div
9
+ <xpath expr="//form" position="inside">
10
+ <app
11
11
  id="l10n_br_fiscal"
12
- class="app_settings_block"
13
12
  data-string="l10n_br_fiscal"
14
13
  string="Fiscal"
15
- data-key="l10n_br_fiscal"
14
+ name="l10n_br_fiscal"
16
15
  groups="l10n_br_fiscal.group_manager"
17
16
  >
18
- <h2>Geral</h2>
19
- <div class="row mt16 o_settings_container">
20
- <div class="col-12 col-lg-6 o_setting_box">
21
- <div class="o_setting_left_pane">
22
- <field name="ibpt_api" />
23
- </div>
24
- <div class="o_setting_right_pane" id="ibpt_api_settings">
25
- <label for="ibpt_api" />
17
+ <block title="Geral" name="general">
18
+ <setting>
19
+ <field name="ibpt_api" />
20
+ <div class="content-group" id="ibpt_api_settings">
26
21
  <span
27
22
  class="fa fa-lg fa-building-o"
28
23
  title="Values set here are company-specific."
@@ -30,7 +25,7 @@
30
25
  <div
31
26
  class="text-muted"
32
27
  >Use IBPT API to Update Estimate Taxes for products and services</div>
33
- <div attrs="{'invisible': [('ibpt_api', '=', False)]}">
28
+ <div invisible="not ibpt_api">
34
29
  <div class="content-group mt16">
35
30
  <label
36
31
  for="ibpt_update_days"
@@ -38,14 +33,11 @@
38
33
  />
39
34
  <field
40
35
  name="ibpt_update_days"
41
- attrs="{'required': [('ibpt_api', '=', True)]}"
36
+ required="ibpt_api"
42
37
  />dias</div>
43
38
  <div class="content-group mt16">
44
39
  <label for="ibpt_token" class="o_light_label" />
45
- <field
46
- name="ibpt_token"
47
- attrs="{'required': [('ibpt_api', '=', True)]}"
48
- />
40
+ <field name="ibpt_token" required="ibpt_api" />
49
41
  </div>
50
42
  <div>
51
43
  <a
@@ -59,89 +51,36 @@
59
51
  </div>
60
52
  </div>
61
53
  </div>
62
- </div>
63
- <div
54
+ </setting>
55
+ <setting
64
56
  id="settings_delivery_costs"
65
- class="col-12 col-lg-6 o_setting_box"
66
57
  title="The Delivery Costs should be informed by Line or by Total ?"
58
+ help="Define if Delivery Costs (Freight, Insurance and Other Costs) should be informed by Line or by Total"
67
59
  >
68
- <div class="o_setting_right_pane">
69
- <label for="delivery_costs" />
70
- <div
71
- class="text-muted"
72
- >Define if Delivery Costs (Freight, Insurance and Other Costs) should be informed by Line or by Total</div>
73
- <div class="content-group">
74
- <div class="mt16">
75
- <field
76
- name="delivery_costs"
77
- class="o_light_label"
78
- widget="radio"
79
- />
80
- </div>
81
- </div>
82
- </div>
83
- </div>
84
- </div>
85
- <h2>Fiscal Documents</h2>
86
- <div class="row mt16 o_settings_container">
87
- <div class="col-12 col-lg-6 o_setting_box">
88
- <div class="o_setting_left_pane">
89
- <field name="module_l10n_br_nfe" />
90
- </div>
91
- <div
92
- class="o_setting_right_pane"
93
- id="module_l10n_br_nfe_settings"
94
- >
95
- <label for="module_l10n_br_nfe" />
96
- <div
97
- class="text-muted"
98
- >Create Brazilian eletronic invoice NF-e.</div>
99
- </div>
100
- </div>
101
- <div class="col-12 col-lg-6 o_setting_box">
102
- <div class="o_setting_left_pane">
103
- <field name="module_l10n_br_mdfe" />
104
- </div>
105
- <div
106
- class="o_setting_right_pane"
107
- id="module_l10n_br_mdfe_settings"
108
- >
109
- <label for="module_l10n_br_mdfe" />
110
- <div
111
- class="text-muted"
112
- >Create Brazilian eletronic invoice NF-e manifest.</div>
113
- </div>
114
- </div>
115
- <div class="col-12 col-lg-6 o_setting_box">
116
- <div class="o_setting_left_pane">
117
- <field name="module_l10n_br_nfse" />
118
- </div>
119
- <div
120
- class="o_setting_right_pane"
121
- id="module_l10n_br_nfse_settings"
122
- >
123
- <label for="module_l10n_br_nfse" />
124
- <div
125
- class="text-muted"
126
- >Create Brazilian eletronic invoice for services NFS-e.</div>
127
- </div>
128
- </div>
129
- <div class="col-12 col-lg-6 o_setting_box">
130
- <div class="o_setting_left_pane">
131
- <field name="module_l10n_br_cte" />
132
- </div>
133
- <div
134
- class="o_setting_right_pane"
135
- id="module_l10n_br_cte_settings"
136
- >
137
- <label for="module_l10n_br_cte" />
138
- <div
139
- class="text-muted"
140
- >Create Brazilian eletronic invoice for freight NFS-e.</div>
141
- </div>
142
- </div>
143
- </div>
144
- </div>
60
+ <field name="delivery_costs" widget="radio" />
61
+ </setting>
62
+ </block>
63
+ <block title="Fiscal Documents" name="fiscal_documents">
64
+ <setting help="Create Brazilian eletronic invoice NF-e.">
65
+ <field name="module_l10n_br_nfe" />
66
+ </setting>
67
+ <setting
68
+ help="Create Brazilian eletronic invoice NF-e manifest."
69
+ >
70
+ <field name="module_l10n_br_mdfe" />
71
+ </setting>
72
+ <setting
73
+ help="Create Brazilian eletronic invoice for services NFS-e."
74
+ >
75
+ <field name="module_l10n_br_nfse" />
76
+ </setting>
77
+ <setting
78
+ help="Create Brazilian eletronic invoice for freight NFS-e."
79
+ >
80
+ <field name="module_l10n_br_cte" />
81
+ </setting>
82
+ </block>
83
+ </app>
145
84
  </xpath>
146
85
  </field>
147
86
  </record>
@@ -16,17 +16,17 @@
16
16
  <field
17
17
  name="ind_ie_dest"
18
18
  force_save="1"
19
- attrs="{'readonly': [('fiscal_profile_id', '!=', False)]}"
19
+ readonly="fiscal_profile_id"
20
20
  />
21
21
  <field
22
22
  name="tax_framework"
23
23
  force_save="1"
24
- attrs="{'readonly': [('fiscal_profile_id', '!=', False)]}"
24
+ readonly="fiscal_profile_id"
25
25
  />
26
26
  <field
27
27
  name="is_public_entity"
28
28
  force_save="1"
29
- attrs="{'readonly': [('fiscal_profile_id', '!=', False)]}"
29
+ readonly="fiscal_profile_id"
30
30
  />
31
31
  <field
32
32
  name="legal_nature_id"
@@ -22,7 +22,6 @@
22
22
  <record id="service_type_tree" model="ir.ui.view">
23
23
  <field name="name">l10n_br_fiscal.service.type.tree</field>
24
24
  <field name="model">l10n_br_fiscal.service.type</field>
25
- <field name="field_parent">children_ids</field>
26
25
  <field name="arch" type="xml">
27
26
  <tree>
28
27
  <field name="code" />
@@ -80,8 +79,8 @@
80
79
  id="product_tmpl_button"
81
80
  icon="fa-bars"
82
81
  name="%(product.product_template_action_all)d"
83
- context="{'search_default_service_type_id': active_id}"
84
- attrs="{'invisible': [('product_tmpl_qty', '=', 0)]}"
82
+ context="{'search_default_service_type_id': id}"
83
+ invisible="product_tmpl_qty == 0"
85
84
  >
86
85
  <field
87
86
  string="Products"