Files
stock-logistics-warehouse/stock_cycle_count/models/stock_move.py
Pedro M. Baeza 48b1b67214 [FIX] stock_cycle_count: Don't lose return value
For avoiding an error validating pickings.
2024-06-11 08:34:30 +02:00

17 lines
461 B
Python

# 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
class StockMove(models.Model):
_inherit = 'stock.move'
@api.multi
def _action_done(self):
res = super()._action_done()
self.mapped("location_id").check_zero_confirmation()
return res