İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
4855 Görünümler

in odoo 8 

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

how to write the same client action in odoo 9  

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç

Thanks Axel .....!

En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Ağu 22
4253
3
Şub 25
4605
1
Haz 23
1944
1
May 23
1897
1
Eki 22
4057