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.
53 lines
2.5 KiB
53 lines
2.5 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Inheriting view account move form -->
|
|
<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="show_signature" invisible="1"/>
|
|
<field name="show_sign_bill" invisible="1"/>
|
|
<page string="Digital Signature"
|
|
attrs="{'invisible': ['|', ('show_signature','=',False),
|
|
('move_type', '!=', 'out_invoice')]}">
|
|
<group>
|
|
<field name="enable_others" invisible="1"/>
|
|
<field name="digital_sign"/>
|
|
<field name="sign_by"
|
|
attrs="{'invisible': [
|
|
('enable_others','=',False)]}"/>
|
|
<field name="designation"
|
|
attrs="{'invisible': [
|
|
('enable_others','=',False)]}"/>
|
|
<field name="sign_on"
|
|
attrs="{'invisible': [
|
|
('enable_others','=',False)]}"/>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
<xpath expr="//page[@id='invoice_tab']" position="after">
|
|
<field name="show_signature" invisible="1"/>
|
|
<page string="Digital Signature"
|
|
attrs="{'invisible': ['|', ('show_signature','=',False),
|
|
('move_type', '!=', 'in_invoice')]}">
|
|
<group>
|
|
<field name="enable_others" invisible="1"/>
|
|
<field name="digital_sign"/>
|
|
<field name="sign_by"
|
|
attrs="{'invisible': [
|
|
('enable_others','=',False)]}"/>
|
|
<field name="designation"
|
|
attrs="{'invisible': [
|
|
('enable_others','=',False)]}"/>
|
|
<field name="sign_on"
|
|
attrs="{'invisible': [
|
|
('enable_others','=',False)]}"/>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|