c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #21655
[Bug 604347] Re: ondelete='cascade' constraint not generated in postgres
Same problem here :
'sale_order_id': fields.many2one('sale.order', 'Sale Order',
on_delete='cascade', readonly=True),
constraints are not generated. This is a serious problem and should not be listed as 'wishlist'.
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/604347
Title:
ondelete='cascade' constraint not generated in postgres
Status in OpenERP 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.