Accept Merge Request #2173: (feature/6694 -> develop)
Merge Request: 在出厂检验报告验证数量时,增加产品的匹配 Created By: @胡尧 Accepted By: @胡尧 URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/2173?initial=true
This commit is contained in:
@@ -263,7 +263,7 @@ class QualityCheck(models.Model):
|
|||||||
self._check_measure_line()
|
self._check_measure_line()
|
||||||
self._check_check_qty_and_total_qty()
|
self._check_check_qty_and_total_qty()
|
||||||
|
|
||||||
picking_qty = sum(self.picking_id.move_ids.mapped('product_uom_qty'))
|
picking_qty = sum(self.picking_id.move_ids.filtered(lambda m: m.product_id == self.product_id).mapped('product_uom_qty'))
|
||||||
if not self._check_total_qty(picking_qty):
|
if not self._check_total_qty(picking_qty):
|
||||||
return {
|
return {
|
||||||
'type': 'ir.actions.client',
|
'type': 'ir.actions.client',
|
||||||
|
|||||||
Reference in New Issue
Block a user