odex25_standard/odex25_takaful/odex_takaful/views/acount_move.xml

36 lines
1.3 KiB
XML

<odoo>
<!-- Inherit form account move view -->
<record id="takaful_account_move_inherit_form" model="ir.ui.view">
<field name="name">takaful.account.move.inherit.form</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_origin']" position="attributes">
<attribute name="attrs">{'invisible': False}</attribute>
</xpath>
<xpath expr="//field[@name='partner_id']" position="after">
<field name="esterdad_id" invisible="1"/>
</xpath>
</field>
</record>
<record id="account_move_view1" model="ir.ui.view">
<field name="name">account.move.inherit.form.attachment</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button string="Cancel Form" name="action_view_esterdad_id" type="object" class="oe_stat_button" icon="fa-money"
attrs="{'invisible': [('esterdad_id', '=', False)]}">
</button>
</xpath>
</field>
</record>
</odoo>