[FIX] website: Default company of website model
Default website.company_id to base.main_company instead of base.public_user base.public_user being a `res.users` and not a `res.company` Closes #8236
This commit is contained in:
parent
ca47d4117f
commit
74711efa0a
|
@ -172,7 +172,7 @@ class website(osv.osv):
|
|||
}
|
||||
|
||||
_defaults = {
|
||||
'company_id': lambda self,cr,uid,c: self.pool['ir.model.data'].xmlid_to_res_id(cr, openerp.SUPERUSER_ID, 'base.public_user'),
|
||||
'company_id': lambda self,cr,uid,c: self.pool['ir.model.data'].xmlid_to_res_id(cr, openerp.SUPERUSER_ID, 'base.main_company'),
|
||||
}
|
||||
|
||||
# cf. Wizard hack in website_views.xml
|
||||
|
|
Loading…
Reference in New Issue