From af4147049e481b2e5cbe7779bf4e8b931584a32f Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 1 Feb 2019 09:15:54 +0100 Subject: [PATCH] [FIX] stock_cycle_count: Don't lose return value For avoiding an error validating pickings. --- stock_cycle_count/__manifest__.py | 2 +- stock_cycle_count/models/stock_move.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/stock_cycle_count/__manifest__.py b/stock_cycle_count/__manifest__.py index 45d4ea1a9..4d17df48f 100644 --- a/stock_cycle_count/__manifest__.py +++ b/stock_cycle_count/__manifest__.py @@ -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, " diff --git a/stock_cycle_count/models/stock_move.py b/stock_cycle_count/models/stock_move.py index bdb2c1d71..18026cbbb 100644 --- a/stock_cycle_count/models/stock_move.py +++ b/stock_cycle_count/models/stock_move.py @@ -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