[FIX] nfu_sale_order_batch_packaging: make open_packaging_qty sortable
This commit is contained in:
parent
ff1202c8d4
commit
8c24525cc4
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ class SaleOrderBatchProduct(models.Model):
|
||||||
def _compute_product_packaging_id(self):
|
def _compute_product_packaging_id(self):
|
||||||
for line in self:
|
for line in self:
|
||||||
# remove packaging if not match the product
|
# remove packaging if not match the product
|
||||||
if line.product_packaging_id.product_id != line.product_id:
|
if line.product_packaging_id and line.product_packaging_id.product_id != line.product_id:
|
||||||
line.product_packaging_id = False
|
line.product_packaging_id = False
|
||||||
# suggest always the first packaging
|
# suggest always the first packaging
|
||||||
if line.product_id and line.product_uom_qty and line.product_uom:
|
if line.product_id and line.product_uom_qty and line.product_uom:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue