In Odoo, If we want to trigger a python function, it can be done with the help of _rpc calls.

this._rpc({
        	model: this.model,
        	method: 'quick_publish_products',
        	args: [this.res_id],
    	}).then(function (result) {
        	self.do_action(result);
    	});

  

posted @ 2023-09-21 18:58  CrossPython  阅读(9)  评论(0编辑  收藏  举报