From 77bb82c629d202a1e714647fae4c8233542969ac Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Tue, 17 Sep 2024 21:16:18 +0200 Subject: [PATCH] [IMP] joint_buying_product_food: dlc / dluo / storage method are now propagated from local to global products --- joint_buying_product_food/models/product_product.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/joint_buying_product_food/models/product_product.py b/joint_buying_product_food/models/product_product.py index f58459d0..aafd74e7 100644 --- a/joint_buying_product_food/models/product_product.py +++ b/joint_buying_product_food/models/product_product.py @@ -13,3 +13,14 @@ def _get_report_tour_category(self): will impact order in the joint.buying.tour report""" self.ensure_one() return self.storage_method or "normal" + + def _prepare_joint_buying_product(self, action): + res = super()._prepare_joint_buying_product(action) + res.update( + { + "storage_method": self.storage_method, + "use_by_date_day": self.use_by_date_day, + "best_before_date_day": self.best_before_date_day, + } + ) + return res