Skip to Content
Menu
This question has been flagged
3 Replies
2526 Views

RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "/home/odoo/src/odoo/15.0/odoo/addons/base/models/ir_http\.py",\ line\ 237,\ in\ _dispatch

 \  \ result\ =\ request\.dispatch\(\)

 \ File\ "/home/odoo/src/odoo/15\.0/odoo/http\.py",\ line\ 698,\ in\ dispatch

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

 \ File\ "/home/odoo/src/odoo/15\.0/odoo/http\.py",\ line\ 368,\ in\ _call_function

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

 \ File\ "/home/odoo/src/odoo/15\.0/odoo/service/model\.py",\ line\ 94,\ in\ wrapper

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

 \ File\ "/home/odoo/src/odoo/15\.0/odoo/http\.py",\ line\ 357,\ in\ checked_call

 \  \ result\ =\ self\.endpoint\(\*a,\ \*\*kw\)

 \ File\ "/home/odoo/src/odoo/15\.0/odoo/http\.py",\ line\ 921,\ in\ __call__

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

 \ File\ "/home/odoo/src/odoo/15\.0/odoo/http\.py",\ line\ 546,\ in\ response_wrap

 \  \ response\ =\ f\(\*args,\ \*\*kw\)

 \ File\ "/home/odoo/src/odoo/15\.0/addons/web/controllers/main\.py",\ line\ 1328,\ in\ call_button

 \  \ action\ =\ self\._call_kw\(model,\ method,\ args,\ kwargs\)

 \ File\ "/home/odoo/src/odoo/15\.0/addons/web/controllers/main\.py",\ line\ 1316,\ in\ _call_kw

 \  \ return\ call_kw\(request\.env\[model\],\ method,\ args,\ kwargs\)

 \ File\ "/home/odoo/src/odoo/15\.0/odoo/api\.py",\ line\ 469,\ in\ call_kw

 \  \ result\ =\ _call_kw_multi\(method,\ model,\ args,\ kwargs\)

 \ File\ "/home/odoo/src/odoo/15\.0/odoo/api\.py",\ line\ 456,\ in\ _call_kw_multi

 \  \ result\ =\ method\(recs,\ \*args,\ \*\*kwargs\)

 \ File\ "/home/odoo/src/odoo/15\.0/addons/portal/wizard/portal_wizard\.py",\ line\ 140,\ in\ action_grant_access

 \  \ user_sudo\ =\ self\.sudo\(\)\.with_company\(company\.id\)\._create_user\(\)

 \ File\ "/home/odoo/src/odoo/15\.0/addons/portal/wizard/portal_wizard\.py",\ line\ 199,\ in\ _create_user

 \  \ return\ self\.env\['res\.users'\]\.with_context\(no_reset_password=True\)\._create_user_from_template\(\{

 \ File\ "/home/odoo/src/odoo/15\.0/addons/auth_signup/models/res_users\.py",\ line\ 135,\ in\ _create_user_from_template

 \  \ raise\ ValueError\(_\('Signup:\ invalid\ template\ user'\)\)

Exception


The\ above\ exception\ was\ the\ direct\ cause\ of\ the\ following\ exception:


Traceback\ \(most\ recent\ call\ last\):

 \ File\ "/home/odoo/src/odoo/15\.0/odoo/http\.py",\ line\ 654,\ in\ _handle_exception

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

 \ File\ "/home/odoo/src/odoo/15\.0/odoo/http.py", line 301, in _handle_exception

    raise exception.with_traceback(None) from new_cause

ValueError: Signup: invalid template user


Avatar
Discard
Best Answer

Hi,

This error can be caused due to an error in the template used when granting portal access to a partner. One way to solve this is under technical -> views (which you can see after enabling debug mode)Search for the template Signup and under the action menu, you get the option to Compare/Reset.


Hope it helps

Avatar
Discard
Author

Thank you so much for your help

Best Answer

The error message "Signup: invalid template user" indicates that there is an issue with the template user used during the creation of a new user in the context of granting access to a portal in Odoo. This issue seems to be related to the portal module, which handles user access to the portal.


Here are some steps you can take to troubleshoot and resolve the issue:


    Check User Template:

    Ensure that the user template used for creating the portal user is valid and exists in the system. The template user is typically used as a reference when creating new portal users.


    Verify Portal Configuration:

    Check the portal configuration settings in Odoo. Verify that the user template specified for creating portal users is correct. This is usually configured in the settings of the portal module.


    Check Dependencies:

    Ensure that all dependencies, especially those related to the portal module, are correctly installed and up-to-date. Check for any updates or patches related to the portal module that might address this issue.


    Review User Creation Process:

    Review the user creation process, specifically in the context of granting access to the portal. Check if there are any customizations or modules that might interfere with the default behavior.


    Check User Roles and Access Rights:

    Verify that the user creating the portal user has the necessary roles and access rights to perform user creation operations. Ensure that there are no restrictions preventing the creation of portal users.


    Review Code and Customizations:

    If you have made customizations or have additional modules installed that interact with user creation or the portal module, review the code and check for any issues that might cause the "invalid template user" error.

Avatar
Discard
Author

Thank you so much for your help

Best Answer

The error message "ValueError: Signup: invalid template user" indicates, that the template portal user was deleted or can't be found. 

The following solution should work:

  1. Update "base" module to recreate the portal template user.
  2. Go to "Settings - Technical - System Parameters" (Developer Mode has to be activated)
  3. Edit the Parameter "base.template_portal_user_id" and add the ID of the new template portal user. If the parameter doesn't exist you can create it.


Avatar
Discard
Related Posts Replies Views Activity
2
Oct 22
2886
0
Aug 23
1937
1
Mar 25
4299
2
Jul 25
1335
1
Jun 25
1547