in odoo 8
instance.web.client_actions.add( 'petstore.homepage', 'instance.oepetstore.HomePage');
how to write the same client action in odoo 9
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
in odoo 8
instance.web.client_actions.add( 'petstore.homepage', 'instance.oepetstore.HomePage');
how to write the same client action in odoo 9
In Odoo 9 you could do it like this
var core = require('web.core');
var Widget = require('web.Widget');
var petstore_homepage = Widget.extend({});
core.action_registry.add("petstore.homepage", petstore_homepage);
Thanks Axel .....!
Did you get this to work in Odoo v9? Care to share the petstore.js file?
I've tried lots of things and still get the:
Could not find client action
'petstore.homepage'
error
Thank you
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
0
ago. 22
|
4252 | ||
|
3
fev. 25
|
4604 | ||
|
1
jun. 23
|
1943 | ||
|
1
mai. 23
|
1894 | ||
|
1
out. 22
|
4056 |