Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
4866 Visninger

in odoo 8 

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

how to write the same client action in odoo 9  

Avatar
Kassér
Bedste svar

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
Kassér

Thanks Axel .....!

Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
aug. 22
4262
3
feb. 25
4624
1
jun. 23
1946
1
maj 23
1906
1
okt. 22
4066