Hello everyone,
In Odoo 12 we can directly access company model data on field definition like for instance:
my_field = fields.Char('Test field', default=lambda self: self.env.user.company_id.my_field)
This way we have access to desired values set on company model.
What about if I want to directly access values on "ir_config_parameters" (not on the res_company model) from field definition?
Something like:
my_field = fields.Char(default=lambda self: direct_access_to_ir_config_parameters_here)
Thank you all in advance
Best regards
PM