Files

33 lines
1.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="view_account_form_l10n_mx_reports" model="ir.ui.view">
<field name="name">account.account.form.inherit.l10n_mx_reports</field>
<field name="model">account.account</field>
<field name="inherit_id" ref="account.view_account_form"/>
<field name="arch" type="xml">
<xpath expr="//sheet" position="before">
<field name="l10n_mx_is_sat_invalid" invisible="1"/>
<div class="alert alert-warning mb-0" role="alert" invisible="l10n_mx_is_sat_invalid == False">
Warning: this account doesn't follow Odoo's account guidelines.
Check <a href="https://www.odoo.com/documentation/latest/applications/finance/fiscal_localizations/mexico.html#chart-of-accounts">
the documentation</a> for more details.
</div>
</xpath>
</field>
</record>
<record id="view_account_list" model="ir.ui.view">
<field name="name">account.account.list.inherit.l10n_mx_reports</field>
<field name="model">account.account</field>
<field name="inherit_id" ref="account.view_account_list"/>
<field name="arch" type="xml">
<field name="code" position="before">
<field name="l10n_mx_is_sat_invalid" column_invisible="1"/>
</field>
<field name="code" position="attributes">
<attribute name="decoration-warning">l10n_mx_is_sat_invalid</attribute>
</field>
</field>
</record>
</odoo>