multicompany fix default res_partner_address.company_id

bzr revid: al@openerp.com-20100318002217-1w71naain7tegsm3
This commit is contained in:
Antony Lesuisse
2010-03-18 01:22:17 +01:00
parent e328055359
commit 939f4652d7
+1
View File
@@ -309,6 +309,7 @@ class res_partner_address(osv.osv):
}
_defaults = {
'active': lambda *a: 1,
'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'res.partner.address', context=c),
}
def name_get(self, cr, user, ids, context={}):