41 lines
2.1 KiB
XML
41 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record id="account_move_form_inherit" model="ir.ui.view">
|
|
<field name="name">account.move.form.inherit</field>
|
|
<field name="model">account.move</field>
|
|
<field name="inherit_id" ref="account.view_move_form"/>
|
|
<field name="arch" type="xml">
|
|
<header position="after">
|
|
<div class="m-0" name="warnings" invisible="not l10n_br_avatax_warnings">
|
|
<field name="l10n_br_avatax_warnings" class="o_field_html" widget="actionable_errors"/>
|
|
</div>
|
|
</header>
|
|
<group name="accounting_info_group" position="inside">
|
|
<field name="l10n_br_cnae_code_id"
|
|
invisible="country_code != 'BR' or not l10n_br_is_avatax"
|
|
readonly="state in ['cancel', 'posted']"
|
|
/>
|
|
<field name="l10n_br_use_type"
|
|
invisible="country_code != 'BR' or not l10n_br_is_avatax"
|
|
readonly="state in ['cancel', 'posted']"
|
|
/>
|
|
</group>
|
|
<div name="journal_div" position="after">
|
|
<field name="l10n_br_goods_operation_type_id"
|
|
required="True"
|
|
invisible="country_code != 'BR' or not l10n_br_is_avatax or l10n_br_is_service_transaction"
|
|
readonly="state in ['cancel', 'posted']"
|
|
/>
|
|
</div>
|
|
<xpath expr="//field[@name='invoice_line_ids']/list/field[@name='tax_ids']" position="before">
|
|
<field name="l10n_br_goods_operation_type_id"
|
|
column_invisible="parent.country_code != 'BR' or not parent.l10n_br_is_avatax or parent.l10n_br_is_service_transaction"
|
|
readonly="parent.state in ['cancel', 'posted']"
|
|
/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|