Skip to content

Commit

Permalink
[REF] sale_ux: small cleanup of sale_order_views.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasperalta1 committed May 5, 2023
1 parent 5e25d7f commit e9b8937
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sale_ux/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Sale UX',
'version': "16.0.1.1.0",
'version': "16.0.1.2.0",
'category': 'Sales',
'sequence': 14,
'summary': '',
Expand Down
11 changes: 4 additions & 7 deletions sale_ux/views/sale_order_views.xml
Expand Up @@ -53,14 +53,11 @@
<attribute name="domain">['|',('partner_id','=',False), ('commercial_partner_id','=',commercial_partner_id)]</attribute>
</field>
<field name="validity_date" position="before">
<label for="action_update_prices"/>
<br/>
<div groups="!product.group_product_pricelist">
<button name="action_update_prices" type="object" string=" Update Prices" help="Recompute all prices based on this pricelist" class="btn-link mb-1 px-0" icon="fa-refresh" attrs="{'invisible': [('state', 'in', ['sale', 'done','cancel'])]}"/>
</div>
<button name="action_update_prices" type="object" string=" Update Prices" groups="!product.group_product_pricelist" icon="fa-refresh" attrs="{'invisible': [('state', 'not in', ['draft', 'sent'])]}"/>
</field>
<xpath expr="//group[@name='order_details']//div[hasclass('o_row')]/button" position="replace">
<button name="action_update_prices" type="object" string=" Update Prices" help="Recompute all prices based on this pricelist" class="btn-link mb-1 px-0" icon="fa-refresh" attrs="{'invisible': [('state', 'in', ['sale', 'done','cancel'])]}"/>
<xpath expr="//group[@name='order_details']//div[hasclass('o_row')]/button" position="attributes">
<attribute name="attrs">{'invisible': [('state','not in',['draft','sent'])]}</attribute>
<attribute name="confirm"></attribute>
</xpath>
<xpath expr="//group[@name='note_group']" position="before">
<div class="oe_right">
Expand Down

0 comments on commit e9b8937

Please sign in to comment.