Skip to Content
Menu
This question has been flagged
9 Replies
15878 Views

Hi,

When trying to install my custom module after installing Odoo 17 Enterprise I get the following error:


Invalid Operation

Connection to https://apps.odoo.com failed, the module estate cannot be downloaded.


I tried to create a simple dummy module to test and the same issue is there.


Can you please help?

Regards,

Salim

Avatar
Discard

I got the same error, it's said

Invalid Operation
The module <module_name> cannot be downloaded

Author

Adding adding 'module_type': 'official' to the manifest didn't help in my case. Where did you find that information?

I just realized that the kanban view have 2 different "Activate" button(hence calling different function) for official and 'non-official' module.
The error happen when the button call 'button_immediate_install_app", and it tries to download the module from somewhere. The desired function is "button_immediate_install", so the other way to solve it is by changing the kanban view on app list, to make it call the correct function.

thank you Lizard Touch,
for me, kanban view on app list is giving error. I changed to list view , then activate the module, it works..!

Best Answer

I solved this by adding 'module_type': 'official' on the manifest file(which kinda strange way to solve it). Not sure on how to correctly do it tho.

Avatar
Discard

Cool, It's worked

Yes, this works - in fact, it is the correct solution.
Unfortunatelly Odoo doesn't always "pick up" the latest info from the manifest (especially if the module existed before), so it can be a pain to get Odoo to make use of this option...
The fact that they made the "non-official" (!?!?) the default behavior is baffling.

Best Answer

You can otherwise go through the view list

Avatar
Discard

this solved it for me, why? no idea.

Best Answer

thanks, so much the activate button on the list view also worked for me. 

Avatar
Discard
Best Answer

Try to check if there are some views or templates with  <?xml version="1.0" encoding="utf-8"?> it happened to me and I removed them and I can install the custom module

Avatar
Discard
Best Answer

The module type setting in the manifest does work:

'module_type': 'official'

But it is somehow not 100%, every now and then the problem seems to "come back"; which is weird... looking at the source code, it should really just work like this.

Anyway, it was just a choice from Odoo to add this - this seems to be the "settings" to differentiate industry modules, but for some crazy reason, they decided to make it default to fetch module info from the remote site (eg. industry module) instead of the other way around - and used a very strange term for it too... "official"  makes it sound like it came from Odoo.

Basically the activate/upgrade button on modules is replaced with the remote install button when the module type is not "official":
https://github.com/odoo/odoo/commit/234590f3db5b9e8518bf476e34591f5ab504328b
https://github.com/odoo/odoo/pull/140245

Avatar
Discard
Best Answer

Hi

i tried solution of module official but dos'nt work


so my solution is

in pycharm configuration add -i module name

it will install

Avatar
Discard
Best Answer

not work. 


'module_type': 'official'


also not helpful 

Avatar
Discard
Best Answer

it's work for me thank you

Avatar
Discard
Best Answer

I solved this issue.

Currently, Odoo17 kinda new and have a lot of changes recently. You can update code base and upgrade on a newly created database

Avatar
Discard

@sonhd i have the same issue
Invalid operation :The module ten10_report cannot be downloaded
How to slove this
Note: In my local there is no problem but in my server it gives this error

@Jenish M
You can try this first:

Update to the newest Odoo 17 codebase.
Upgrade with `-i base` on the newly created database.
If that doesn't work, add this key-value pair into __manifest__.py:
{
...
'module_type': 'official' ,
..
}

Then upgrade the module and try to reinstall it.

Related Posts Replies Views Activity
3
Apr 25
759
1
Mar 25
352
4
Mar 25
2964
3
Feb 25
3555
2
Feb 25
468