Skip to content

Commit

Permalink
[FIX] bad display on invoices form
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain committed Aug 5, 2019
1 parent db281b0 commit d715f9d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions account_invoice_pricelist/views/account_invoice_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<field name="user_id" position="after">
<field name="pricelist_id"/>
<button name="action_invoice_open" position="before">
<button type="object"
name="button_update_prices_from_pricelist"
string="Update prices"
attrs="{'invisible': ['|', ('pricelist_id', '=', False), ('state', 'not in', ['draft'])]}"
help="Update price in lines from the pricelist"
/>
</button>
<field name="user_id" position="after">
<field name="pricelist_id"/>
</field>
</field>
</record>
Expand All @@ -21,14 +23,16 @@
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml">
<field name="user_id" position="after">
<field name="pricelist_id"/>
<button name="action_invoice_open" position="before">
<button type="object"
name="button_update_prices_from_pricelist"
string="Update prices"
attrs="{'invisible': ['|', ('pricelist_id', '=', False), ('state', 'not in', ['draft'])]}"
help="Update price in lines from the pricelist"
/>
</button>
<field name="user_id" position="after">
<field name="pricelist_id"/>
</field>
</field>
</record>
Expand Down

0 comments on commit d715f9d

Please sign in to comment.