Browse Source
[IMP] Adapt to commercial partners
[IMP] Adapt to commercial partners
[FIX] Replacd call to deprecated methodpull/668/head
Stefan Rijnhart
11 years ago
committed by
Quentin Groulard
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