summaryrefslogtreecommitdiff
path: root/addons/document_page/document_page_sequence.xml
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2012-08-03 16:29:52 +0200
committerOlivier Dony <odo@openerp.com>2012-08-03 16:29:52 +0200
commiteb0a178196c596fa79628cdc28058498a487ad0d (patch)
tree32ca64d67394ba128a973936cf354275278f3c12 /addons/document_page/document_page_sequence.xml
parent15132d85e9f6417219ad3dcdbc121d4d00730f84 (diff)
parentda9ccf503a621de50f78b3920c8f40e4f12a2b97 (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/document_page_sequence.xml')
0 files changed, 0 insertions, 0 deletions