Merge lp:~therp-nl/openupgrade-server/6.1-fix_client_action_table into lp:openupgrade-server/6.1
Proposed by
Stefan Rijnhart (Opener)
Status: | Merged |
---|---|
Merged at revision: | 4006 |
Proposed branch: | lp:~therp-nl/openupgrade-server/6.1-fix_client_action_table |
Merge into: | lp:openupgrade-server/6.1 |
Diff against target: |
30 lines (+13/-0) 1 file modified
openerp/addons/base/migrations/6.1.1.3/pre-migration.py (+13/-0) |
To merge this branch: | bzr merge lp:~therp-nl/openupgrade-server/6.1-fix_client_action_table |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Holger Brunn (Therp) | code review | Approve | |
Review via email: mp+203112@code.launchpad.net |
Description of the change
The action models do something funky: they inherit at table level. A new kind of action was introduced in 6.1: the client action.
The ORM does not take care of this table inheritance, so as the OpenERP 6.1 base.sql is skipped at migration time, we need to load the relevant stanzas manually. I only noticed it when migrating a 6.0 database to 7.0, as 7.0 has some eyecatching client actions which did not work (apps interface and messaging inbox).
Previously migrated databases can be fixed easily by executing the following SQL command:
ALTER TABLE ir_act_client INHERIT ir_actions;
To post a comment you must log in.