updata Convert search to a picklist it in detail when the status arrives.
This commit is contained in:
parent
46102bc680
commit
8346e65ed7
|
|
@ -648,10 +648,6 @@ class PurchaseOrderCustom(models.Model):
|
||||||
def _compute_delviery_order(self):
|
def _compute_delviery_order(self):
|
||||||
precision = self.env['decimal.precision'].precision_get('Product Unit of Measure')
|
precision = self.env['decimal.precision'].precision_get('Product Unit of Measure')
|
||||||
for order in self:
|
for order in self:
|
||||||
if order.state not in ('purchase', 'done'):
|
|
||||||
order.state_of_delivery = 'No'
|
|
||||||
continue
|
|
||||||
|
|
||||||
if any(
|
if any(
|
||||||
not float_is_zero(line.product_qty - line.qty_received, precision_digits=precision)
|
not float_is_zero(line.product_qty - line.qty_received, precision_digits=precision)
|
||||||
for line in order.order_line.filtered(lambda l: not l.display_type)
|
for line in order.order_line.filtered(lambda l: not l.display_type)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue