Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
4870 Tampilan

in odoo 8 

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

how to write the same client action in odoo 9  

Avatar
Buang
Jawaban Terbai

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
Buang

Thanks Axel .....!

Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Agu 22
4267
3
Feb 25
4627
1
Jun 23
1950
1
Mei 23
1921
1
Okt 22
4071