摘要:
odoo中如果前端界面要调用后台model中写好的方法,很简单。使用 do_action 即可,比如要调用改res.users的默认语言后执行的方法 odoo.define('switch_language.SwitchLanguageMenu', function (require) { "use 阅读全文
posted @ 2023-09-22 09:12
CrossPython
阅读(247)
评论(0)
推荐(0)
摘要:
实践环境 Odoo 14.0-20221212 (Community Edition) 代码实现 在js脚本函数中调用模型中自定义方法: this._rpc({ model: 'demo.wizard', // 模型名称,即模型类定义中 _name 的值 method: 'action_select 阅读全文
posted @ 2023-09-22 09:11
CrossPython
阅读(210)
评论(0)
推荐(0)
浙公网安备 33010602011771号