Skip to content

Commit

Permalink
[IMP] joint_buying_product_food: dlc / dluo / storage method are now …
Browse files Browse the repository at this point in the history
…propagated from local to global products
  • Loading branch information
legalsylvain committed Sep 17, 2024
1 parent 34d6b7d commit df86c30
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions joint_buying_product_food/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@ 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,
}
)

0 comments on commit df86c30

Please sign in to comment.