[10.0] Improvements (#44)

* [ADD] Display an icon when a note has been encoded in an expense

* [CHG] Expense report document smart button counts his own attachments + his lines attachments
This commit is contained in:
Benjamin Willig (ACSONE)
2017-10-13 20:03:27 +02:00
committed by Alexis de Lattre
parent 987e753a54
commit e6076c3f76
2 changed files with 37 additions and 0 deletions

View File

@@ -103,6 +103,9 @@
<field name="untaxed_amount_company_currency" sum="Untaxed Total"/>
<field name="tax_amount_company_currency" sum="Tax Total"/>
<field name="total_amount_company_currency" sum="Total"/>
<field name="has_description" invisible="1"/>
<button readonly="1" icon="fa-info-circle"
attrs="{'invisible': [('has_description', '=', False)]}"/>
</xpath>
<xpath expr="//field[@name='expense_line_ids']/tree/field[@name='total_amount']" position="attributes">
<attribute name="sum"></attribute>