Skip to content

Commit

Permalink
[13.0] [FIX] sale_stock_ux: Show return quantity when the order is do…
Browse files Browse the repository at this point in the history
…ne or sale.
  • Loading branch information
nicomacr committed Aug 30, 2021
1 parent 1842574 commit d7b547c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sale_stock_ux/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Sale Stock UX',
'version': '13.0.1.8.0',
'version': '13.0.1.9.0',
'category': 'Sales',
'sequence': 14,
'summary': '',
Expand Down
7 changes: 5 additions & 2 deletions sale_stock_ux/views/sale_order_views.xml
Expand Up @@ -11,8 +11,11 @@
<label for="move_ids" groups="base.group_no_one"/>
<field name="move_ids" readonly="True" groups="base.group_no_one"/>
</xpath>
<xpath expr="//field[@name='order_line']/form//label[@for='qty_invoiced']" position="after">
<field name="quantity_returned" string="Returned Quantity" attrs="{'invisible': [('quantity_returned', '=', 0.0)]}"/>
<xpath expr="//field[@name='order_line']/form//field[@name='qty_invoiced']//.." position="after">
<label for="quantity_returned" string="Returned Quantity" attrs="{'invisible': [('parent.state', 'not in', ['sale', 'done'])]}"/>
<div name="quantity_returned" attrs="{'invisible': [('parent.state', 'not in', ['sale', 'done'])]}">
<field name="quantity_returned" attrs="{'invisible': [('parent.state', 'not in', ['sale', 'done'])]}"/>
</div>
<field name="delivery_status" invisible="1"/>
</xpath>
<!-- agregamos boton de cancelar linea -->
Expand Down

0 comments on commit d7b547c

Please sign in to comment.