_constraints does not work properly

Bug #324727 reported by Mustufa Rangwala (Open ERP)
2
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned
Odoo Web Client
Fix Released
Undecided
Unassigned

Bug Description

Hello,
        If i create new crm.case with crm.case.section (for e.g 'Mettings') and after that if i try to modify that section(many2one) on that case form, like if i choose there parent section = 'Mettings' (same section as parent) ....it gives me warning message ("You can not create recursive sections"), Its good but then i can not prese 'Ok' or 'Cancel' buttons on that,
       This problem is general for all objects where _constraints used,
       Problem occurs on both gtk + etiny client.

Error:
tiny_socket.Myexception: ('warning -- ValidateError\n\nError occurred while validating the field(s) parent_id: Error ! You can not create recursive sections.', 'Traceback (most recent call last):\n File "/home/tiny/mytrunk_dec/openobject-server/bin/netsvc.py", line 229, in dispatch\n result = LocalService(service_name)(method, *params)\n File "/home/tiny/mytrunk_dec/openobject-server/bin/netsvc.py", line 74, in __call__\n return getattr(self, method)(*params)\n File "/home/tiny/mytrunk_dec/openobject-server/bin/service/web_services.py", line 481, in execute\n res = service.execute(db, uid, object, method, *args)\n File "/home/tiny/mytrunk_dec/openobject-server/bin/osv/osv.py", line 61, in wrapper\n self.abortResponse(1, inst.name, \'warning\', inst.value)\n File "/home/tiny/mytrunk_dec/openobject-server/bin/netsvc.py", line 59, in abortResponse\n raise Exception("%s -- %s\\n\\n%s"%(origin, description, details))\nException: warning -- ValidateError\n\nError occurred while validating the field(s) parent_id: Error ! You can not create recursive sections.\n')

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Fixed in trunk - <email address hidden>

Changed in openobject-client:
status: New → Fix Released
Changed in openobject-client-web:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.