>
> Maybe should the purge delete the attachments or drop the relationship
> beforehand?
>
This is already what is done through these lines:
attachment_ids = attachment_pool.search(
cr, uid, [('res_model', '=', line.name)], context=context)
if attachment_ids:
attachment_pool.write(
cr, uid, attachment_ids, {'res_model': False},
context=context)
I have to figure out what happens.
--
https://code.launchpad.net/~therp-nl/openupgrade-tools/7.0-add-database_cleanup/+merge/203633
Your team OpenUpgrade Committers is requested to review the proposed merge of
lp:~therp-nl/openupgrade-tools/7.0-add-database_cleanup into
lp:openupgrade-tools.
--
Mailing list: https://launchpad.net/~credativ
Post to : [email protected]
Unsubscribe : https://launchpad.net/~credativ
More help : https://help.launchpad.net/ListHelp