sale line price update
This commit is contained in:
parent
74c29ffc45
commit
005bfe16c5
|
|
@ -97,5 +97,7 @@ class SaleOrderLine(models.Model):
|
|||
@api.depends('product_id', 'product_uom', 'product_uom_qty')
|
||||
def _compute_price_unit(self):
|
||||
for line in self:
|
||||
if line.order_id and line.order_id.state == 'sale':
|
||||
continue
|
||||
line.price_unit = 0.0
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue