智能工厂去掉工厂token等信息

This commit is contained in:
jinling.yang
2022-10-14 16:36:45 +08:00
parent 8611e138b3
commit b4aa6b61ed
8 changed files with 43 additions and 48 deletions

View File

@@ -8,8 +8,6 @@ class ReSaleOrder(models.Model):
deadline_of_delivery = fields.Date('交货截止日期')
# product_line_ids = fields.One2many('product.template', 'sale_order_id')
# 业务平台分配工厂后在智能工厂先创建销售订单
def sale_order_create(self, deadline_of_delivery, company_id):
now_time = datetime.datetime.now()
@@ -29,8 +27,7 @@ class ReSaleOrder(models.Model):
vals = {
'order_id': self.id,
'product_id': product.id,
'name': '%s/%s/%s/%s/%s' % (
item['model_long'], item['model_width'], item['model_height'], item['model_volume'], product.materials_id.name),
'name': '%s/%s/%s/%s/%s' % (item['model_long'], item['model_width'], item['model_height'], item['model_volume'], product.materials_id.name),
'price_unit': item['price'],
'product_uom_qty': item['number']
}