[REF] Review the form views
bzr revid: stw@openerp.com-20120618160148-h69gfk1xwzyk97z0
This commit is contained in:
parent
902715ef55
commit
20ce4e4288
|
@ -136,7 +136,7 @@ class res_partner(osv.osv):
|
|||
'child_ids': fields.one2many('res.partner', 'parent_id', 'Contacts'),
|
||||
'ref': fields.char('Reference', size=64, select=1),
|
||||
'lang': fields.selection(_lang_get, 'Language', help="If the selected language is loaded in the system, all documents related to this partner will be printed in this language. If not, it will be english."),
|
||||
'user_id': fields.many2one('res.users', 'Salesman', help='The internal user that is in charge of communicating with this partner if any.'),
|
||||
'user_id': fields.many2one('res.users', 'Salesperson', help='The internal user that is in charge of communicating with this partner if any.'),
|
||||
'vat': fields.char('VAT',size=32 ,help="Value Added Tax number. Check the box if the partner is subjected to the VAT. Used by the VAT legal statement."),
|
||||
'bank_ids': fields.one2many('res.partner.bank', 'partner_id', 'Banks'),
|
||||
'website': fields.char('Website',size=64, help="Website of Partner or Company"),
|
||||
|
|
|
@ -117,10 +117,16 @@
|
|||
<label for="parent_id" class="oe_form_readonly_hidden"/>
|
||||
</div>
|
||||
<h2 attrs="{'invisible': [('is_company','=', True)]}">
|
||||
<field name="parent_id" string="Company"
|
||||
<field name="parent_id"
|
||||
domain="[('is_company', '=', True)]" context="{'default_is_company': True}"
|
||||
class="oe_form_inline"
|
||||
on_change="onchange_address(use_parent_address, parent_id)"/>,
|
||||
|
||||
</h2>
|
||||
<div attrs="{'invisible' : [('is_company', '=', True)]}">
|
||||
<label for="function" class="oe_form_readonly_hidden" />
|
||||
</div>
|
||||
<h2 attrs="{'invisible' : [('is_company', '=', True)]}">
|
||||
<field name="function" class="oe_form_inline" placeholder="Job Position"/>
|
||||
</h2>
|
||||
<field name="category_id" widget="many2many_tags" placeholder="Tags..."/>
|
||||
|
@ -218,16 +224,16 @@
|
|||
<page string="Sales & Purchases" attrs="{'invisible': [('customer', '=', False), ('supplier', '=', False)]}">
|
||||
<group>
|
||||
<group>
|
||||
<field name="lang"/>
|
||||
<field name="user_id"/>
|
||||
<field name="date"/>
|
||||
<field name="user_id" />
|
||||
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
||||
<field name="ref"/>
|
||||
<field name="lang"/>
|
||||
<field name="date"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="customer"/>
|
||||
<field name="supplier"/>
|
||||
<field name="active"/>
|
||||
<field name="ref"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
|
|
Loading…
Reference in New Issue