This question has been flagged
1 Reply
3247 Views

Hello,

 

I am in process of customising our invoice is there any way i can display invoice balance that is due? Odoo V8
 

Avatar
Discard
Author

Zbik, I cannot seem to get it to calculate it displays an error QWebException: "unexpected EOF while parsing ('', 1, 31, '(invoice.amount_total - invoice')" while evaluating "translate_doc(doc_id, doc_model, 'partner_id.lang', 'account.report_invoice_document')"

See my updated answer

Best Answer

Yes. You print value:

invoice.amount_total - invoice.residual

in Qweb invoice report view, try like this

<span t-esc="o.amount_total - o.residual"/>

but ...note!!!.... that this value can be different in different moments of print! If you want to get always the same (start) value, you need to make python code customisation.

Avatar
Discard