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.
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp