mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] stock_quant_reservation_info: Migration to 17.0
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
{
|
||||
"name": "Stock Move Reservation Info",
|
||||
"summary": "Allows to see the reserved info of Products",
|
||||
"version": "16.0.1.0.1",
|
||||
"version": "17.0.1.0.0",
|
||||
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/stock-logistics-warehouse",
|
||||
"category": "Generic",
|
||||
|
||||
@@ -28,7 +28,7 @@ class StockQuant(models.Model):
|
||||
"context": {},
|
||||
"domain": [
|
||||
("product_id", "=", self.product_id.id),
|
||||
("reserved_uom_qty", ">", 0),
|
||||
("quantity_product_uom", ">", 0),
|
||||
("location_id", "=", self.location_id.id),
|
||||
("lot_id", "=", self.lot_id.id),
|
||||
("owner_id", "=", self.owner_id.id),
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
class="btn btn-link text-info"
|
||||
icon="fa-arrow-right"
|
||||
title="Related Document"
|
||||
attrs="{'invisible': [('picking_id', '=', False)]}"
|
||||
invisible="not picking_id"
|
||||
/>
|
||||
<field name="origin" />
|
||||
<field name="reserved_uom_qty" />
|
||||
<field name="quantity_product_uom" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -9,7 +9,25 @@
|
||||
<button
|
||||
name="action_reserved_moves"
|
||||
type="object"
|
||||
attrs="{'invisible': [('reserved_quantity', '=', 0)]}"
|
||||
invisible="reserved_quantity == 0"
|
||||
class="btn btn-link text-info"
|
||||
icon="fa-info-circle"
|
||||
title="Reserved Moves"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_stock_quant_tree_editable" model="ir.ui.view">
|
||||
<field name="name">stock.quant.inherit.form.reserved.quant.editable</field>
|
||||
<field name="model">stock.quant</field>
|
||||
<field name="inherit_id" ref="stock.view_stock_quant_tree_editable" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="reserved_quantity" position="after">
|
||||
<button
|
||||
name="action_reserved_moves"
|
||||
type="object"
|
||||
invisible="reserved_quantity == 0"
|
||||
class="btn btn-link text-info"
|
||||
icon="fa-info-circle"
|
||||
title="Reserved Moves"
|
||||
@@ -28,7 +46,7 @@
|
||||
<button
|
||||
name="action_reserved_moves"
|
||||
type="object"
|
||||
attrs="{'invisible': [('reserved_quantity', '=', 0)]}"
|
||||
invisible="reserved_quantity == 0"
|
||||
class="btn btn-link text-info"
|
||||
icon="fa-info-circle"
|
||||
title="Reserved Moves"
|
||||
|
||||
Reference in New Issue
Block a user