2
0
account-financial-tools/account_invoice_constraint_chronology/view/account_view.xml
2022-10-06 16:58:24 +02:00

18 lines
878 B
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_account_journal_form" model="ir.ui.view">
<field name="name">account.journal.form (account_constraint_chronology)</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.view_account_journal_form"/>
<field name="arch" type="xml">
<field name="entry_posted" position="after">
<field name="check_chronology" attrs="{'readonly': [('type', 'not in', ['sale', 'purchase', 'sale_refund', 'purchase_refund'])]}"/>
</field>
<xpath expr="//field[@name='type']" position="attributes">
<attribute name="on_change">on_change_type(type)</attribute>
</xpath>
</field>
</record>
</data>
</openerp>