mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[14.0][ADD] stock_quant_reservation_info_mrp
This commit is contained in:
@@ -0,0 +1 @@
|
||||
../../../../stock_quant_reservation_info_mrp
|
||||
6
setup/stock_quant_reservation_info_mrp/setup.py
Normal file
6
setup/stock_quant_reservation_info_mrp/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
0
stock_quant_reservation_info_mrp/README.rst
Normal file
0
stock_quant_reservation_info_mrp/README.rst
Normal file
3
stock_quant_reservation_info_mrp/__init__.py
Normal file
3
stock_quant_reservation_info_mrp/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import models
|
||||
17
stock_quant_reservation_info_mrp/__manifest__.py
Normal file
17
stock_quant_reservation_info_mrp/__manifest__.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# Copyright 2022 ForgeFlow S.L.
|
||||
# (https://www.forgeflow.com)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
{
|
||||
"name": "Stock Move Reservation Info MRP",
|
||||
"summary": "Allows to see the manufacturing order related to the reserved info of Products",
|
||||
"version": "14.0.1.0.3",
|
||||
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/stock-logistics-warehouse",
|
||||
"category": "Generic",
|
||||
"depends": ["stock_quant_reservation_info", "mrp"],
|
||||
"license": "AGPL-3",
|
||||
"data": ["views/stock_move_line.xml"],
|
||||
"installable": True,
|
||||
"auto-install": True,
|
||||
}
|
||||
1
stock_quant_reservation_info_mrp/models/__init__.py
Normal file
1
stock_quant_reservation_info_mrp/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import stock_move_line
|
||||
15
stock_quant_reservation_info_mrp/models/stock_move_line.py
Normal file
15
stock_quant_reservation_info_mrp/models/stock_move_line.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# Copyright 2022 ForgeFlow <http://www.forgeflow.com>
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
class StockQuant(models.Model):
|
||||
_inherit = "stock.move.line"
|
||||
|
||||
def action_view_mrp_from_reserved(self):
|
||||
action = self.env["ir.actions.act_window"]._for_xml_id(
|
||||
"mrp.mrp_production_action"
|
||||
)
|
||||
action["views"] = [(self.env.ref("mrp.mrp_production_form_view").id, "form")]
|
||||
action["res_id"] = self.production_id.id
|
||||
return action
|
||||
1
stock_quant_reservation_info_mrp/readme/CONTRIBUTORS.rst
Normal file
1
stock_quant_reservation_info_mrp/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1 @@
|
||||
* David Jiménez <david.jimenez@forgeflow.com>
|
||||
1
stock_quant_reservation_info_mrp/readme/DESCRIPTION.rst
Normal file
1
stock_quant_reservation_info_mrp/readme/DESCRIPTION.rst
Normal file
@@ -0,0 +1 @@
|
||||
This module allows to look which pickings, manufacture orders, etc. are reserving the products and check the following source.
|
||||
1
stock_quant_reservation_info_mrp/readme/USAGE.rst
Normal file
1
stock_quant_reservation_info_mrp/readme/USAGE.rst
Normal file
@@ -0,0 +1 @@
|
||||
Go to one product and check the quantity on hand, on that view you can see the quantity reserved and the button next to this field allows to see the manufacturing order related to reservations (if it have it).
|
||||
23
stock_quant_reservation_info_mrp/views/stock_move_line.xml
Normal file
23
stock_quant_reservation_info_mrp/views/stock_move_line.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<odoo>
|
||||
<record id="view_stock_move_line_reserved_info_tree" model="ir.ui.view">
|
||||
<field name="name">stock.move.line.tree.reserved.info</field>
|
||||
<field name="model">stock.move.line</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="stock_quant_reservation_info.view_stock_move_line_reserved_info_tree"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<button name="action_view_picking_from_reserved" position="after">
|
||||
<field name="production_id" string="Manufacturing Order" />
|
||||
<button
|
||||
name="action_view_mrp_from_reserved"
|
||||
type="object"
|
||||
class="btn btn-link text-info"
|
||||
icon="fa-arrow-right"
|
||||
title="Related MO"
|
||||
attrs="{'invisible': [('production_id', '=', False)]}"
|
||||
/>
|
||||
</button>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user