You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
2.3 KiB
43 lines
2.3 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Inherit account move for adding new fields -->
|
|
<record id="view_move_form" model="ir.ui.view">
|
|
<field name="name">account.move.view.form.inherit.digital.signature</field>
|
|
<field name="model">account.move</field>
|
|
<field name="inherit_id" ref="account.view_move_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//page[@id='invoice_tab']" position="after">
|
|
<field name="is_show_signature" invisible="1"/>
|
|
<page string="Digital Signature"
|
|
invisible="is_show_signature == False or move_type != 'out_invoice'">
|
|
<group>
|
|
<field name="is_enable_others" invisible="1"/>
|
|
<field name="digital_sign" readonly="state != 'draft'"/>
|
|
<field name="sign_by" readonly="state != 'draft'"
|
|
invisible="is_enable_others == False"/>
|
|
<field name="designation" readonly="state != 'draft'"
|
|
invisible="is_enable_others == False"/>
|
|
<field name="sign_on" readonly="state != 'draft'"
|
|
invisible="is_enable_others == False"/>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
<xpath expr="//page[@id='invoice_tab']" position="after">
|
|
<field name="is_show_signature" invisible="1"/>
|
|
<page string="Digital Signature"
|
|
invisible="is_show_signature == False or move_type != 'in_invoice'">
|
|
<group>
|
|
<field name="is_enable_others" invisible="1"/>
|
|
<field name="digital_sign" readonly="state != 'draft'"/>
|
|
<field name="sign_by" readonly="state != 'draft'"
|
|
invisible="is_enable_others == False"/>
|
|
<field name="designation" readonly="state != 'draft'"
|
|
invisible="is_enable_others == False"/>
|
|
<field name="sign_on" readonly="state != 'draft'"
|
|
invisible="is_enable_others == False"/>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|