Stefan Rijnhart
11 years ago
committed by
mostafaala2
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