The provided source material documents a technical issue encountered during the configuration of Odoo SaaS Portal, specifically related to a TypeError when attempting to set parameters in the system. This article examines the error, its context, and potential implications for users implementing Odoo SaaS solutions.
Error Description and Context
The source material describes a specific error encountered by a user following the official installation instructions for Odoo 11 Community Edition. The error occurs during step 4 of the setup process when configuring the Main Database. Specifically, the user attempts to set the Base SaaS domain in the Settings/SaaS Portal Settings section, but encounters a TypeError.
The error message indicates:
TypeError: set_param() got an unexpected keyword argument 'groups'
This error originates from a Python code execution path in the Odoo framework, specifically in the file "/home/dstadel/eclipse-workspace/odoo-custom-addons/saasportal/models/irconfigparameter.py" at line 19, within the setparam method.
Error Analysis
The traceback reveals the sequence of events leading to the error:
- The user attempts to configure the SaaS Portal settings through the web interface
- This triggers a call to the setvalues() method in resconfig.py (line 544)
- The call propagates through multiple modules: website, auth_signup, and mail
- Ultimately, the error occurs when the system tries to execute:
python self.env['ir_config_parameter'].sudo().set_param("base_setup.default_external_email_server", self.default_external_email_server)
The specific error indicates that the set_param() method is being called with a 'groups' parameter that it does not accept. This suggests an incompatibility between the custom SaaS portal implementation and the base Odoo framework in version 11.
Potential Causes
Based on the source material, the error may be attributed to one or more of the following factors:
Version Incompatibility: The user notes that V11 might still be work in progress, suggesting that the SaaS Portal tools may not be fully compatible with the latest version of Odoo at the time of implementation.
Implementation Issues: The error occurs in the custom addon file "/home/dstadel/eclipse-workspace/odoo-custom-addons/saasportal/models/irconfig_parameter.py", indicating that the issue might stem from how the SaaS Portal tools have been implemented or extended.
API Changes: The TypeError regarding an unexpected keyword argument suggests that the API for the set_param() method may have changed between Odoo versions, breaking compatibility with the SaaS Portal implementation.
Impact on Users
For users attempting to implement the Odoo SaaS Portal solution, this error represents a significant roadblock in the setup process. The configuration step that fails is critical for establishing the base domain for the SaaS environment, which is fundamental to the multi-tenant architecture that SaaS Portal enables.
The error prevents users from completing the installation as documented in the official setup instructions, potentially leading to: - Implementation delays - Requirement for technical intervention - Consideration of alternative versions (as suggested by the user in the issue)
Resolution Considerations
The source material does not provide specific resolution steps, but based on the error context, potential approaches might include:
Version Compatibility: As suggested by the user, implementing the solution on Odoo V10 instead of V11 might avoid this particular error if the SaaS Portal tools are more mature in that version.
Code Modification: Addressing the incompatibility in the custom addon by updating the set_param() call to match the expected API in Odoo 11.
Waiting for Updates: If this is a known issue in a work-in-progress version, waiting for updated SaaS Portal tools that are compatible with Odoo 11.
Conclusion
The provided source material documents a technical configuration error in the Odoo SaaS Portal implementation for version 11. The TypeError occurs when attempting to set system parameters during the setup process, specifically when configuring the Base SaaS domain. The error appears to stem from an incompatibility between the SaaS Portal custom implementation and the base Odoo framework, potentially due to API changes between versions. For users encountering this issue, considering alternative versions or implementing code modifications may be necessary to proceed with the SaaS Portal setup.