[IMP] Make rma order view cleaner for user

Hide button and fields depending on the policy chosen on the rma line
This commit is contained in:
Florian da Costa
2022-06-24 10:56:42 +02:00
committed by DavidJForgeFlow
parent 2760f14ed0
commit aa7253dc30
5 changed files with 52 additions and 5 deletions

View File

@@ -444,6 +444,30 @@
</group>
</group>
<notebook>
<page name="quantities" string="Quantities">
<group name="quantities" col="4" string="Quantities">
<group
name="receive"
attrs="{'invisible': [('receipt_policy', '=', 'no')]}"
>
<field name="qty_to_receive" />
<field name="qty_incoming" />
<field name="qty_received" />
</group>
<group
name="deliver"
attrs="{'invisible': [('delivery_policy', '=', 'no')]}"
>
<field name="qty_to_deliver" />
<field name="qty_outgoing" />
<field name="qty_delivered" />
</group>
<group name="supplier_rma">
<field name="qty_to_supplier_rma" />
<field name="qty_in_supplier_rma" />
</group>
</group>
</page>
<page name="route" string="Routes">
<group name="inbound" string="Inbound">
<field name="in_warehouse_id" />
@@ -472,7 +496,11 @@
/>
</group>
</page>
<page name="stock" string="Stock Moves">
<page
name="stock"
string="Stock Moves"
attrs="{'invisible': [('move_ids', '=', [])]}"
>
<field name="move_ids" nolabel="1" readonly="1" />
</page>
<page name="quantities" string="Quantities">