Skip to content

Commit

Permalink
[IMP] stock_ux: hide column "ordered" in remito
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelZilli committed Dec 27, 2022
1 parent 73226ba commit acbf559
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stock_ux/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Stock UX',
'version': "15.0.1.2.0",
'version': "15.0.1.3.0",
'category': 'Warehouse Management',
'sequence': 14,
'summary': '',
Expand Down
8 changes: 7 additions & 1 deletion stock_ux/views/report_deliveryslip.xml
Expand Up @@ -18,12 +18,18 @@
</p>
</td>
</xpath>

<!-- Filtramos los stock_move en estado cancelado porque nosotros habilitamos la cancelacion de los mismos,
esto desde el lado de Odoo no se puede lograr -->
<xpath expr="//t[@t-set='lines']" position="after">
<t t-set="lines" t-value="o.move_lines.filtered(lambda x: x.product_uom_qty and x.state != 'cancel')"/>
</xpath>

<xpath expr="//th[@name='th_sml_qty_ordered']" position="replace"/>
</template>

<template id="stock_report_delivery_aggregated_move_lines" inherit_id="stock.stock_report_delivery_aggregated_move_lines">
<xpath expr="//td[@name='move_line_aggregated_qty_ordered']" position="replace"/>
</template>

<template id="stock_report_delivery_has_serial_move_line" inherit_id="stock.stock_report_delivery_has_serial_move_line">
Expand Down

0 comments on commit acbf559

Please sign in to comment.