From b89ca1e5d884c4de0b8072b453ba1116b3a5ce6b Mon Sep 17 00:00:00 2001 From: luis Date: Tue, 29 Jul 2025 20:31:29 +0200 Subject: [PATCH] purchase_order_product_recommendation_supermarket: refresh price from seller --- .../wizards/purchase_order_recommendation.py | 7 +++++++ 1 file changed, 7 insertions(+) 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):