Hi how to calling custom method python on odoo on xml rpc from android code example my method like this
def _get_salesteam_filter(self,user_id):
job_id = self.env['hr.employee'].search([('user_id', '=', user_id)]).job_id.id
sequence = self.env['sales_report_custom.sales_team_filter'].search([['job', '=', job_id]]).sequence
filters = self.env['sales_report_custom.sales_team_filter'].search([['sequence', '>=', sequence]])
when i call my method on xml rpc, i have error like this
TypeError: get_salesteam_filter_mobile() takes exactly 2 arguments (1 given)
i put 2 parameter (self, user_id) on my android code
List data = Arrays.asList(new HashMap() {{ put("self",false); put("user_id",uid); }});
but still error, Do you have an idea ?
my guess, self parameter is not recognized
Thanks!