Comment 2 for bug 1314680

Revision history for this message
Laurent Mignon (Acsone) (lmi) wrote :

Hi,

Why do you mark the bug as invalid? How can I distinguish first install from upgrade? Why do you remove a powerful functionality from something working very well?

The _init method on the model is called when the model is installed the first time but also each time it's upgraded. If I need to do a cost effective operation to initialize data/ migrate existing date, the first time a module is installed, and not each time the module is upgraded, I no more have a way this kink of operation. Moreover, the _init method is available only on one model and if I need to do some kink of 'initialization' once all models from the addons are installed, I no more have a way to do this kink of operation.

Do you have an other solution?