I encountered an issue while attempting to import a custom module named pos_receipt_extend. The system returns an "Invalid Operation" error during the import process.
Error Message:
Invalid Operation
Error while importing module 'pos_receipt_extend'.
Traceback (most recent call last):
File "/home/odoo/src/odoo/saas-19.2/addons/base_import_module/models/ir_module.py", line 384, in _import_zipfile
self.sudo()._import_module(mod_name, path, force=force, with_demo=with_demo)
File "/home/odoo/src/odoo/saas-19.2/addons/base_import_module/models/ir_module.py", line 150, in _import_module
assert terp.get('installable', True), "Module not installable"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Module not installable
Steps to Reproduce:
Navigate to Apps → Import Module.
Upload the pos_receipt_extend module (ZIP file).
Attempt to install/import the module.
Expected Behavior:
The module should be successfully imported and installed.
Actual Behavior:
The system raises an AssertionError indicating that the module is not installable.
Environment:
Odoo Version: saas-19.2
Deployment: Odoo Online
Additional Notes:
It appears that the issue may be related to the module manifest configuration (e.g., installable flag). Assistance in identifying and resolving the root cause would be appreciated.
Please let me know if you need access to the module files or further details.
Hello,
let me know if you need any help to resolve this issue.
Thanks
Third-party apps on Odoo Online support only data files (like XML). If the app includes Python files, you’ll need to modify it to be importable by removing or refactoring the Python logic.
Thanks
info@codespheretech.in
Yes help me please
I have odoo On-premise hosted on my PC and the problem still:
Invalid Operation
Error while importing module 'pos_receipt_extend'. Traceback (most recent call last): File "C:\Program Files\Odoo 19.0.20260407\server\odoo\addons\base_import_module\models\ir_module.py", line 384, in _import_zipfile self.sudo()._import_module(mod_name, path, force=force, with_demo=with_demo) File "C:\Program Files\Odoo 19.0.20260407\server\odoo\addons\base_import_module\models\ir_module.py", line 172, in _import_module convert_file(self.env, module, filename, idref, mode, noupdate, pathname=pathname) File "C:\Program Files\Odoo 19.0.20260407\server\odoo\tools\convert.py", line 693, in convert_file convert_xml_import(env, module, fp, idref, mode, noupdate) File "C:\Program Files\Odoo 19.0.20260407\server\odoo\tools\convert.py", line 792, in convert_xml_import obj.parse(doc.getroot()) File "C:\Program Files\Odoo 19.0.20260407\server\odoo\tools\convert.py", line 663, in parse self._tag_root(de) File "C:\Program Files\Odoo 19.0.20260407\server\odoo\tools\convert.py", line 616, in _tag_root raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ odoo.tools.convert.ParseError: while parsing file:/c:/windows/temp/tmppo7a4s0u/pos_receipt_extend/views/res_config_settings_views.xml:4 Error while validating view near: <field name="is_root_company" invisible="1"/> <app data-string="General Settings" string="General Settings" name="general_settings" logo="/base/static/description/settings.png"> <div id="invite_users"> <block title="Users" name="users_setting_container"> Field "customer_details" does not exist in model "res.config.settings" View error context: {'file': 'c:\\windows\\temp\\tmppo7a4s0u\\pos_receipt_extend\\views\\res_config_settings_views.xml', 'line': 4, 'name': '\n' ' ' 'res.config.settings.view.form.inherit.pos.receipt.extend\n' ' ', 'view': ir.ui.view(1736,), 'view.model': 'res.config.settings', 'view.parent': ir.ui.view(1217,), 'xmlid': 'res_config_settings_view_form'}
If you are on-premise then you don't need to import it. You can add it on custom-addons folder and load it into odoo apps and installed it.
The error you are facing due to python field not loaded in system. Python field not supported via importing the module.
You must need to change in this app if you are want to use it on Odoo online.
Hope this information help you to understand the app behaviour on Odoo.
Thanks