摘要:
setup (){ this.action = useService("action"); } this.action.doAction({ type: 'ir.actions.client', tag: 'display_notification', params:{ 'title': "提醒", 阅读全文
摘要:
odoo中如果前端界面要调用后台model中写好的方法,很简单。使用 do_action 即可,比如要调用改res.users的默认语言后执行的方法 odoo.define('switch_language.SwitchLanguageMenu', function (require) { "use 阅读全文