Wednesday, July 29, 2015
1 change · master
Resolved issues and error corrections
This fix prevents website event sales from failing when the default event ticket product has been deleted. The system now looks up the default ticket in a way that avoids outdated cached information, reducing unexpected errors for users managing event registrations.
Original PR description
Before this request.registry.get('ir.model.data').get_object_reference()
was used to grab the event_sale.product_product_event record. After
deletion of this product get_object_reference() would still return the
old id, which upon usage would throw a MissingError exception.
So to fix this, bypass the registry caches by using just
request.env.ref().
TASK: https://www.odoo.com/web#id=19616&view_type=form&model=project.task&action=327
PAD: https://pad.odoo.com/p/r.aSQyULesdtZ6QttD