mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
17 lines
505 B
Python
17 lines
505 B
Python
# Copyright 2022 ForgeFlow <http://www.forgeflow.com>
|
|
|
|
from odoo import models
|
|
|
|
|
|
class StockQuant(models.Model):
|
|
_inherit = "stock.move.line"
|
|
|
|
def action_view_picking_from_reserved(self):
|
|
action = self.env["ir.actions.act_window"]._for_xml_id(
|
|
"stock.action_picking_tree_all"
|
|
)
|
|
res = self.env.ref("stock.view_picking_form", False)
|
|
action["views"] = [(res and res.id or False, "form")]
|
|
action["res_id"] = self.picking_id.id
|
|
return action
|