Skip to content
Snippets Groups Projects
Commit 90f7eaa0 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] portal: avoid errors during autovacuum

When the cron for autovacuum runs, the osv_memory objects are deleted. The portal.wizard.user object has a required field (wizard_id) linked to another osv_memory object (portal.user) which causes a traceback when the cron tries to delete portal.user object before the portal.wizard.user. opw 609918
parent 64ac1b0f
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ class wizard_user(osv.osv_memory):
_description = 'Portal User Config'
_columns = {
'wizard_id': fields.many2one('portal.wizard', string='Wizard', required=True),
'wizard_id': fields.many2one('portal.wizard', string='Wizard', required=True, ondelete="cascade"),
'partner_id': fields.many2one('res.partner', string='Contact', required=True, readonly=True),
'email': fields.char(size=240, string='Email'),
'in_portal': fields.boolean('In Portal'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment