Skip to content

Commit

Permalink
[MIG] sale_margin_ux: Migration to 17.0
Browse files Browse the repository at this point in the history
closes #766

Signed-off-by: matiasperalta1 <mnp@adhoc.com.ar>
  • Loading branch information
lef-adhoc committed Jan 16, 2024
1 parent 696853d commit 8dd6368
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sale_margin_ux/README.rst
Expand Up @@ -15,7 +15,7 @@ Sale Margin Ux
==============

#. This module adds to the "update prices" button the functionality of updating the cost prices in the SO lines.
#. Adds purchase_price and margin to sale_ux's sale_order_line view
#. Adds purchase_price and margins to sale_ux's sale_order_line view

Installation
============
Expand Down
4 changes: 2 additions & 2 deletions sale_margin_ux/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Sale Margin Ux',
'version': "16.0.1.0.0",
'version': "17.0.1.0.0",
'category': 'Sales & Purchases',
'sequence': 14,
'summary': '',
Expand All @@ -37,7 +37,7 @@
],
'demo': [
],
'installable': False,
'installable': True,
'auto_install': True,
'application': False,
}
5 changes: 3 additions & 2 deletions sale_margin_ux/views/sale_order_line_views.xml
Expand Up @@ -8,8 +8,9 @@
<field name="inherit_id" ref="sale_ux.sale_order_line_usability_tree"/>
<field name="arch" type="xml">
<field name="price_unit" position="after">
<field name="purchase_price" sum="Total" groups="base.group_user"/>
<field name="margin" sum="Total" groups="base.group_user"/>
<field name="purchase_price" sum="Total" optional="hide" groups="base.group_user"/>
<field name="margin" sum="Total" optional="hide" groups="base.group_user"/>
<field name="margin_percent" optional="hide" widget="percentage" groups="base.group_user"/>
</field>
</field>
</record>
Expand Down

0 comments on commit 8dd6368

Please sign in to comment.