Skip to content
Snippets Groups Projects
Commit a6114ac3 authored by Joren Van Onder's avatar Joren Van Onder Committed by amoyaux
Browse files

[IMP] sale: remove unused variable

parent 0c8e18eb
Branches
Tags
No related merge requests found
......@@ -824,11 +824,8 @@ class SaleOrderLine(models.Model):
@api.multi
def write(self, values):
lines = False
if 'product_uom_qty' in values:
precision = self.env['decimal.precision'].precision_get('Product Unit of Measure')
lines = self.filtered(
lambda r: r.state == 'sale' and float_compare(r.product_uom_qty, values['product_uom_qty'], precision_digits=precision) == -1)
self.filtered(
lambda r: r.state == 'sale' and float_compare(r.product_uom_qty, values['product_uom_qty'], precision_digits=precision) != 0)._update_line_quantity(values)
result = super(SaleOrderLine, self).write(values)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment