Accept Merge Request #1762: (feature/customer_supply -> develop)
Merge Request: 隐藏欠单 Created By: @廖丹龙 Reviewed By: @胡尧 Approved By: @胡尧 Accepted By: @胡尧 URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1762#mr-1762-review-218183
This commit is contained in:
@@ -1537,7 +1537,7 @@ class MrpProduction(models.Model):
|
||||
product_id = self.env['product.product'].browse(vals['product_id'])
|
||||
is_self_process = product_id.materials_type_id and product_id.materials_type_id.gain_way and product_id.materials_type_id.gain_way != '自加工'
|
||||
is_customer_provided = product_id.is_customer_provided
|
||||
if not is_custemer_group_id.get(is_customer_provided):
|
||||
if not is_custemer_group_id.get(is_customer_provided) and is_self_process:
|
||||
is_custemer_group_id[is_customer_provided] = self.env["procurement.group"].create({'name': vals.get('name')}).id
|
||||
# if not (is_first_customer or is_first_not_customer) and is_self_process:
|
||||
# is_first = True
|
||||
|
||||
Reference in New Issue
Block a user