diff --git a/purchase_order_product_recommendation_supermarket/wizards/purchase_order_recommendation.py b/purchase_order_product_recommendation_supermarket/wizards/purchase_order_recommendation.py index b9ac414..e4bfc5f 100644 --- a/purchase_order_product_recommendation_supermarket/wizards/purchase_order_recommendation.py +++ b/purchase_order_product_recommendation_supermarket/wizards/purchase_order_recommendation.py @@ -198,6 +198,13 @@ class PurchaseOrderRecommendationSupermarketWizard(models.TransientModel): res["units_avg_delivered_prev"] = ( found_previous_period[0]["qty_done"] / days if days != 0 else 1 ) + seller = product_id._select_seller( + partner_id=self.order_id.partner_id, + date=fields.Date.today(), + quantity=qty_to_order, + uom_id=product_id.uom_po_id, + ) + res.update(self._prepare_wizard_line_from_seller(res, seller)) return res def action_accept(self):