Can not create an Audit and Non-Conformities

Bug #1267840 reported by Simon Wagner
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenERP Management System
In Progress
Undecided
Sandy Carter (http://www.savoirfairelinux.com)

Bug Description

Hi,

When creating an audit or Non-Conformities I get the following error. I can not use this module.

Regards,
Simon

OpenERP Server Error

Client Traceback (most recent call last):

  File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 204, in dispatch

    response["result"] = method(self, **self.params)

  File
"/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1128, in call_kw

    return self._call_kw(req, model, method, args, kwargs)

  File
"/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1120, in _call_kw

    return getattr(req.session.model(model), method)(*args, **kwargs)

  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 42, in proxy

    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)

  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 30, in proxy_method

    result = self.session.send(self.service_name, method, *args)

  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 103, in send

    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):

  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 89, in send

    return openerp.netsvc.dispatch_rpc(service_name, method, args)

  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 292, in dispatch_rpc

    result = ExportService.getService(service_name).dispatch(method, params)

  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch

    res = fn(db, uid, *params)

  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 188, in execute_kw

    return self.execute(db, uid, obj, method, *args, **kw or {})

  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 131, in wrapper

    return f(self, dbname, *args, **kwargs)

  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 197, in execute

    res = self.execute_cr(cr, uid, obj, method, *args, **kw)

  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 185, in execute_cr

    return getattr(object, method)(cr, uid, *args, **kw)

  File
"/usr/lib/pymodules/python2.7/openerp/addons/base_action_rule/base_action_ru
le.py", line 144, in wrapper

    new_id = old_create(cr, uid, vals, context=context)

  File
"/usr/lib/pymodules/python2.7/openerp/addons/mgmtsystem_audit/mgmtsystem_aud
it.py", line 59, in create

    return super(mgmtsystem_audit, self).create(cr, uid, vals, context)

  File "/usr/lib/pymodules/python2.7/openerp/addons/mail/mail_thread.py",
line 256, in create

    self.message_auto_subscribe(cr, uid, [thread_id], create_values.keys(), context=context, values=create_values)

TypeError: message_auto_subscribe() got an unexpected keyword argument 'values'

Related branches

Changed in openerp-mgmtsystem:
assignee: nobody → Sandy Carter (http://www.savoirfairelinux.com) (sandy-carter)
Changed in openerp-mgmtsystem:
status: New → Fix Committed
Changed in openerp-mgmtsystem:
status: Fix Committed → Fix Released
Revision history for this message
Nadeem (nadeem404) wrote :
Download full text (137.5 KiB)

Hi

Applied the fix by changing those 3 out of 4 files.
For fourth file, can't find those fix lines in "mgmtsystem_nonconformity" at this location "mgmtsystem_nonconformity_deptm". So left 4th file with no changes.

After restarting the openerp and postgre service, I get "no handler found" error :(

Anyway I put back original files, openerp is back on.

Please I need fix for creating audit and non-conformance. I receive this error, not the one of Simon Wagner

OpenERP Server Error

Client Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\web\http.py", line 204, in dispatch
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\web\controllers\main.py", line 1128, in call_kw
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\web\controllers\main.py", line 1120, in _call_kw
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\web\session.py", line 42, in proxy
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\web\session.py", line 30, in proxy_method
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\web\session.py", line 103, in send

Server Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\web\session.py", line 89, in send
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\.\openerp\netsvc.py", line 292, in dispatch_rpc
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\.\openerp\service\web_services.py", line 626, in dispatch
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\.\openerp\osv\osv.py", line 188, in execute_kw
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\.\openerp\osv\osv.py", line 131, in wrapper
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\.\openerp\osv\osv.py", line 197, in execute
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\audittrail\audittrail.py", line 514, in execute_cr
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\.\openerp\osv\osv.py", line 185, in execute_cr
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\mgmtsystem_nonconformity\mgmtsystem_nonconformity.py", line 199, in create
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\mail\mail_thread.py", line 250, in create
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\mail\mail_thread.py", line 1159, in message_subscribe_users
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\mail\mail_thread.py", line 1173, in message_subscribe
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\mail\mail_thread.py", line 271, in write
  File "C:\Program Files (x86)\OpenERP 7.0-20130530-231307\Server\server\openerp\addons\mgmtsystem_nonconformity\mgmtsystem_nonconformity.py", line ...

Revision history for this message
Nadeem (nadeem404) wrote :

Well, it is working now after an upgrade of mgmtsystem_action module.
But it works only for an administrator.
When I login using an user,viewer,approved user or auditor, I cannot access audits and claims and non-conformity.
I get the attached error.
And I have added all those mgmt groups to access audits and claims and nonconformity. But still doesnt work.
Please help me.

Regards

Nadeem

Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :
Changed in openerp-mgmtsystem:
status: Fix Released → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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