[IMP] Added Company_id to res.partner
bzr revid: jvo@tinyerp.com-20091125061857-xgmqjbruxisnnckw
This commit is contained in:
@@ -151,6 +151,7 @@ class res_partner(osv.osv):
|
||||
'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."),
|
||||
'city':fields.related('address','city',type='char', string='City'),
|
||||
'country':fields.related('address','country_id',type='many2one', relation='res.country', string='Country'),
|
||||
'company_id': fields.many2one('res.company', 'Company'),
|
||||
}
|
||||
|
||||
def _default_category(self, cr, uid, context={}):
|
||||
|
||||
@@ -248,6 +248,9 @@
|
||||
<field name="supplier" select="2"/>
|
||||
</group>
|
||||
</group>
|
||||
<group colspan="2" col="1">
|
||||
<field name="company_id"/>
|
||||
</group>
|
||||
<notebook colspan="4">
|
||||
<page string="General">
|
||||
<field colspan="4" mode="form,tree" name="address" nolabel="1" select="1">
|
||||
|
||||
Reference in New Issue
Block a user