Pb with custom fields


I added a custom field into saleOrder model.
It is an InlineCheckbox.
The field appears into form and grid.
I can check and uncheck box, save it.

But the value stay “undefined” , field check or not.
Do you know how to solve it?

Best regards,

For my point of view, custom fields are not a good idea, just because in case of view update you will lost any changes.
It’s the reason why it’s better to create your own module and add it to your solutions to make your changes more resistive (as https://docs.axelor.com/adk/5.2/dev-guide/views/extensions.html)

I need only one more field on saleorder model. And it is a boolean field.
I think it is in “Expression de valeur” we can change value of the field, but I tried with only “true”, and the checkbox stay cheched, but the value is still “undefined”.
Obviously, same result with “false”.

I tried an other solution : i created a second fields (B), and an action-attrs. When fields A is changed, action is called, and attribute is changed (cf: https://docs.axelor.com/adk/5.2/dev-guide/actions/action-attrs.html).
But value stay “undefined”… I tried with boolean, integer and string, same result.