Browse Source
merged lp:~therp-nl/partner-contact-management/7.0-base_partner_sequence_commercial_partner
pull/2/head
merged lp:~therp-nl/partner-contact-management/7.0-base_partner_sequence_commercial_partner
pull/2/head
Thomas Rehn
11 years ago
3 changed files with 45 additions and 9 deletions
-
15base_partner_sequence/__openerp__.py
-
19base_partner_sequence/partner.py
-
20base_partner_sequence/partner_view.xml
@ -0,0 +1,20 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="view_partner_form" model="ir.ui.view"> |
|||
<field name="name">Make partner reference readonly when non-commercial</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_partner_form"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="ref" position="attributes"> |
|||
<attribute name="attrs">{ |
|||
'readonly': [('is_company', '=', False), |
|||
('parent_id', '!=', False)]}</attribute> |
|||
</field> |
|||
</field> |
|||
|
|||
</record> |
|||
</data> |
|||
</openerp> |
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue