Files
stock-logistics-warehouse/stock_cycle_count/models/stock_move.py
Lois Rilo e821d9c55d [10.0][IMP] stock_cycle_count:
* simplify fetching latest inventory date
* use api.depends where needed
* add hook for cycle count creation
* take advantage of api.multi on check_zero_confirmation method
2020-06-02 13:03:33 +02:00

17 lines
449 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 odoo import api, models
class StockMove(models.Model):
_inherit = 'stock.move'
@api.multi
def action_done(self):
super(StockMove, self).action_done()
self.mapped("location_id").check_zero_confirmation()
return True