diff options
| author | Olivier Dony <odo@openerp.com> | 2012-08-03 16:29:52 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2012-08-03 16:29:52 +0200 |
| commit | eb0a178196c596fa79628cdc28058498a487ad0d (patch) | |
| tree | 32ca64d67394ba128a973936cf354275278f3c12 /addons/document_page/web/locales/javascript.pot | |
| parent | 15132d85e9f6417219ad3dcdbc121d4d00730f84 (diff) | |
| parent | da9ccf503a621de50f78b3920c8f40e4f12a2b97 (diff) | |
[MERGE] name_get: support more field types and improve previous name_get changes
Introduces an improved name_get implementation,
supporting a few more fields type used as _rec_name
(such as many2one). The actual rendering of the
"display name" is delegated to the column class,
and computed based on the value returned by read()
for the column.
Funky @classmethod stuff was necessary to allow
column types to delegate to other types, such as
function types which can delegate to the real
type they emulate.
The display_name term was used because it is
being discussed for the new API to add a virtual
display_name column to all models, allowing
clients to read the name_get value along with
regular columns. It looks appropriate too.
Also fixes a few shortcomings of the latest
patches to name_get, such as supporting inherited
columns and avoiding a useless read() call with
only the id column.
bzr revid: odo@openerp.com-20120803142952-8jefy3bsgftucxuk
Diffstat (limited to 'addons/document_page/web/locales/javascript.pot')
0 files changed, 0 insertions, 0 deletions
