[FIX] shopfloor: Allow to manage supplierinfos on product templates - #989
rousseldenis wants to merge 2 commits into
Conversation
| rec.seller_ids.filtered(lambda x: x.product_id == rec) | ||
| rec.seller_ids.filtered( | ||
| lambda x: x.product_id == rec | ||
| or x.product_tmpl_id == rec.product_tmpl_id |
There was a problem hiding this comment.
| or x.product_tmpl_id == rec.product_tmpl_id | |
| or (x.product_tmpl_id == rec.product_tmpl_id and not x.product_id) |
| [("product_id", "=", record.id)] | ||
| [ | ||
| "|", | ||
| ("product_tmpl_id", "=", record.product_tmpl_id.id), |
There was a problem hiding this comment.
| ("product_tmpl_id", "=", record.product_tmpl_id.id), | |
| "&", | |
| ("product_tmpl_id", "=", record.product_tmpl_id.id), | |
| ("product_id", "=", False), |
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
|
@rousseldenis Can you have a look at the comments? |
f8025d1 to
fb590d9
Compare
|
@jbaudoux Done |
| rec.seller_ids.filtered(lambda x: x.product_id == rec) | ||
| rec.seller_ids.filtered( | ||
| lambda x: x.product_id == rec | ||
| or (x.product_tmpl_id == rec.product_tmpl_id) |
There was a problem hiding this comment.
Isn't it missing a domain to exclude other variants?
| or (x.product_tmpl_id == rec.product_tmpl_id) | |
| or (x.product_tmpl_id == rec.product_tmpl_id and not x.product_id) |
| supplier_info = product.seller_ids.filtered(lambda x: x.product_id == product) | ||
| supplier_info = product.seller_ids.filtered( | ||
| lambda x: x.product_id == product | ||
| or (x.product_tmpl_id == product.product_tmpl_id) |
There was a problem hiding this comment.
Does it makes sens to copy in test the same method that is tested?
There was a problem hiding this comment.
I don't know, I've just adapted test method accordingly
|
ping @rousseldenis |
fb590d9 to
79d1390
Compare
No description provided.