跳至内容
菜单
此问题已终结
2 回复
4915 查看

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
4331
3
2月 25
4696
1
6月 23
2040
1
5月 23
1995
1
10月 22
4158