In Odoo, If we want to trigger a python function, it can be done with the help of _rpc calls.
1 2 3 4 5 6 7 | this._rpc({ model: this.model, method: 'quick_publish_products' , args: [this.res_id], }).then(function (result) { self .do_action(result); }); |
【推荐】100%开源!大型工业跨平台软件C++源码提供,建模,组态!
【推荐】AI 的力量,开发者的翅膀:欢迎使用 AI 原生开发工具 TRAE
【推荐】2025 HarmonyOS 鸿蒙创新赛正式启动,百万大奖等你挑战