I'm following the Building Interface Extensions (https://www.odoo.com/documentation/11.0/howtos/web.html) with Odoo 11.
In the guide, it is stated that
"In Odoo web, modules are declared as functions set on the global odoo variable. The function's name must be the same as the addon (in this case oepetstore) so the framework can find it, and automatically initialize it."
But my module isn't being initialized and I get the following error:
"Action error - Could not find client action 'petstore.homepage'."
I put some logging in the module and I found that the file is being fetched by the browser, as expected, but the initialization isn't happening.
This is my JS file:
With Odoo 9 (after renaming the file __manifest__.py to __openerp__.py and renaming the JS var odoo to openerp), everything works as expected.
Why isn't it working with Odoo 11?