修复快速订单

This commit is contained in:
jinling.yang
2024-06-17 16:38:14 +08:00
parent 017404fe45
commit 3258b6cc75
2 changed files with 4 additions and 6 deletions

View File

@@ -636,7 +636,7 @@ class ResProductMo(models.Model):
'model_remark': item['remark'],
'default_code': '%s-%s' % (order_number, i),
'manual_quotation': item['manual_quotation'] or False,
'part_number': item['part_number'] or '',
'part_number': item.get('part_number') or '',
'active': True,
}
copy_product_id.sudo().write(vals)