credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #05151
[Merge] lp:~therp-nl/openupgrade-server/7.0_write_ir_rule_via_sql into lp:openupgrade-server
Holger Brunn (Therp) has proposed merging lp:~therp-nl/openupgrade-server/7.0_write_ir_rule_via_sql into lp:openupgrade-server with lp:~therp-nl/openupgrade-server/7.0_log_bt as a prerequisite.
Requested reviews:
OpenUpgrade Committers (openupgrade-committers)
For more details, see:
https://code.launchpad.net/~therp-nl/openupgrade-server/7.0_write_ir_rule_via_sql/+merge/162343
--
https://code.launchpad.net/~therp-nl/openupgrade-server/7.0_write_ir_rule_via_sql/+merge/162343
Your team OpenUpgrade Committers is requested to review the proposed merge of lp:~therp-nl/openupgrade-server/7.0_write_ir_rule_via_sql into lp:openupgrade-server.
=== modified file 'openerp/addons/base/migrations/7.0.1.3/post-migration.py'
--- openerp/addons/base/migrations/7.0.1.3/post-migration.py 2013-02-23 09:21:24 +0000
+++ openerp/addons/base/migrations/7.0.1.3/post-migration.py 2013-05-03 12:42:33 +0000
@@ -25,7 +25,6 @@
force_defaults = {
'ir.mail_server': [('active', True)],
'ir.model.access': [('active', True)],
- 'ir.rule': [('active', True)],
'res.company': [('custom_footer', True)],
# We'll have to adapt the default for is_company in specific
# modules. For instance, a migration script for hr
@@ -169,6 +168,7 @@
def migrate(cr, version):
pool = pooler.get_pool(cr.dbname)
openupgrade.set_defaults(cr, pool, force_defaults, force=True)
+ cr.execute('update ir_rule set active=True')
migrate_ir_translation(cr)
migrate_company(cr)
migrate_partner_address(cr, pool)
Follow ups