~openerp-dev/openobject-server/6.0-server-fix-stored-function-triggers

Viewing all changes in revision 3367.

  • Committer: Olivier Dony
  • Date: 2011-03-15 18:44:17 UTC
  • Revision ID: odo@openerp.com-20110315184417-uhb2qr82evqo880l
[FIX] orm: rewrote and fixed _store_get_values to properly respect priority

_store_get_values is in charge of gathering the list of 
function fields that should be recomputed as a result
of any write() operation, due to store flag triggers.
The previous version would group fields by model and
only respect the priority of the first trigger for a 
given model, creating various problems when priority
of field computation is important.
The new version tries to be more readable and respect
all priorities.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: