I want get value in Default invoicing(default_invoicing_policy) in sales settings(sale.config.settings).
I tried get_default but its returning a none value
My code :
class MyTestClass(models.Model):
_inherit = 'sale.order'
@api.multi
def my_method(self):
res = super(MyTestClass, self).my_method()
ir_values = self.env['ir.values']
def_inv = ir_values.get_default('sale.config.settings', 'default_invoice_policy')
print def_inv
return res
here it is printing none.