We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77c46df + 931fdad commit 9eac3e3Copy full SHA for 9eac3e3
ddmrp/models/stock_buffer.py
@@ -1036,7 +1036,7 @@ def _compute_product_vendor_code(self):
1036
continue
1037
supplier_info = rec._get_product_sellers().filtered(
1038
lambda r: r.partner_id == rec.main_supplier_id # noqa: B023
1039
- and r.product_id == rec.product_id # noqa: B023
+ and (not r.product_id or r.product_id == rec.product_id) # noqa: B023
1040
)
1041
rec.product_vendor_code = fields.first(supplier_info).product_code
1042
0 commit comments