コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4849 ビュー

in odoo 8 

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

how to write the same client action in odoo 9  

アバター
破棄
最善の回答

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);
アバター
破棄

Thanks Axel .....!

最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
8月 22
4252
3
2月 25
4604
1
6月 23
1943
1
5月 23
1894
1
10月 22
4056