On 01 Jul 2014, at 09:27, Stefan <[email protected]> wrote:
> Hi Davide,
> 
> untested, but I think the following could work:
> 
> - Rename the module
> - Create a module that renames the XML-id's owned by the old module and
> set the new module state to 'to upgrade'.
> - Recreate the old module without any logic or data, depending on the
> migration module.
> - Run update --all first to reload the list of modules. Run --update all
> again to upgrade the new module.
> - Uninstall the old module and the migration module manually.
> 
> It would probably be a 10 line patch to support module renames in the
> base module, using something like an 'oldname' directive in the manifest

Hi Stefan,
i’ll try this way then.

it would be really nice to have some sort of “replaces” attr in __openerp__, 
just like the “depends”.

btw, i just noticed this:
http://bazaar.launchpad.net/~openupgrade-committers/openupgrade-server/7.0/view/head:/openerp/addons/base/migrations/7.0.1.3/pre-migration.py#L27

--
Davide Corio
[email protected]
ERP Consultant
L.S. Advanced Software Srl






_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp

Reply via email to