Files
stock-logistics-warehouse/stock_cycle_count/models/stock_move.py
2020-06-02 13:03:33 +02:00

17 lines
440 B
Python

# -*- coding: utf-8 -*-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from openerp import api, models
class StockMove(models.Model):
_inherit = 'stock.move'
@api.one
def action_done(self):
super(StockMove, self).action_done()
self.location_id.check_zero_confirmation()
return True