-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
[10.0][FIX]Fix supplier search for variant #108
Conversation
base_ubl/models/ubl.py
Outdated
@@ -344,7 +344,8 @@ def _ubl_add_item( | |||
if seller: | |||
sellers = self.env['product.supplierinfo'].search([ | |||
('name', '=', seller.id), | |||
('product_tmpl_id', '=', product.product_tmpl_id.id)]) | |||
('product_tmpl_id', '=', product.product_tmpl_id.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.
is there even a need for the template id if you use the variant id?
@tbaden But while investigating I amended this PR since we need to search on product_id when variants are used and product_id when variants are not used. |
Please use this method instead: |
@pedrobaeza |
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.
Code review.
* [10.0][FIX]Fix supplier search for variant * fix flake8 * use _select_seller
* [10.0][FIX]Fix supplier search for variant * fix flake8 * use _select_seller
* [10.0][FIX]Fix supplier search for variant * fix flake8 * use _select_seller
* [10.0][FIX]Fix supplier search for variant * fix flake8 * use _select_seller
* [10.0][FIX]Fix supplier search for variant * fix flake8 * use _select_seller
* [10.0][FIX]Fix supplier search for variant * fix flake8 * use _select_seller
* [10.0][FIX]Fix supplier search for variant * fix flake8 * use _select_seller
* [10.0][FIX]Fix supplier search for variant * fix flake8 * use _select_seller
* [10.0][FIX]Fix supplier search for variant * fix flake8 * use _select_seller
* [10.0][FIX]Fix supplier search for variant * fix flake8 * use _select_seller
* [10.0][FIX]Fix supplier search for variant * fix flake8 * use _select_seller
* [10.0][FIX]Fix supplier search for variant * fix flake8 * use _select_seller
No description provided.