-
Notifications
You must be signed in to change notification settings - Fork 17
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][MIG] delivery_product_restriction: migration to 16.0 #333
base: 16.0
Are you sure you want to change the base?
Conversation
Signed-off-by: Carmen Bianca Bakker <[email protected]>
call super() instead of re-implementing the default logic, to ensure that other modules can also override it (like delivery_multi_destination, for instance).
80a9395
to
b4d1d2f
Compare
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.
@huguesdk Tested on rotor-v16-test ; I can't get it to work in the backend
- I restricted this product to this carrier
- Yet I can select the carrier on this picking
[edit] In odoo standard, the delivery method is not displayed on the SO, so not sure how to test the behaviour.
@polchampion thanks for the functional test. this module only works in the backend. the behavior has changed between version 12.0 and 16.0:
is this behavior enough or do you think it should behave differently? if you think that it’s ok, i’ll update the readme because i had a hard time understanding again how it is working even though it was i who ported the module. 😅 |
* refactor to use super() as much as possible instead of copying overridden code. * remove default delivery carrier of the delivery wizards if it cannot be used for the sale order.
odoo task
t12912