CRM module is not yet covered
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
OpenUpgrade Addons | Status tracked in 7.0 | |||||
| 6.0 |
Undecided
|
Unassigned | |||
| 6.1 |
Undecided
|
Unassigned | |||
| 7.0 |
High
|
Holger Brunn (Therp) |
Bug Description
Hi
after an upgrade we got the following issues on the crm :
- the mail_message_id_seq sequence was missing
- a domain using removed attribute "type" of crm_case_stage was still there
- the corresponding "type" column was still there although the attribute did not exist
I had to :
CREATE SEQUENCE mail_message_id_seq MINVALUE 0;
SELECT setval(
alter table crm_case_stage drop column type;
and I had to manually remove the domain and context in the "Stages" window_action
Related branches
- OpenUpgrade Committers: Pending requested 2012-06-06
-
Diff: 141 lines (+88/-2)10 files modifiedbase_action_rule/migrations/6.1.1.0/user_notes.txt (+1/-0)
base_calendar/migrations/6.1.1.0/pre-migration.py (+23/-0)
base_calendar/migrations/6.1.1.0/user_notes.txt (+1/-2)
crm/migrations/6.1.1.0/data/crm_lead_view.xml (+14/-0)
crm/migrations/6.1.1.0/post-migration.py (+17/-0)
crm/migrations/6.1.1.0/pre-migration.py (+24/-0)
crm/migrations/6.1.1.0/user_notes.txt (+5/-0)
procurement/migrations/6.1.1.0/user_notes.txt (+1/-0)
sale/migrations/6.1.1.0/user_notes.txt (+1/-0)
stock/migrations/6.1.1.1/user_notes.txt (+1/-0)
- OpenUpgrade Committers: Pending requested 2012-06-07
-
Diff: 32 lines (+11/-2)1 file modifiedbin/openupgrade/openupgrade.py (+11/-2)
- Holger Brunn (Therp): Approve (code review) on 2013-12-02
- Maxime Chambreuil (http://www.savoirfairelinux.com) (community): Approve (code review) on 2013-11-22
-
Diff: 230 lines (+216/-0)3 files modifiedcrm/migrations/7.0.1.0/data.xml (+82/-0)
crm/migrations/7.0.1.0/post-migration.py (+72/-0)
crm/migrations/7.0.1.0/pre-migration.py (+62/-0)
- Holger Brunn (Therp): Approve (code review) on 2013-12-02
- Maxime Chambreuil (http://www.savoirfairelinux.com) (community): Approve (code review) on 2013-11-22
-
Diff: 159 lines (+140/-0)4 files modifiedcrm_claim/migrations/7.0.1.0/data.xml (+37/-0)
crm_claim/migrations/7.0.1.0/post-migration.py (+56/-0)
crm_claim/migrations/7.0.1.0/pre-migration.py (+41/-0)
crm_claim/migrations/7.0.1.0/user_notes.txt (+6/-0)
Changed in openupgrade-addons: | |
importance: | Undecided → Wishlist |
summary: |
- issues on crm after upgrade + CRM module is not yet covered |
Changed in openupgrade-addons: | |
status: | New → Fix Committed |
assignee: | nobody → Holger Brunn (Therp) (hbrunn) |
Hi Christophe,
the CRM module is now covered for migrations from 6.0 to 6.1. That should fix the references to the stage type.
Had a look at your other issue with the sequence. Turns out this is an oversight in the OpenUpgrade architecture. When renaming ORM tables, the sequences that OpenERP uses to provide the resource id need to be renamed as well. This will be fixed ASAP.
Cheers,
Stefan.
Changed in openupgrade-addons: | |
status: | Fix Committed → In Progress |
importance: | Wishlist → High |
Changed in openupgrade-addons: | |
status: | In Progress → Fix Committed |
Chris Halls (halls) wrote : | #3 |
Just for info: I'm currently looking at CRM migration scripts for 5.0->6.0
Hi Chris,
thanks for the update. That would be great.
Crm 6.0 -> 6.1 has been covered by now. All the other issues in this thread have also been dealt with and merged, although in general like the 'type' column mentioned in the original post, obsolete columns are not being dropped yet. See this blueprint https:/
Cheers,
Stefan.
Yann Papouin (yann-papouin) wrote : | #5 |
About 6.1 -> 7.0, an error occured in migrate_partners [1], the "crm.meeting" does not have a partner_id.
In 6.1, the model "crm.meeting" defined in the module "crm" owns:
partner_id (many2one)
partner_address_id (many2one)
In 7.0, the model "crm.meeting" defined in the module "base_calendar" owns:
partner_ids (many2many)
[1] fix_partner(cr, pool, 'crm.meeting', 'partner_id', openupgrade.
It's time to kill this old bug. Yann, thanks for your observation. Can you create a new bug report for this specific issue?
Thanks,
Stefan.
Changed in openupgrade-addons: | |
status: | Fix Committed → Fix Released |
Hi Christophe,
thank you for your input. As you probably will know, only a number of modules have been written migration scripts for at this moment. The crm* modules for instance are not yet covered. Would you be able to provide a script for some of these modules? Your input above seems like a good starting point.
You can check the list of covered modules 6.0 -> 6.1 here: http:// readthedocs. org/docs/ openupgrade- server/ en/latest/ modules60- 61.html
Cheers,
Stefan.