[IMP]res-partner-imp-server

bzr revid: pna@tinyerp.com-20120705100239-3ajqioc3uzw3q0vb
This commit is contained in:
Pinakin Nayi (OpenERP)
2012-07-05 15:32:39 +05:30
parent aed8bf499e
commit b122108423
2 changed files with 14 additions and 8 deletions
+1 -1
View File
@@ -138,7 +138,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', 'Salesperson', help='The internal user that is in charge of communicating with this partner if any.'),
'user_id': fields.many2one('res.users', 'Salesman', 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"),
+13 -7
View File
@@ -117,11 +117,13 @@
<label for="parent_id" class="oe_edit_only"/>
</div>
<h2 attrs="{'invisible': [('is_company','=', True)]}">
<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)"/>,
<field name="function" class="oe_inline" placeholder="Job Position"/>
<group colspan="4">
<field name="parent_id"
domain="[('is_company', '=', True)]" nolabel="1" context="{'default_is_company': True}"
class="oe_inline"
on_change="onchange_address(use_parent_address, parent_id)"/>,
<field name="function" nolabel="1" class="oe_inline" placeholder="Job Position"/>
</group>
</h2>
<field name="category_id" widget="many2many_tags" placeholder="Tags..."/>
</div>
@@ -220,13 +222,17 @@
<group>
<field name="user_id" />
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
</group>
<group>
<field name="customer"/>
<field name="supplier"/>
</group>
<group>
<field name="ref"/>
<field name="lang"/>
<field name="date"/>
</group>
<group>
<field name="customer"/>
<field name="supplier"/>
<field name="active"/>
</group>
</group>