Skip to Content
Menu
This question has been flagged
2 Replies
5194 Zobrazenia

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šiť
Best Answer

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šiť

Thanks Axel .....!

Best Answer

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šiť
Related Posts Replies Zobrazenia Aktivita
0
aug 22
4728
3
feb 25
5036
1
jún 23
2376
1
máj 23
2312
1
okt 22
4503