[IMP] Added Company_id to res.partner

bzr revid: jvo@tinyerp.com-20091125061857-xgmqjbruxisnnckw
This commit is contained in:
Jay (Open ERP)
2009-11-25 11:48:57 +05:30
parent 4f5cd404eb
commit e17bd86098
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -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">