Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
9 Відповіді
16450 Переглядів

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

Аватар
Відмінити

I got the same error, it's said

Invalid Operation
The module <module_name> cannot be downloaded

Автор

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

Найкраща відповідь

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.

Аватар
Відмінити

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.

Найкраща відповідь

You can otherwise go through the view list

Аватар
Відмінити

this solved it for me, why? no idea.

Найкраща відповідь

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

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Найкраща відповідь

not work. 


'module_type': 'official'


also not helpful 

Аватар
Відмінити
Найкраща відповідь

it's work for me thank you

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити

@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 Відповіді Переглядів Дія
4
трав. 25
1112
2
трав. 25
4222
1
бер. 25
603
4
бер. 25
3283
3
лют. 25
3945