Skip to content

Commit

Permalink
[FIX] sale_ux: corrección vista form
Browse files Browse the repository at this point in the history
closes #688

Signed-off-by: matiasperalta1 <mnp@adhoc.com.ar>
  • Loading branch information
lav-adhoc authored and matiasperalta1 committed Aug 2, 2023
1 parent 06c5afe commit 25f9cff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sale_ux/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Sale UX',
'version': "16.0.1.3.0",
'version': "16.0.1.4.0",
'category': 'Sales',
'sequence': 14,
'summary': '',
Expand Down
8 changes: 5 additions & 3 deletions sale_ux/views/sale_order_views.xml
Expand Up @@ -52,9 +52,11 @@
<field name="analytic_account_id" position="attributes">
<attribute name="domain">['|',('partner_id','=',False), ('commercial_partner_id','=',commercial_partner_id)]</attribute>
</field>
<field name="validity_date" position="before">
<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>
<group name="order_details" position="inside">
<div groups="!product.group_product_pricelist">
<button name="action_update_prices" type="object" string=" Update Prices" icon="fa-refresh" attrs="{'invisible': [('state', 'not in', ['draft', 'sent'])]}"/>
</div>
</group>
<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>
Expand Down

0 comments on commit 25f9cff

Please sign in to comment.