-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
[17.0][MIG] product_main_supplierinfo #1660
base: 17.0
Are you sure you want to change the base?
Conversation
If no specific record are found by the first filter. The Odoo default method will return all active supplier info. Which will include also supplier info record related to other specific variant. With this change if some supplier info related to the product variant exist, they will be returned instead. Also add a sort on the price to have the same behaviour than on a purchase order line for the price selected.
962ec11
to
7c662c7
Compare
Can you review, please? |
Tested on runboat 👍 |
Can you review please? |
if not sellers: | ||
sellers = all_sellers.filtered(lambda s: (s.product_id == self)) | ||
if not sellers: | ||
sellers = sellers = all_sellers.filtered(lambda s: not s.product_id) |
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.
this line is weird, could you explain the use of the duplicate assignation on the same variable?
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.
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.
This looks like a typo, should be IMO
sellers = sellers = all_sellers.filtered(lambda s: not s.product_id) | |
sellers = all_sellers.filtered(lambda s: not s.product_id) |
Also the directory |
7c662c7
to
08a9af4
Compare
Done! Review please @TDu |
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.
LGTM
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.
LGTM, thanks
Standard migration, reused #1353 (Unfinished migration to v16.0)