c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #05733
[Bug 604347] Re: ondelete='cascade' constraint not generated in postgres
I guess readonly=True and ondelete='cascade' create a conflict.
** Changed in: openobject-server
Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)
--
ondelete='cascade' constraint not generated in postgres
https://bugs.launchpad.net/bugs/604347
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Server: Triaged
Bug description:
class dimu_settlement_portal_all(osv.osv):
_inherit = "dimu.settlement_portal_all"
....
{ 'csv_file_id' : fields.many2one
('holophon.csv_files','CSV file', select=True, required=True, readonly=True, ondelete='cascade'),
the constraint is not generated in postgres.
we had some problems, because the filed was NULL initially, but even after fixing it the constraint is not generated during update of the module.