base_crypt not works! it install but not show passwd field

Asked by Nhomar - Vauxoo

This module is not working propiertly..

It install but not do nothing and since you install it, you can't create more users...

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nhomar - Vauxoo (nhomar) said :
#1

The error is:

Traceback (most recent call last):
  File "/home/disco-antiguo/openerp/main/5.0/server/bin/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/disco-antiguo/openerp/main/5.0/server/bin/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/home/disco-antiguo/openerp/main/5.0/server/bin/service/web_services.py", line 583, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/home/disco-antiguo/openerp/main/5.0/server/bin/osv/osv.py", line 61, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/disco-antiguo/openerp/main/5.0/server/bin/osv/osv.py", line 120, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/disco-antiguo/openerp/main/5.0/server/bin/osv/osv.py", line 112, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/disco-antiguo/openerp/main/5.0/server/bin/addons/base/res/res_user.py", line 185, in write
    res = super(users, self).write(cr, uid, ids, values, *args, **argv)
  File "/home/disco-antiguo/openerp/main/5.0/server/bin/osv/orm.py", line 2553, in write
    result += self._columns[field].set(cr, self, id, field, vals[field], user, context=rel_context) or []
  File "/home/disco-antiguo/openerp/main/5.0/server/bin/osv/fields.py", line 671, in set
    self._fnct_inv(obj, cr, user, id, name, value, self._fnct_inv_arg, context)
  File "/home/disco-antiguo/openerp/main/5.0/server/bin/addons/base_crypt/crypt.py", line 222, in set_pw
    self.write( cr, uid, id, { 'password' : encrypt_md5( value, gen_salt() ) } )
  File "/home/disco-antiguo/openerp/main/5.0/server/bin/addons/base_crypt/crypt.py", line 72, in encrypt_md5
    hash = md5.new( raw_pw + magic + salt )
TypeError: unsupported operand type(s) for +: 'bool' and 'str'

After click "save" button.
Obviously, the paswd field is not shown in view_users_form

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#2

Hello Nhomar Hernández,

Sorry for any inconvenience, this is a real bug.

It has been fixed today.

Would you please update your code?

However, it can only occur when you do not provide password while creating new entry.

Password is not shown, as its encrypted.

Thank you for reporting.

You may close this thread.

Revision history for this message
numahell (emmanuelle-helly) said :
#3

Hello,
I've encountered this problem too, where could I find the code up to date ? In openobject website download section, the module is dated of the 15th of april, 2009.
thank you

Can you help with this problem?

Provide an answer of your own, or ask Nhomar - Vauxoo for more information if necessary.

To post a message you must log in.