[FIX] hr_expense: don't show attachment icon if no attachments
closes odoo/odoo#33869 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
@@ -509,7 +509,7 @@
|
||||
<field name="analytic_tag_ids" widget="many2many_tags" groups="analytic.group_analytic_tags"/>
|
||||
<field name="message_unread" invisible="1"/>
|
||||
<field name="attachment_number" string=" "/>
|
||||
<button name="action_get_attachment_view" string="View Attachments" type="object" icon="fa-paperclip"/>
|
||||
<button name="action_get_attachment_view" string="View Attachments" type="object" icon="fa-paperclip" attrs="{'invisible': ['&', ('attachment_number', '=', 0), ('state', '!=', 'draft')]}"/>
|
||||
<field name="tax_ids" widget="many2many_tags" groups="account.group_account_user"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
<field name="total_amount"/>
|
||||
|
||||
Reference in New Issue
Block a user