← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 604347] Re: ondelete='cascade' constraint not generated in postgres

 

Hello Dr Ferdinand, Experts,

   We need to discuss more on this. Would you please share your views?

Thanks.

** Changed in: openobject-server
       Status: New => Triaged

** Changed in: openobject-server
   Importance: Undecided => Wishlist

-- 
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.