Use simplified view for moves list on shipments

issue9459
review290501002
This commit is contained in:
Sergi Almacellas Abellana
2020-08-14 14:20:42 +02:00
parent a7affa630b
commit 29ef8deca7
9 changed files with 31 additions and 16 deletions
+1
View File
@@ -1,3 +1,4 @@
* Use simplified view for moves list on shipments
* Add a relate from product to its moves
* Factorize the cost price of move for cost computation
* Fill grouping values when assigning move
+7
View File
@@ -29,6 +29,13 @@ this repository contains the full copyright notices and license terms. -->
<field name="name">move_list_shipment_in</field>
</record>
<record model="ir.ui.view" id="move_view_list_shipment">
<field name="model">stock.move</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="name">move_list_shipment</field>
</record>
<record model="ir.action.act_window" id="act_move_form">
<field name="name">Moves</field>
<field name="res_model">stock.move</field>
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="shipment" expand="2"/>
<field name="from_location" expand="1"/>
<field name="product" expand="2"/>
<field name="quantity"/>
<field name="uom"/>
<field name="to_location" expand="1"/>
<field name="state"/>
</tree>
+2 -7
View File
@@ -3,15 +3,10 @@
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="shipment" expand="2"/>
<field name="product" expand="2"/>
<field name="from_location" expand="1"/>
<field name="to_location" expand="1"/>
<field name="product" expand="2"/>
<field name="quantity"/>
<field name="uom"/>
<field name="planned_date"/>
<field name="effective_date"/>
<field name="to_location" expand="1"/>
<field name="state"/>
<button name="cancel" string="Cancel"/>
<button name="draft" string="Reset to Draft"/>
<button name="do" string="Do"/>
</tree>
+1 -1
View File
@@ -24,7 +24,7 @@ this repository contains the full copyright notices and license terms. -->
view_ids="stock.move_view_list_shipment_in"/>
</page>
<page name="inventory_moves">
<field name="inventory_moves" colspan="4"/>
<field name="inventory_moves" colspan="4" view_ids="stock.move_view_list_shipment"/>
</page>
<page string="Other Info" id="other">
<label name="received_by"/>
+1 -1
View File
@@ -20,7 +20,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="effective_date"/>
<notebook colspan="4">
<page name="moves">
<field name="moves" colspan="4"/>
<field name="moves" colspan="4" view_ids="stock.move_view_list_shipment"/>
</page>
<page string="Other Info" id="other">
<label name="assigned_by"/>
+3 -3
View File
@@ -22,13 +22,13 @@ this repository contains the full copyright notices and license terms. -->
<field name="company"/>
<notebook colspan="4">
<page name="moves">
<field name="moves" colspan="4"/>
<field name="moves" colspan="4" view_ids="stock.move_view_list_shipment"/>
</page>
<page name="outgoing_moves">
<field name="outgoing_moves" colspan="4"/>
<field name="outgoing_moves" colspan="4" view_ids="stock.move_view_list_shipment"/>
</page>
<page name="incoming_moves">
<field name="incoming_moves" colspan="4"/>
<field name="incoming_moves" colspan="4" view_ids="stock.move_view_list_shipment"/>
</page>
<page string="Other Info" id="other">
<label name="assigned_by"/>
+2 -2
View File
@@ -20,10 +20,10 @@ this repository contains the full copyright notices and license terms. -->
<field name="warehouse"/>
<notebook colspan="4">
<page name="inventory_moves">
<field name="inventory_moves" colspan="4"/>
<field name="inventory_moves" colspan="4" view_ids="stock.move_view_list_shipment"/>
</page>
<page string="Outgoing Moves" id="outgoing_moves">
<field name="outgoing_moves" colspan="4"/>
<field name="outgoing_moves" colspan="4" view_ids="stock.move_view_list_shipment"/>
</page>
<page string="Other Info" id="other">
<label name="assigned_by"/>
+2 -2
View File
@@ -20,10 +20,10 @@ this repository contains the full copyright notices and license terms. -->
<field name="warehouse"/>
<notebook colspan="6">
<page name="incoming_moves">
<field name="incoming_moves" colspan="4"/>
<field name="incoming_moves" colspan="4" view_ids="stock.move_view_list_shipment"/>
</page>
<page name="inventory_moves">
<field name="inventory_moves" colspan="4"/>
<field name="inventory_moves" colspan="4" view_ids="stock.move_view_list_shipment"/>
</page>
<page string="Other Info" id="other">
<label name="received_by"/>