[PORT] stock_picking_show_linked: Backport to 13.0

This commit is contained in:
AnnaPForgeFlow
2022-07-01 09:20:16 +02:00
parent 4431003e68
commit 6fb01e93b7
4 changed files with 11 additions and 4 deletions

View File

@@ -0,0 +1 @@
../../../../stock_picking_show_linked

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

View File

@@ -7,11 +7,11 @@
(in the case of chained routes) through a button
in the parent picking view.
""",
"version": "14.0.1.0.1",
"version": "13.0.1.0.1",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Warehouse Management",
"depends": ["stock",],
"depends": ["stock"],
"data": ["views/stock_picking.xml"],
"license": "AGPL-3",
"installable": True,

View File

@@ -19,8 +19,8 @@ class StockPicking(models.Model):
record.dest_picking_count = len(dest_pickings)
def _get_action_link(self, pickings):
result = self.env["ir.actions.actions"]._for_xml_id(
"stock.action_picking_tree_all"
result = self.env["ir.actions.act_window"].for_xml_id(
"stock", "action_picking_tree_all"
)
# choose the view_mode accordingly
if not pickings or len(pickings) > 1: