odoo/openerp
Olivier Dony eb0a178196 [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
2012-08-03 16:29:52 +02:00
..
addons [MERGE] trunk-config-wizard indentation fixes by abo 2012-08-03 15:59:53 +02:00
conf [MERGE] sync with latest trunk 2011-09-28 23:13:26 +02:00
db [REF] openerp.modules 2011-04-20 17:27:18 +02:00
modules [Add] Add module summary on db install 2012-07-17 14:20:28 +05:30
osv [MERGE] name_get: support more field types and improve previous name_get changes 2012-08-03 16:29:52 +02:00
pychart [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
report [IMP]:base/res : remove type from display address 2012-03-30 10:27:52 +05:30
service [MERGE] Latest bugfixes from 6.1 2012-03-22 16:05:06 +01:00
test [IMP] Added missing vim mode lines 2011-11-22 09:58:48 +01:00
tests [MERGE] lp:openobject-server: 2012-06-27 16:37:34 +05:30
tools [IMP] Translations of static terms in views 2012-06-28 16:16:32 +02:00
wizard [FIX] openerp.wizard: forgot to remove the stacklevel kwarg. 2012-01-25 15:27:02 +01:00
workflow [IMP] openerp.loglevels: removed calls to openerp.loglevels.Logger(). 2012-01-24 18:30:17 +01:00
wsgi [FIX] proxy-mode is now really active 2012-02-21 19:54:41 +01:00
.apidoc API doc: move settings file from bin/ to openerp/ 2011-06-23 12:08:07 +03:00
PKG-INFO [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
__init__.py [MERGE] sync with latest trunk 2011-09-27 18:51:33 +02:00
cron.py [IMP] openerp.cron: _logger with fully qualified module name. 2012-01-24 12:07:30 +01:00
exceptions.py [FIX] xmlrpc: handle old/new exceptions with old/new clients. 2011-09-30 10:50:12 +02:00
import_xml.rng [FIX] import xml validation: allow optional text in element <value> 2012-07-25 11:46:17 +02:00
loglevels.py [FIX] Fix broken creation of database in previous commit - d'oh 2012-03-16 16:55:54 +01:00
netsvc.py [IMP] attempt to dump uid performing operation along with thread stacks 2012-03-16 12:12:18 +01:00
pooler.py [IMP] registry: whene deleting a registry, also delete its cache and cron. 2011-07-13 17:35:21 +02:00
release.py [IMP] bump up release number 2012-03-14 15:16:12 +01:00
run_tests.py [IMP] Added missing vim mode lines 2011-11-22 09:58:48 +01:00
sql_db.py [MERGE] merged trunk. 2012-02-06 21:31:51 +01:00
tiny_socket.py [IMP] Added missing vim mode lines 2011-11-22 09:58:48 +01:00