Skip to content

Commit

Permalink
[ADD] stock_ux: stock.move.line views
Browse files Browse the repository at this point in the history
closes #406

Signed-off-by: Nicolas Mac Rouillon <nmr@adhoc.com.ar>
  • Loading branch information
mav-adhoc committed Oct 31, 2023
1 parent 8595468 commit 38e7f9e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stock_ux/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Stock UX',
'version': "16.0.2.10.0",
'version': "16.0.2.11.0",
'category': 'Warehouse Management',
'sequence': 14,
'summary': '',
Expand All @@ -32,6 +32,7 @@
'sale_stock',
'report_aeroo',
'stock_voucher',
'product_expiry',
],
'data': [
'security/stock_ux_security.xml',
Expand Down
13 changes: 13 additions & 0 deletions stock_ux/views/stock_move_line_views.xml
Expand Up @@ -24,6 +24,7 @@
<field name="inherit_id" ref="stock.stock_move_line_view_search"/>
<field name="arch" type="xml">
<field name="location_id" position="before">
<field name="product_id" string="Product" context="{'group_by':'product_id'}"/>
<field name="location_id" string="Net Quantity Location" filter_domain="['|',('location_id','ilike',self),('location_dest_id','ilike',self)]" context="{'location': self}"/>
</field>
<filter name="manufacturing" position="after">
Expand All @@ -37,6 +38,12 @@
<filter string="Picking Type" name="picking_type" context="{'group_by':'picking_type_id'}"/>
<!-- <filter string="Picking Partner" name="picking_partner_id" context="{'group_by':'picking_partner_id'}"/> -->
</filter>
<filter name="by_state" position="after">
<filter string="Picking" name="picking" context="{'group_by':'picking_id'}"/>
<!-- Si queremos agregar group by estos campos habria que hacerlos store o hacer una vista sql -->
<filter string="Picking Type" name="picking_type" context="{'group_by':'picking_type_id'}"/>
<!-- <filter string="Picking Partner" name="picking_partner_id" context="{'group_by':'picking_partner_id'}"/> -->
</filter>
</field>
</record>

Expand Down Expand Up @@ -104,6 +111,12 @@
<field name="qty_done" position="after">
<button name="set_all_done" title="Set all Done" type="object" icon="fa-check" states="confirmed,assigned,waiting,partially_available"/>
</field>
<field name="lot_id" position="after">
<field name="expiration_date" readonly="0"/>
</field>
<field name="expiration_date" position="attributes">
<attribute name="attrs">{'invisible': [('lots_visible', '=', False)]}</attribute>
</field>
</field>
</record>

Expand Down

0 comments on commit 38e7f9e

Please sign in to comment.