-
-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0][FIX] product_packaging_level: Preserve sequence order #1518
Conversation
|
||
sequence = fields.Integer(compute="_compute_sequence", store=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not related as the prev field?
Tests fail unrelated on |
|
||
sequence = fields.Integer(compute="_compute_sequence", store=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sequence = fields.Integer(compute="_compute_sequence", store=True) | |
sequence = fields.Integer(compute="_compute_sequence", store=True, readonly=False) |
readonly=False
is need otherwise is not possible to edit the field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to assign readonly=False in sequence field otherwise field value can't be changed in the interface.
Restore original order to prevent altering behavior when packaging is reordered in the view.
(see explanation here : OCA/sale-workflow#2939 )