Skip to content
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

Open
wants to merge 13 commits into
base: 16.0
Choose a base branch
from

Conversation

huguesdk
Copy link
Member

odoo task

t12912

remytms and others added 6 commits October 25, 2024 17:31
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).
@huguesdk huguesdk force-pushed the 16.0-mig-delivery_product_restriction branch from 80a9395 to b4d1d2f Compare October 28, 2024 10:18
Copy link
Member

@polchampion polchampion left a 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

[edit] In odoo standard, the delivery method is not displayed on the SO, so not sure how to test the behaviour.

@huguesdk
Copy link
Member Author

huguesdk commented Dec 11, 2024

@polchampion thanks for the functional test. this module only works in the backend. the behavior has changed between version 12.0 and 16.0:

  • in odoo 12.0, the delivery method (carrier_id) can be directly selected on the sale order form, and this is where the restriction happens.
  • in odoo 16.0 (since odoo 13.0), the selection of the carrier has moved to a wizard that must be opened by clicking on the “add shipping” button at the bottom right of the sale order form, just above the total price. this is where the shipping method is restricted.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants