Skip to content

Commit 12744df

Browse files
[MIG] l10n_br_fiscal: Migration to 17.0 - (res_config_settings_view)
1 parent 48fc156 commit 12744df

File tree

1 file changed

+53
-75
lines changed

1 file changed

+53
-75
lines changed

l10n_br_fiscal/views/res_config_settings_view.xml

Lines changed: 53 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -7,102 +7,80 @@
77
<field name="priority" eval="40" />
88
<field name="inherit_id" ref="base.res_config_settings_view_form" />
99
<field name="arch" type="xml">
10-
<xpath expr="//div[hasclass('settings')]" position="inside">
10+
<xpath expr="//form" position="inside">
1111
<app
1212
id="l10n_br_fiscal"
13+
data-string="l10n_br_fiscal"
1314
string="Fiscal"
14-
data-key="l10n_br_fiscal"
15+
name="l10n_br_fiscal"
1516
groups="l10n_br_fiscal.group_manager"
1617
>
17-
<block title="Geral">
18-
<setting title="IBPT API">
18+
<block title="Geral" name="general">
19+
<setting>
1920
<field name="ibpt_api" />
20-
<span
21-
class="fa fa-lg fa-building-o"
22-
title="Values set here are company-specific."
23-
/>
24-
<div class="text-muted">
25-
Use IBPT API to Update Estimate Taxes for products and services
26-
</div>
27-
<div invisible="ibpt_api == False">
28-
<div class="content-group mt16">
29-
<label
30-
for="ibpt_update_days"
31-
class="o_light_label"
32-
/>
33-
<field
34-
name="ibpt_update_days"
35-
required="ibpt_api == True"
36-
/> dias
37-
</div>
38-
<div class="content-group mt16">
39-
<label for="ibpt_token" class="o_light_label" />
40-
<field
41-
name="ibpt_token"
42-
required="ibpt_api == True"
43-
/>
21+
<div class="content-group" id="ibpt_api_settings">
22+
<span
23+
class="fa fa-lg fa-building-o"
24+
title="Values set here are company-specific."
25+
/>
26+
<div class="text-muted">
27+
Use IBPT API to Update Estimate Taxes for products and services
4428
</div>
45-
<div>
46-
<a
47-
href="https://deolhonoimposto.ibpt.org.br"
48-
class="oe_link"
49-
target="_blank"
50-
>
51-
<i
52-
class="fa fa-arrow-right"
53-
/> Generate an Access Key
54-
</a>
29+
<div invisible="not ibpt_api">
30+
<div class="content-group mt16">
31+
<label
32+
for="ibpt_update_days"
33+
class="o_light_label"
34+
/>
35+
<field
36+
name="ibpt_update_days"
37+
required="ibpt_api"
38+
/> dias
39+
</div>
40+
<div class="content-group mt16">
41+
<label for="ibpt_token" class="o_light_label" />
42+
<field name="ibpt_token" required="ibpt_api" />
43+
</div>
44+
<div>
45+
<a
46+
href="https://deolhonoimposto.ibpt.org.br"
47+
class="oe_link"
48+
target="_blank"
49+
>
50+
<i
51+
class="fa fa-arrow-right"
52+
/> Generate an Access Key
53+
</a>
54+
</div>
5555
</div>
5656
</div>
5757
</setting>
58-
5958
<setting
60-
title="Delivery Costs"
61-
help="The Delivery Costs should be informed by Line or by Total ?"
59+
id="settings_delivery_costs"
60+
title="The Delivery Costs should be informed by Line or by Total ?"
61+
help="Define if Delivery Costs (Freight, Insurance and Other Costs) should be informed by Line or by Total"
6262
>
63-
<label for="delivery_costs" />
64-
<div class="text-muted">
65-
Define if Delivery Costs (Freight, Insurance and Other Costs) should be informed by Line or by Total
66-
</div>
67-
<div class="content-group">
68-
<div class="mt16">
69-
<field
70-
name="delivery_costs"
71-
class="o_light_label"
72-
widget="radio"
73-
/>
74-
</div>
75-
</div>
63+
<field name="delivery_costs" widget="radio" />
7664
</setting>
7765
</block>
78-
79-
<block title="Fiscal Documents">
80-
<setting title="NF-e">
66+
<block title="Fiscal Documents" name="fiscal_documents">
67+
<setting help="Create Brazilian eletronic invoice NF-e.">
8168
<field name="module_l10n_br_nfe" />
82-
<div class="text-muted">
83-
Create Brazilian eletronic invoice NF-e.
84-
</div>
8569
</setting>
86-
87-
<setting title="MDF-e">
70+
<setting
71+
help="Create Brazilian eletronic invoice NF-e manifest."
72+
>
8873
<field name="module_l10n_br_mdfe" />
89-
<div class="text-muted">
90-
Create Brazilian eletronic invoice NF-e manifest.
91-
</div>
9274
</setting>
93-
94-
<setting title="NFS-e">
75+
<setting
76+
help="Create Brazilian eletronic invoice for services NFS-e."
77+
>
9578
<field name="module_l10n_br_nfse" />
96-
<div class="text-muted">
97-
Create Brazilian eletronic invoice for services NFS-e.
98-
</div>
9979
</setting>
100-
101-
<setting title="CT-e">
80+
<setting
81+
help="Create Brazilian eletronic invoice for freight NFS-e."
82+
>
10283
<field name="module_l10n_br_cte" />
103-
<div class="text-muted">
104-
Create Brazilian eletronic invoice for freight NFS-e.
105-
</div>
10684
</setting>
10785
</block>
10886
</app>

0 commit comments

Comments
 (0)