Hi, I'm using odoo 14.
I want to get the value coming from ir.config_parameter. I've made sure the parameter exists by checking in the system parameters directly. However I can't get my parameter value.
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
setting = fields.Boolean(string='Setting')
@api.model
def get_values(self):
res = super(SaleOrderLine, self).get_values()
IrConfigParam = self.env['ir.config_parameter'].sudo()
res.update({
'setting': IrConfigParam.get_param('sale_order_multiple_pricelist', False),
})
return res
I'm confused why the setting field always gets false