Hello guys I am new to Odoo and I am using odoo16 version. I want to call Model Function in owl JavaScript file, but it shows 404 error and URL is made http://localhost:8069/[object%20Object] like this.
I am using RPC service this.rpc = useService("rpc")
await this.rpc({ model: 'hr.kpi.emp.desig', method: 'get_desig_emp', args: [] }).then(function (data) { console.log(data); }).catch( err => console.error(err));
I am trying to call Model function into JavaScript file. I created a component in static/src/components/