Accept Merge Request #1975: (feature/tool_standard_library_process -> 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/1975
This commit is contained in:
@@ -289,10 +289,10 @@ class MrpProduction(models.Model):
|
||||
sale_order_name = match.group(0)
|
||||
sale_order = self.env['sale.order'].sudo().search(
|
||||
[('name', '=', sale_order_name)])
|
||||
logging.info("product_name is :%s" % product_name)
|
||||
filtered_order_line = sale_order.order_line.filtered(
|
||||
lambda production: re.search(f'{product_name}$', production.product_id.name)
|
||||
)
|
||||
|
||||
if filtered_order_line:
|
||||
production_id.part_number = filtered_order_line.part_number
|
||||
production_id.part_name = filtered_order_line.part_name
|
||||
|
||||
Reference in New Issue
Block a user