summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authoramoyaux <arnold.moyaux@gmail.com>2017-02-13 15:49:13 +0100
committeramoyaux <arm@odoo.com>2017-04-25 14:28:34 +0200
commitf698ed534193067c31acfeeaa6ea3c2cbc4ca13a (patch)
treea329b1a46f3356efc09334b824eee023a1c12aff /addons/web/static/src/js/views/basic/basic_model.js
parent64b7d4e8a8df180bc598e2df56992d373e23b44b (diff)
[FIX][Accounting] Entry chatter "has been created from : empty"
When a journal entry is created automatically from an invoice validation, that logs an internal note with the text "This account entry has been created from:". There should be a clickable invoice's reference after but there was only an empty space. The problem come from the method that call the template "message_origin_link" with the selected invoices as arguments. The template use the attributes id, _name and name. But for the invoice object we want to use the number attribute instead of name. The name of an invoice is empty by default and thus is rendered as a blank in the template. This commit modify the template and use the property display_name instead of name. "display_name" use the number for the invoice and is still correct for other object. The invoice name is just a reference and is not required, so if you use the field name of the invoice it can return an empty string. The name_get method returns the invoice id + invoice number and eventualy the invoice name.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions