1、处理 sf-制造订单-通过质量检查对装夹预调进行返工-制造订单未记录检测结果 问题;2、处理 手动创建调拨单右上角会关联坯料采购单和坯料委外单 问题
This commit is contained in:
@@ -18,7 +18,7 @@ class StockPicking(models.Model):
|
||||
@api.depends('name')
|
||||
def _compute_pro_purchase_count(self):
|
||||
for sp in self:
|
||||
if sp:
|
||||
if sp.name and sp.name != '/':
|
||||
po_ids = self.env['purchase.order'].sudo().search([
|
||||
('origin', 'like', sp.name), ('purchase_type', '=', 'standard')])
|
||||
if po_ids:
|
||||
@@ -52,7 +52,7 @@ class StockPicking(models.Model):
|
||||
@api.depends('name')
|
||||
def _compute_pro_out_purchase_count(self):
|
||||
for sp in self:
|
||||
if sp:
|
||||
if sp.name and sp.name != '/':
|
||||
po_ids = self.env['purchase.order'].sudo().search([
|
||||
('origin', 'like', sp.name), ('purchase_type', '=', 'outsourcing')])
|
||||
if po_ids:
|
||||
|
||||
Reference in New Issue
Block a user