Accept Merge Request #1958: (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/1958
This commit is contained in:
@@ -783,7 +783,10 @@ class ReStockMove(models.Model):
|
|||||||
continue
|
continue
|
||||||
production_id = self.env['mrp.production'].sudo().search(
|
production_id = self.env['mrp.production'].sudo().search(
|
||||||
[('name', '=', move.origin)],limit=1)
|
[('name', '=', move.origin)],limit=1)
|
||||||
|
if not production_id:
|
||||||
|
continue
|
||||||
product_name = ''
|
product_name = ''
|
||||||
|
logging.info('制造订单的产品',production_id.product_id.name)
|
||||||
match = re.search(r'(S\d{5}-\d)', production_id.product_id.name)
|
match = re.search(r'(S\d{5}-\d)', production_id.product_id.name)
|
||||||
# 如果匹配成功,提取结果
|
# 如果匹配成功,提取结果
|
||||||
if match:
|
if match:
|
||||||
|
|||||||
Reference in New Issue
Block a user