开发
This commit is contained in:
@@ -133,7 +133,8 @@ class ReSaleOrder(models.Model):
|
||||
'product_uom_qty': item['number'],
|
||||
'model_glb_file': base64.b64decode(item['model_file']),
|
||||
'remark': item.get('remark'),
|
||||
'is_incoming_material': item.get('is_incoming_material')
|
||||
'is_incoming_material': item.get('is_incoming_material'),
|
||||
'manual_quotation': item.get('manual_quotation')
|
||||
}
|
||||
return self.env['sale.order.line'].with_context(skip_procurement=True).create(vals)
|
||||
|
||||
@@ -175,6 +176,7 @@ class ResaleOrderLine(models.Model):
|
||||
remark = fields.Char('备注')
|
||||
|
||||
is_incoming_material = fields.Boolean('客供料', default=False)
|
||||
manual_quotation = fields.Boolean('人工编程', default=False)
|
||||
|
||||
@api.depends('product_template_id')
|
||||
def _compute_model_glb_file(self):
|
||||
|
||||
Reference in New Issue
Block a user