[MIG] stock_usability to v14

This commit is contained in:
Alexis de Lattre
2020-12-03 00:17:57 +01:00
parent f818bb5895
commit e060de7efc
26 changed files with 664 additions and 700 deletions

View File

@@ -0,0 +1,15 @@
# Copyright 2014-2020 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class StockQuant(models.Model):
_inherit = 'stock.quant'
def action_stock_move_lines_reserved(self):
self.ensure_one()
action = self.action_view_stock_moves()
action['context'] = {'search_default_todo': True}
return action