[FIX] stock_cycle_count: Don't lose return value

For avoiding an error validating pickings.
This commit is contained in:
Pedro M. Baeza
2019-02-01 09:15:54 +01:00
committed by Lois Rilo
parent 16a0bed6d7
commit af4147049e
2 changed files with 4 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
"name": "Stock Cycle Count",
"summary": "Adds the capability to schedule cycle counts in a "
"warehouse through different rules defined by the user.",
"version": "11.0.1.0.0",
"version": "11.0.1.0.1",
"development_status": "Mature",
"maintainers": ["lreficent"],
"author": "Eficent, "

View File

@@ -1,5 +1,6 @@
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2019 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, models
@@ -10,6 +11,6 @@ class StockMove(models.Model):
@api.multi
def _action_done(self):
super()._action_done()
res = super()._action_done()
self.mapped("location_id").check_zero_confirmation()
return True
return res