Integrity Errors should appear as user-friendly!
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Medium
|
Ravi Gadhia (OpenERP) |
Bug Description
Hello,
When I delete a partner, the corresponding line in res_partner_address is not deleted or at least the value in the field partner_id. then, If I've some contacts that were affilied to the same address, the fact to display them causes a crash :
Environment Information :
System : Windows-32bit-SP1
OS Name : nt
Operating System Release :
Operating System Version : 32bit
Operating System Architecture : 32bit
Operating System Locale : fr_CH.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.3
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/lib/
result = LocalService(
File "/usr/lib/
return getattr(self, method)(*params)
File "/usr/lib/
res = service.execute(db, uid, object, method, *args)
File "/usr/lib/
return f(self, dbname, *args, **kwargs)
File "/usr/lib/
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/lib/
res2 = self._columns[
File "/usr/lib/
res = self._fnct(obj, cr, user, ids, name, self._arg, context)
File "/usr/lib/
return res
KeyError: 7610
the KeyErrro value is the id of the partner that was deleted.
Now, In the same way. If I try to delete a partner that has an invoice in account_invoice, I get the following warning :
null value in column "partner_id" violates not-null constraint
CONTEXT: SQL statement "UPDATE ONLY "public"
For end users, wouldn't it be better to have a message like ' Deleting not possible, corresponding recors in the accounting ...' ?
thanks
Changed in openobject-server: | |
status: | Confirmed → Invalid |
Changed in openobject-server: | |
status: | Invalid → Confirmed |
summary: |
- Deleting a partner doesnt delete the corresponding line in - res_partner_address + Integrity Errors should appear as user-friendly! |
Changed in openobject-server: | |
milestone: | none → 6.0 |
assignee: | Jay (Open ERP) (jvo-openerp) → RGA(Open ERP) (rga-openerp) |
Need to implement a message system like warning module