Hello guys, can you help me with the creation of a field?
Well, I need to create the company_id field with the dependency of the model res.config.settings, it turns out that I have already created it in the normal way, in a perhaps more complete way, but even so it still gives me the error message below ... does anyone know how to create this field? Thanks :)
I created it this way: company_id = fields.Many2one('res.company', string='Company')
And also like this, according to a search I did: company_id = fields.Many2one(
'res.company',
string='Company',
required=True,
default=lambda self: self.env.company.id
)
But it didn't work...