Community mailing list archives

community@mail.odoo.com

Re: HELP

by
Vianney Adou
- 02/12/2016 02:48:51
hello ,
for me i've add my user in the acces right group who has gid "3" .
For do it, insert one line in res_groups_users_rel as :
cr.execute("insert into res_groups_users_rel (gid,uid) values (3,{0})".format(id_of_user_you_want_use_to_add_new_user))


Add this code in you create or write method of res_users class .

Regards.

2016-02-12 6:12 GMT+00:00 Jacquelin INTC <jacquelin@intc-madagascar.com>:

Hello every body

Can someone help me, I need to add a user is the message that displays


Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 537, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 574, in dispatch

    result = self._call_function(**self.params)

  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 310, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper

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

  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 307, in checked_call

    return self.endpoint(*a, **kw)

  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 803, in __call__

    return self.method(*args, **kw)

  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 403, in response_wrap

    response = f(*args, **kw)

  File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 944, in call_kw

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

  File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 936, in _call_kw

    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper

    return old_api(self, *args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 1545, in fields_view_get

    xarch, xfields = View.postprocess_and_fields(cr, uid, self._name, etree.fromstring(result['arch']), view_id, context=ctx)

  File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper

    return old_api(self, *args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_ui_view.py", line 837, in postprocess_and_fields

    self.raise_view_error(cr, user, message, view_id, context)

 File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper

    return old_api(self, *args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_ui_view.py", line 360, in raise_view_error

    raise AttributeError(message)

AttributeError: Field `in_group_45` does not exist

 

Error context:

View `res.users.form`

[view_id: 156, xml_id: base.view_users_form, model: res.users, parent_id: n/a]

« 

 


Best regards.

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe