Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4853 Weergaven

in odoo 8 

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

how to write the same client action in odoo 9  

Avatar
Annuleer
Beste antwoord

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
Annuleer

Thanks Axel .....!

Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
aug. 22
4253
3
feb. 25
4605
1
jun. 23
1944
1
mei 23
1897
1
okt. 22
4057