lp:~openerp-dev/openobject-server/trunk-bug-795443-xrg
- Get this branch:
- bzr branch lp:~openerp-dev/openobject-server/trunk-bug-795443-xrg
Branch merges
- Vo Minh Thu (community): Needs Information
-
Diff: 151 lines (+75/-54)1 file modifiedopenerp/osv/orm.py (+75/-54)
Related bugs
Bug #795443: orm: refactor orm.default_get() to avoid redundant computations | Undecided | Fix Committed |
Related blueprints
Branch information
Recent revisions
- 3453. By OpenERP buildbot
-
orm: refactor orm.default_get() to avoid redundant computations
In default_get(), we need to evaluate the default value of each field,
in an order of resolution. The previous implementation did all the passes
regardless of the result of the previous step, and then dict.update()
the results.Now, resolve from most-significant to least, trying only the remaining
fields at each step.
Also, have a provision for totally ignoring defaults from ir.values,
because they should not be considered when loading initial data.
(cherry picked from commit ad2cc4f179bbcfd455d8f08a8b7758 ca375a1b89) - 3452. By Vo Minh Thu
-
[ADD] openerp/netsvc: use cgitb to format the exception sent to the client, code/idea by chs.
- 3450. By Vo Minh Thu
-
[MERGE] ir_translation: lang field selection only displays installed languages.
- 3445. By Vo Minh Thu
-
[FIX] netrpc_server: close as soon as possible the socket, and do it after a communication-level exception.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:openobject-server