1.修复工件配送向导制造订单号能显示5个
2工件配送向导页面优化 3.生成制造订单同时工件配送默认路线
This commit is contained in:
@@ -85,7 +85,8 @@ class ReSaleOrder(models.Model):
|
||||
self.check_status = 'pending'
|
||||
|
||||
def get_customer(self):
|
||||
partner_tag = self.env['res.partner.category'].sudo().search([('name', '=', '业务平台')], limit=1, order='id asc')
|
||||
partner_tag = self.env['res.partner.category'].sudo().search([('name', '=', '业务平台')], limit=1,
|
||||
order='id asc')
|
||||
if not partner_tag:
|
||||
partner_tag = self.env['res.partner.category'].sudo().create({'name': '平台客户'})
|
||||
customer = self.env['res.partner'].search([('name', '=', '业务平台')], limit=1, order='id asc')
|
||||
@@ -139,9 +140,19 @@ class ResaleOrderLine(models.Model):
|
||||
_inherit = 'sale.order.line'
|
||||
|
||||
model_glb_file = fields.Binary('模型的glb文件')
|
||||
# product_template_id = fields.Many2one(
|
||||
# string="产品",
|
||||
# comodel_name='product.template',
|
||||
# compute='_compute_product_template_id',
|
||||
# readonly=False,
|
||||
# search='_search_product_template_id',
|
||||
# # previously related='product_id.product_tmpl_id'
|
||||
# # not anymore since the field must be considered editable for product configurator logic
|
||||
# # without modifying the related product_id when updated.
|
||||
# domain=[('sale_ok', '=', True), ('categ_type', '=', '成品')])
|
||||
check_status = fields.Selection(related='order_id.check_status')
|
||||
|
||||
@api.onchange('product_id')
|
||||
@api.onchange('product_template_id')
|
||||
def _compute_model_glb_file(self):
|
||||
for line in self:
|
||||
if line.product_template_id:
|
||||
|
||||
Reference in New Issue
Block a user