f698ed534193067c31acfeeaa6ea3c2cbc4ca13a
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.
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
If you are a developer you may type the following command at your terminal:
wget -O- https://raw.githubusercontent.com/odoo/odoo/master/setup/setup_dev.py | python
Then follow the developer tutorials
For Odoo employees
To add the odoo-dev remote use this command:
$ ./setup/setup_dev.py setup_git_dev
To fetch odoo merge pull requests refs use this command:
$ ./setup/setup_dev.py setup_git_review
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%