0
1 答案
0
最佳答案
So this can be done with an automated action with executing a Python code:
try:
if record.stage_id and record.sale_line_id and record.sale_line_id.product_id:
if record.stage_id.name == "Done" and record.sale_line_id.qty_delivered == 0:
qty = record.sale_line_id.product_uom_qty
record.sale_line_id['qty_delivered'] = qty
except:
pass