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 authored and jjscarafia committed Jun 7, 2023
1 parent 1805c0b commit f9e930c
Showing 1 changed file with 4 additions and 7 deletions.
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 f9e930c

Please sign in to comment.