Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5005 Widoki

in odoo 8 

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

how to write the same client action in odoo 9  

Awatar
Odrzuć
Najlepsza odpowiedź

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);
Awatar
Odrzuć

Thanks Axel .....!

Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sie 22
4436
3
lut 25
4804
1
cze 23
2144
1
maj 23
2082
1
paź 22
4245