Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4854 Zobrazení

in odoo 8 

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

how to write the same client action in odoo 9  

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit

Thanks Axel .....!

Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
srp 22
4253
3
úno 25
4605
1
čvn 23
1944
1
kvě 23
1897
1
říj 22
4057