0
5 答案
0
最佳答案
Field company_id Get default company
company_id = fields.Many2one('res.company', string='Company',default=lambda self: self.env.company)
0
最佳答案
I am having the same problem, no matter which of the suggested variables I use, I get the default company regardless of which one I use. I am trying to use it in an inherited view of Web Layout... I don't know if it has anything to do? I am suspecting that maybe it is because that modules load before the rest?
@Daniel Jove. Any solution up to now?
try with
self.env.company
self.env.company worked for me