摘要: setup (){ this.action = useService("action"); } this.action.doAction({ type: 'ir.actions.client', tag: 'display_notification', params:{ 'title': "提醒", 阅读全文
posted @ 2023-10-03 15:06 CrossPython 阅读(45) 评论(0) 推荐(0) 编辑
摘要: odoo中如果前端界面要调用后台model中写好的方法,很简单。使用 do_action 即可,比如要调用改res.users的默认语言后执行的方法 odoo.define('switch_language.SwitchLanguageMenu', function (require) { "use 阅读全文
posted @ 2023-10-03 14:42 CrossPython 阅读(112) 评论(0) 推荐(0) 编辑