精度显示修改
This commit is contained in:
@@ -118,12 +118,16 @@ class ReSaleOrder(models.Model):
|
||||
|
||||
# 业务平台分配工厂时在创建完产品后再创建销售明细信息
|
||||
def sale_order_create_line(self, product, item):
|
||||
machining_accuracy_name = ''
|
||||
if product.model_machining_precision:
|
||||
machining_accuracy_name = self.env['sf.machining.accuracy'].sudo().search(
|
||||
[('sync_id', '=', product.model_machining_precision)]).name
|
||||
vals = {
|
||||
'order_id': self.id,
|
||||
'product_id': product.id,
|
||||
'name': '%s/%s/%s/%s/±%s/%s' % (
|
||||
'name': '%s/%s/%s/%s/%s/%s' % (
|
||||
product.model_long, product.model_width, product.model_height, product.model_volume,
|
||||
product.model_machining_precision,
|
||||
machining_accuracy_name,
|
||||
product.materials_id.name),
|
||||
'price_unit': product.list_price,
|
||||
'product_uom_qty': item['number'],
|
||||
|
||||
Reference in New Issue
Block a user