[IMP]change res_partner view
bzr revid: kjo@tinyerp.com-20120629134739-1sbzv733y3i755qq
This commit is contained in:
parent
3927e5e636
commit
f6c543f2e6
|
@ -151,7 +151,7 @@ class res_partner(osv.osv):
|
|||
'customer': fields.boolean('Customer', help="Check this box if the partner is a customer."),
|
||||
'supplier': fields.boolean('Supplier', help="Check this box if the partner is a supplier. If it's not checked, purchase people will not see it when encoding a purchase order."),
|
||||
'employee': fields.boolean('Employee', help="Check this box if the partner is an Employee."),
|
||||
'function': fields.char('Function', size=128),
|
||||
'function': fields.char('Job Position', size=128),
|
||||
'type': fields.selection( [('default','Default'),('invoice','Invoice'),
|
||||
('delivery','Delivery'), ('contact','Contact'),
|
||||
('other','Other')],
|
||||
|
|
|
@ -113,22 +113,17 @@
|
|||
<h1>
|
||||
<field name="name"/>
|
||||
</h1>
|
||||
<div attrs="{'invisible': [('is_company','=', True)]}">
|
||||
<label for="parent_id" class="oe_edit_only"/>
|
||||
</div>
|
||||
<h2 attrs="{'invisible': [('is_company','=', True)]}">
|
||||
<label for="parent_id" class="oe_edit_only oe_inline"/>
|
||||
|
||||
<field name="parent_id"
|
||||
domain="[('is_company', '=', True)]" context="{'default_is_company': True}"
|
||||
class="oe_inline"
|
||||
on_change="onchange_address(use_parent_address, parent_id)"/>,
|
||||
|
||||
</h2>
|
||||
<div attrs="{'invisible' : [('is_company', '=', True)]}">
|
||||
<label for="function" class="oe_edit_only" />
|
||||
</div>
|
||||
<h2 attrs="{'invisible' : [('is_company', '=', True)]}">
|
||||
<label for="function" class="oe_inline oe_edit_only" />
|
||||
<field name="function" class="oe_inline" placeholder="Job Position"/>
|
||||
</h2>
|
||||
|
||||
<field name="category_id" widget="many2many_tags" placeholder="Tags..."/>
|
||||
</div>
|
||||
|
||||
|
@ -226,6 +221,8 @@
|
|||
<group>
|
||||
<field name="user_id" />
|
||||
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="ref"/>
|
||||
<field name="lang"/>
|
||||
<field name="date"/>
|
||||
|
|
Loading…
Reference in New Issue