解决单个制造的bug
This commit is contained in:
@@ -43,6 +43,8 @@ class SaleOrder(models.Model):
|
|||||||
|
|
||||||
# 复制成品模板上的属性
|
# 复制成品模板上的属性
|
||||||
line.product_id.product_tmpl_id.copy_template(product_template_id)
|
line.product_id.product_tmpl_id.copy_template(product_template_id)
|
||||||
|
# 将模板上的single_manufacturing属性复制到成品上
|
||||||
|
line.product_id.single_manufacturing = product_template_id.single_manufacturing
|
||||||
|
|
||||||
order_id = self
|
order_id = self
|
||||||
product = line.product_id
|
product = line.product_id
|
||||||
|
|||||||
@@ -884,7 +884,7 @@ class ResProductMo(models.Model):
|
|||||||
'model_process_parameters_ids': [(6, 0, [])] if not item.get(
|
'model_process_parameters_ids': [(6, 0, [])] if not item.get(
|
||||||
'process_parameters_code') else self.get_process_parameters_id(item['process_parameters_code']),
|
'process_parameters_code') else self.get_process_parameters_id(item['process_parameters_code']),
|
||||||
'model_remark': item['remark'],
|
'model_remark': item['remark'],
|
||||||
'single_manufacturing': False,
|
'single_manufacturing': True,
|
||||||
'default_code': '%s-%s' % (order_number, i),
|
'default_code': '%s-%s' % (order_number, i),
|
||||||
'manual_quotation': item['manual_quotation'] or False,
|
'manual_quotation': item['manual_quotation'] or False,
|
||||||
'part_number': item.get('part_number') or '',
|
'part_number': item.get('part_number') or '',
|
||||||
|
|||||||
Reference in New Issue
Block a user