Hello,
I have a custom field value that doesn't change, even if I set a fixed value:
def set_support(self):
self.id_selected_support = 3
_logger.info(self.id_selected_support)
When the method is called, the logger show me 0, instead of 3.
This custom field is set on sale.order.line model. So, when I create a new sale.order, no sale.order.line is currently stored on DB. I cannot write.
This method is called from another model. I have multiple lines in a Many2many field, and when a checkbox is updated in one of these lines, it calls the set_support method of sale.order.line.
What could be the problem ?
what is the field type
The field type is Integer