Skip to content
Snippets Groups Projects
Commit 59ac8d89 authored by Florent de Labarre's avatar Florent de Labarre
Browse files

[FIX] stock: bypass optionnal delay description

parent a31c267c
Branches
Tags
No related merge requests found
......@@ -152,7 +152,7 @@ class StockWarehouseOrderpoint(models.Model):
@api.depends('rule_ids', 'product_id.seller_ids', 'product_id.seller_ids.delay')
def _compute_lead_days(self):
for orderpoint in self:
for orderpoint in self.with_context(bypass_delay_description=True):
if not orderpoint.product_id or not orderpoint.location_id:
orderpoint.lead_days_date = False
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment