Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
9 Odpovědi
18127 Zobrazení

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
Zrušit

I got the same error, it's said

Invalid Operation
The module <module_name> cannot be downloaded

Autor

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..!

Nejlepší odpověď

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
Zrušit

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.

Nejlepší odpověď

You can otherwise go through the view list

Avatar
Zrušit

this solved it for me, why? no idea.

Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

not work. 


'module_type': 'official'


also not helpful 

Avatar
Zrušit
Nejlepší odpověď

it's work for me thank you

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit

@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 Odpovědi Zobrazení Aktivita
4
kvě 25
2579
2
kvě 25
5958
1
bře 25
1719
4
bře 25
4570
3
úno 25
5576