Autovacuum causes integrity errors in portal_wizard/portal_wizard_user deletion
Bug #1135601 reported by
Marcel van der Boom (HS-Development BV)
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP R&D Addons Team 1 |
Bug Description
The autovacuum job in 7.0 which removes transient objects tries to remove records from portal_wizard with a statement like:
delete from portal_wizard where id in (1,2,3)
This statement fails because it tries to set the field wizard_id to NULL in portal_wizard_user which is defined as not null
The effect is that the objects are never pruned.
Solution is either to allow null in the wizard_id field or do a cascade.
Related branches
lp://staging/~etsinko/openobject-addons/trunk-fix-1135601
Ready for review
for merging
into
lp://staging/openobject-addons
- OpenERP Core Team: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedportal/wizard/portal_wizard.py (+1/-1)
To post a comment you must log in.
Another solution would be to delete the portal.wizard.user objects first, but I don't know if the order of objects can be specified for the autovacuum job