csv import - error message must give record number and content

Bug #355493 reported by Ferdinand
2
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Jay Vora (Serpent Consulting Services)

Bug Description

this is an unusable error message

"The code of the account must be unique per company !"

It must show the code which raises the error

Related branches

Revision history for this message
Ferdinand (office-chricar) wrote :

XML-RPC error !

('warning -- Constraint Error\n\nThe code of the account must be unique per company !', 'Traceback (most recent call last):\n File "/data/downloads/bzr/branch/server/5.0/bin/netsvc.py", line 235, in dispatch\n result = LocalService(service_name)(method, *params)\n File "/data/downloads/bzr/branch/server/5.0/bin/netsvc.py", line 74, in __call__\n return getattr(self, method)(*params)\n File "/data/downloads/bzr/openobject-server/bin/addons/audittrail/audittrail.py", line 341, in execute\n res = my_fct( db, uid, passwd, object, method, *args)\n File "/data/downloads/bzr/openobject-server/bin/addons/audittrail/audittrail.py", line 326, in my_fct\n return fct_src( db, uid, passwd, object, method, *args)\n File "/data/downloads/bzr/branch/server/5.0/bin/service/web_services.py", line 497, in execute\n res = service.execute(db, uid, object, method, *args)\n File "/data/downloads/bzr/branch/server/5.0/bin/osv/osv.py", line 67, in wrapper\n self.abortResponse(1, \'Constraint Error\', \'warning\', self._sql_error[key])\n File "/data/downloads/bzr/branch/server/5.0/bin/netsvc.py", line 59, in abortResponse\n raise Exception("%s -- %s\\n\\n%s"%(origin, description, details))\nException: warning -- Constraint Error\n\nThe code of the account must be unique per company !\n')

Changed in openobject-server:
assignee: nobody → JJA (OpenERP) (jja-openerp)
status: New → In Progress
Changed in openobject-server:
assignee: JJA (OpenERP) (jja-openerp) → sme(Tiny/Axelor) (sme.tiny.axelor)
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Ferdinand,

Kindly apply this patch on your trunk version and notify us.

Thank you for reporting.

Changed in openobject-server:
assignee: sme(Tiny/Axelor) (sme.tiny.axelor) → Jay (Open ERP) (jvo-openerp)
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Here its the corrected patch for locale-free problems.

Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Fixed in revision 1803.
Thanks.

Changed in openobject-server:
status: In Progress → 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.