Event addon migration - #70
Conversation
There was a problem hiding this comment.
The custom is to rename the abandoned column name ('note' in this case) to its legacy name in the pre-script, then refer to this name in the post-script. While this is only necessary when the column type changes while keeping its name, I think it would be good to do this for any abandoned column that is touched by OpenUpgrade.
There was a problem hiding this comment.
@StefanRijnhart I thought if fields 'oldname' func parameter was used we don't need to make it legacy by OpenUpgrade, so I don't see point to create additional legacy field when we don't touch e.g. 'note' field. Otherwise we should do that for all fields that are using 'oldname'.
There was a problem hiding this comment.
If oldname is used, it is even worse because then you will not have the column anymore when you try to access it in this code....
|
|
|
👍 |
|
❓ What do you think ? (Otherwise: LGTM) |
|
@legalsylvain I think it will only confuse user, if somebody will need to keep main_speaker_id then better to inherit event.event and add such field. |
|
Could somebody help to close this PR? |
|
Ow. sorry @komsas , I forgot this review. Thanks for the explanation. and 👍 |
|
Needs to be rebased again |
|
👍 |
|
@bwrsandman where I need to rebase it? Can you give more details? |
|
@komsas it seems that there are conflicts between your branch and the official one. You simply need to git pull --rebase from the official branch and then git push (possibly with --force). |
|
@arthru thanks, I didn't notice in first place that there are conflicts. Travis green text gave me green light ;-) |
[ADD] Migration scrips for event addon
[ADD] protect openerp imports
Related #29
Remake to point to 8.0 branch