Files
stock-logistics-warehouse/stock_cycle_count/models/stock_move.py

18 lines
472 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.multi
def action_done(self):
super(StockMove, self).action_done()
for move in self:
move.location_id.check_zero_confirmation()
return True