Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
5099 Visualizzazioni

in odoo 8 

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

how to write the same client action in odoo 9  

Avatar
Abbandona
Risposta migliore

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
Abbandona

Thanks Axel .....!

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
ago 22
4590
3
feb 25
4935
1
giu 23
2291
1
mag 23
2229
1
ott 22
4391