summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorFlorent de Labarre <florent.mirieu@gmail.com>2018-02-02 22:41:05 +0100
committerPierre Masereel <pim@odoo.com>2018-02-05 11:48:37 +0100
commit3d18214637fe7f85952daed2f957f44046eb6450 (patch)
tree62a297980634ec8c965cc1c27c6a8da9fbdd4486 /addons
parent9cba40fa897fe00a5c4f683d2adb2c4f3c0deef2 (diff)
[FIX] stock: unpack wrong implementation of api.multi
The filtered on move_line_ids should be applied on move_line_ids of package and not self.
Diffstat (limited to 'addons')
-rw-r--r--addons/stock/models/stock_quant.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/models/stock_quant.py b/addons/stock/models/stock_quant.py
index 215297ec4ce..3c9ba06792c 100644
--- a/addons/stock/models/stock_quant.py
+++ b/addons/stock/models/stock_quant.py
@@ -440,7 +440,7 @@ class QuantPackage(models.Model):
def unpack(self):
for package in self:
- move_lines_to_remove = self.move_line_ids.filtered(lambda move_line: move_line.state != 'done')
+ move_lines_to_remove = package.move_line_ids.filtered(lambda move_line: move_line.state != 'done')
if move_lines_to_remove:
move_lines_to_remove.write({'result_package_id': False})
else: