[MIG] stock_usability_akretion to v18

This commit is contained in:
Alexis de Lattre
2024-12-30 12:18:32 +01:00
parent 37fb616524
commit b9d313fa8c
24 changed files with 145 additions and 231 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2014-2022 Akretion (http://www.akretion.com/)
Copyright 2014-2024 Akretion (https://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
@@ -35,10 +35,10 @@
</group>
</group>
<group name="linked_group" position="after">
<group name="move_line_ids" string="Product Moves" colspan="2">
<field name="move_line_ids" nolabel="1" readonly="1" colspan="2"/>
<group name="move_line_ids" string="Product Moves" colspan="2">
<field name="move_line_ids" nolabel="1" readonly="1" colspan="2"/>
</group>
</group>
</group>
</field>
</record>
@@ -50,7 +50,7 @@
<field name="state" position="after">
<button type="object" name="button_do_unreserve" string="Unreserve"
groups="stock.group_stock_user"
states="partially_available,assigned"
invisible="state not in ('partially_available', 'assigned')"
icon="fa-ban"/>
</field>
<field name="product_id" position="after">
@@ -63,4 +63,13 @@
</field>
</record>
<!-- In the stock module, there is only 1 ir.actions.act_window
for stock.move which has pivot as first view. -->
<record id="stock_move_list_first_action" model="ir.actions.act_window">
<field name="name">Stock Moves</field>
<field name="res_model">stock.move</field>
<field name="view_mode">list,pivot,graph,kanban,form</field>
<field name="view_id" ref="stock.view_move_tree"/> <!-- force specific list view -->
</record>
</odoo>