Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
4845 Переглядів

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
4247
3
лют. 25
4601
1
черв. 23
1942
1
трав. 23
1891
1
жовт. 22
4055