diff --git a/models/sale_intervention.py b/models/sale_intervention.py index b509afc093c6a2b59d0da69c765d9bc263c696a4..e90e6bb8cc4f2571246e9aaa9df245ff2d31005b 100644 --- a/models/sale_intervention.py +++ b/models/sale_intervention.py @@ -551,7 +551,7 @@ class SaleIntervention(models.Model): self.mulch_has_staples = False if self.mulch_unit == self.env.ref( "uom.product_uom_meter" - ) or self.much_unit == self.env.ref("uom.product_uom_cubic_meter"): + ) or self.mulch_unit == self.env.ref("uom.product_uom_cubic_meter"): self.mulch_qty = self.intervention_length elif self.mulch_unit == self.env.ref("uom.product_uom_unit"): self.mulch_qty = self.plant_qty @@ -564,7 +564,7 @@ class SaleIntervention(models.Model): self.mulch2_has_staples = False if self.mulch_unit == self.env.ref( "uom.product_uom_meter" - ) or self.much_unit == self.env.ref("uom.product_uom_cubic_meter"): + ) or self.mulch_unit == self.env.ref("uom.product_uom_cubic_meter"): self.mulch2_qty = self.intervention_length elif self.mulch2_unit == self.env.ref("uom.product_uom_unit"): self.mulch2_qty = self.plant_qty