stock_usability: always show picking_type_id in picking form view

This commit is contained in:
Alexis de Lattre
2024-04-25 15:15:55 +02:00
parent 26a7a42e8c
commit 320cfff25f

View File

@@ -56,6 +56,10 @@
<xpath expr="//sheet/group/group/field[@name='location_dest_id']" position="attributes"> <xpath expr="//sheet/group/group/field[@name='location_dest_id']" position="attributes">
<attribute name="attrs">{}</attribute> <attribute name="attrs">{}</attribute>
</xpath> </xpath>
<group name="other_infos" position="inside">
<!-- The field picking_type_id is displayed under partner_id but invisible when hide_picking_type = True. But I want it to be always visible... but not at such a visible place ! So I display it in other infos when hide_picking_type = False -->
<field name="picking_type_id" attrs="{'invisible': [('hide_picking_type', '=', False)], 'readonly': [('state', '!=', 'draft')]}"/>
</group>
</field> </field>
</record> </record>