Skip to content

Commit

Permalink
[FIX] l10n_br_cte: fix fiscal document form view
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelsavegnago committed Nov 21, 2024
1 parent edceacd commit 7caaf51
Showing 1 changed file with 43 additions and 10 deletions.
53 changes: 43 additions & 10 deletions l10n_br_cte/views/document.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,26 @@
>[('document_type_id.code', 'in', ['57', '08', '09', '10', '11', '26', '67', '8B'])]</attribute>
</xpath>
<field name="document_serie_id" position="after">
<field name="service_provider" />
<field name="cte40_tpServ" />
<field name="cte40_tpPer" />
<field name="cte40_dProg" />
<field name="cte40_tpHor" />
<field
name="service_provider"
attrs="{'invisible': [('document_type', 'not in', ['57'])]}"
/>
<field
name="cte40_tpServ"
attrs="{'invisible': [('document_type', 'not in', ['57'])]}"
/>
<field
name="cte40_tpPer"
attrs="{'invisible': [('document_type', 'not in', ['57'])]}"
/>
<field
name="cte40_dProg"
attrs="{'invisible': [('document_type', 'not in', ['57'])]}"
/>
<field
name="cte40_tpHor"
attrs="{'invisible': [('document_type', 'not in', ['57'])]}"
/>
</field>
<field name="partner_shipping_id" position="before"> <!--cte40_dest-->
<field name="partner_sendering_id" /> <!--cte40_rem-->
Expand All @@ -35,8 +50,15 @@
<field name="partner_receivering_id" /> <!--cte40_receb-->
</field>
<page name="delivery" position="inside">
<separator name="cargo_infos_sep" string="Cargo Infos" />
<group name="cargo_infos">
<separator
name="cargo_infos_sep"
string="Cargo Infos"
attrs="{'invisible': [('document_type', 'not in', ['57'])]}"
/>
<group
name="cargo_infos"
attrs="{'invisible': [('document_type', 'not in', ['57'])]}"
>
<field name="cte40_vCarga" />
<field name="cte40_proPred" />
<field name="cte40_xOutCat" />
Expand All @@ -59,9 +81,16 @@
<separator
name="transported_vehicles_infos_sep"
string="Transported Vehicles"
attrs="{'invisible': [('document_type', 'not in', ['57'])]}"
/>
<group name="transported_vehicles_infos">
<field name="cte40_veicNovos">
<group
name="transported_vehicles_infos"
attrs="{'invisible': [('document_type', 'not in', ['57'])]}"
>
<field
name="cte40_veicNovos"
attrs="{'invisible': [('document_type', 'not in', ['57'])]}"
>
<tree>
<field name="cte40_chassi" />
<field name="cte40_cCor" />
Expand All @@ -84,7 +113,11 @@
</group>
</page>
<page name="delivery" position="after">
<page string="Modais" name="modais">
<page
string="Modais"
name="modais"
attrs="{'invisible': [('document_type', 'not in', ['57'])]}"
>
<group>
<field name="transport_modal" widget="radio" />
</group>
Expand Down

0 comments on commit 7caaf51

Please sign in to comment.