Code review comment for lp:~sylvain-legal/openupgrade-addons/7.0-procurement

Revision history for this message
Sylvain LE GAL (GRAP) (sylvain-legal) wrote :

Hi.

Thanks for your review.

About the possibility to have data from uninstalled modules after the openupgrade operation, I think that we can use the same kind of function that "warn_possible_dataloss" ('openerp/openupgrade/openupgrade.py') added here https://code.launchpad.net/~therp-nl/openupgrade-server/three-functions-for-addons-migration/+merge/175790.

The function could have the following algorithm :

if the new module ('project_mrp') is installed :
  # No problem.
else :
  if there is no record in that state ('act_produce_service') :
    # No problem. Isn't it ?
  else :
    # There is a problem
    Solution A : just warn the administrator. "WARNING : You have 53 records in an orphaned state"
    Solution B : Openupgrade install 'project_mrp' module ;

I maybe prefer the A solution.

« Back to merge proposal