[IMP] useability, hide fields on partners when not used
bzr revid: fp@tinyerp.com-20120813143731-8omk52y879rgbjc1
This commit is contained in:
parent
6ce8b7cf04
commit
b79db6f0b3
|
@ -57,6 +57,28 @@
|
|||
</field>
|
||||
</record>
|
||||
|
||||
<record id="res_partner_address_type" model="ir.ui.view">
|
||||
<field name="name">res.partner.view.address_type</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//label[@for='type']" position="attributes">
|
||||
<attribute name="groups">sale.group_delivery_invoice_address</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//label[@for='type']" position="attributes">
|
||||
<attribute name="invisible">False</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='div_type']" position="attributes">
|
||||
<attribute name="invisible">False</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='div_type']" position="attributes">
|
||||
<attribute name="groups">sale.group_delivery_invoice_address</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
||||
|
|
Loading…
Reference in New Issue