Valeureux / wezer-exchange

Odoo for Communities Verticalization
GNU Affero General Public License v3.0
3 stars 4 forks source link

community_send_notification is breaking creation of Back Office users #51

Open KaloyanNaumov opened 8 years ago

KaloyanNaumov commented 8 years ago

when the community_send_notification module is installed, the Administrator cannot create users from the Back Office.

The workaround is that you can register a user from the Portal and can then upgrade it to Back Office user.

The exception is: Traceback (most recent call last): File "/opt/odoo8/odoo/openerp/http.py", line 544, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo8/odoo/openerp/http.py", line 581, in dispatch result = self._call_function(**self.params) File "/opt/odoo8/odoo/openerp/http.py", line 317, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo8/odoo/openerp/service/model.py", line 118, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo8/odoo/openerp/http.py", line 314, in checked_call return self.endpoint(*a, **kw) File "/opt/odoo8/odoo/openerp/http.py", line 810, in __call__ return self.method(*args, **kw) File "/opt/odoo8/odoo/openerp/http.py", line 410, in response_wrap response = f(*args, **kw) File "/opt/odoo8/odoo/addons/web/controllers/main.py", line 944, in call_kw return self._call_kw(model, method, args, kwargs) File "/opt/odoo8/odoo/addons/web/controllers/main.py", line 936, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs) File "/opt/odoo8/odoo/openerp/api.py", line 268, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo8/odoo/addons/base_action_rule/base_action_rule.py", line 188, in create new_id = create.origin(self, cr, uid, vals, context=context, **kwargs) File "/opt/odoo8/odoo/openerp/api.py", line 268, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo8/odoo/addons/auth_signup/res_users.py", line 306, in create self.action_reset_password(cr, uid, [user.id], context=context) File "/opt/odoo8/odoo/openerp/api.py", line 268, in wrapper return old_api(self, *args, **kwargs) **File "/opt/odoo8/extra/vertical-community/community_send_notification/notification.py", line 176, in action_reset_password self.pool.get('email.template').send_mail(cr, uid, template_id.id, user.id, force_send=False,raise_exception=True, context=context) AttributeError: 'bool' object has no attribute 'id'**

Yakulu commented 7 years ago

I took a look but can not reproduce your issue. I can create users, change their password.... with a fresh setup and community_send_notification module installed. Can you provide a list of your installed modules, and from which repositories they come ?

Thank you.