Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
4976 Vistas

in odoo 8 

instance.web.client_actions.add( 'petstore.homepage', 'instance.oepetstore.HomePage');

how to write the same client action in odoo 9  

Avatar
Descartar
Mejor respuesta

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);
Avatar
Descartar

Thanks Axel .....!

Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ago 22
4422
3
feb 25
4798
1
jun 23
2131
1
may 23
2078
1
oct 22
4239