Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
4846 Представления

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
авг. 22
4251
3
февр. 25
4603
1
июн. 23
1942
1
мая 23
1892
1
окт. 22
4055