Merge branch 'develop' of https://e.coding.net/jikimo-hn/jikimo_sfs/jikimo_sf into feature/表面工艺外协修复
This commit is contained in:
@@ -662,10 +662,10 @@ class ResProductMo(models.Model):
|
||||
# 创建坯料
|
||||
def no_bom_product_create(self, product_id, item, order_id, route_type, i, finish_product):
|
||||
no_bom_copy_product_id = product_id.with_user(self.env.ref("base.user_admin")).copy()
|
||||
if finish_product.model_process_parameters_ids:
|
||||
surface_technology = self.env['stock.rule'].sudo().search([('name', '=', '表面工艺外协')])
|
||||
if surface_technology:
|
||||
no_bom_copy_product_id.route_ids |= surface_technology
|
||||
# if finish_product.model_process_parameters_ids:
|
||||
# surface_technology = self.env['stock.route'].sudo().search([('name', '=', '表面工艺外协')])
|
||||
# if surface_technology:
|
||||
# no_bom_copy_product_id.route_ids |= surface_technology
|
||||
no_bom_copy_product_id.product_tmpl_id.active = True
|
||||
materials_id = self.env['sf.production.materials'].search(
|
||||
[('materials_no', '=', item['texture_code'])])
|
||||
|
||||
Reference in New Issue
Block a user