Use a fresh product instance to find best product supplier

This ensure to be able to read all the product suppliers.

issue8723
review284231002
This commit is contained in:
Cédric Krier
2019-10-24 19:08:07 +02:00
parent 58c436703e
commit 1d901e045b
+3 -1
View File
@@ -115,7 +115,9 @@ class SaleLine(metaclass=PoolMeta):
return move
def _get_purchase_request_product_supplier_pattern(self):
return {}
return {
'company': self.sale.company.id,
}
def get_purchase_request(self):
'Return purchase request for the sale line'