odoo/openerp/addons/base/module
Olivier Dony 9770caedf3 [FIX] registry: another pass of cleanup for registry signaling
Some important points to consider:
 - signaling should be done after any schema alteration (including module [un]installation),
   service registration (e.g. reports)
 - the changes need to be committed to the database *before* signaling, otherwise an
   obvious race condition occurs during reload by other workers
 - any call to restart_pool() must be considered a possible candidate for
   signaling, and the 2 above conditions must be checked

The number of explicit calls was reduced by forcing the signaling at the end of
Registry.new() in case `update_module` was passed as True. In that situation
we always want to signal the changes - so all the redundant signaling calls
can be centralized. We can also assume that the relevant changes have already
been committed at that point, otherwise the registry update would not
have worked in the first place.
This means that there is no need for explicit signaling anymore everytime
`restart_pool` is called with `update_module=True`.

Some missing cr.commit() and explicit signaling calls were added or
moved to the right place. As a reminder: signaling must be done
*after* committing the changes, and usually *after* reloading the
registry on the current worker.

bzr revid: odo@openerp.com-20130301143203-e2csf5pkllwhmwqs
2013-03-01 15:32:03 +01:00
..
report [FIX] rml reports: no hardcoded template pageSize - is set by company header/footer to A4 or US Letter 2012-12-21 16:49:06 +01:00
wizard [FIX] export translation-> replace many2many widget by many2many_tags 2012-12-20 17:12:06 +01:00
__init__.py [IMP] Added missing vim mode lines 2011-11-22 09:58:48 +01:00
module.py [FIX] registry: another pass of cleanup for registry signaling 2013-03-01 15:32:03 +01:00
module_data.xml [IMP]Base:string changed 2012-11-22 18:54:18 +05:30
module_report.xml [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
module_view.xml [IMP] reorder modules menus 2013-01-15 11:40:15 +01:00