Skip to content

Instantly share code, notes, and snippets.

@ray-odoo
Created September 15, 2024 13:05
Show Gist options
  • Save ray-odoo/aa13b4c2c344f9fdd65c5eed335b10d1 to your computer and use it in GitHub Desktop.
Save ray-odoo/aa13b4c2c344f9fdd65c5eed335b10d1 to your computer and use it in GitHub Desktop.
Receiving NET Weight of Seeds after Weighing and Sampling
<data>
<xpath expr="//notebook/page[@name='operations']/field[@name='move_ids_without_package']/tree/field[@name='product_uom_qty']"
position="after">
<field name="x_calc_quantity"
column_invisible="1"/>
<field name="x_gross_quantity"
column_invisible="parent.picking_type_code != 'incoming' or (parent.state != 'assigned' and parent.state !='done')"/>
<field name="x_moisture"
widget="percentage"
column_invisible="parent.picking_type_code != 'incoming' or (parent.state != 'assigned' and parent.state !='done')"/>
<field name="x_impurities"
widget="percentage"
column_invisible="parent.picking_type_code != 'incoming' or (parent.state != 'assigned' and parent.state !='done')"/>
</xpath>
</data>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment