Skip to content

Commit a4c2c2d

Browse files
committed
Merge PR #569 into 17.0
Signed-off-by LoisRForgeFlow
2 parents d78dc3c + 639f85c commit a4c2c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ddmrp/models/stock_buffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ def _compute_product_vendor_code(self):
10361036
continue
10371037
supplier_info = rec._get_product_sellers().filtered(
10381038
lambda r: r.partner_id == rec.main_supplier_id # noqa: B023
1039-
and r.product_id == rec.product_id # noqa: B023
1039+
and (not r.product_id or r.product_id == rec.product_id) # noqa: B023
10401040
)
10411041
rec.product_vendor_code = fields.first(supplier_info).product_code
10421042

0 commit comments

Comments
 (0)