Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
4869 Prikazi

in odoo 8 

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

how to write the same client action in odoo 9  

Avatar
Opusti
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
Opusti

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
avg. 22
4264
3
feb. 25
4626
1
jun. 23
1949
1
maj 23
1921
1
okt. 22
4071