You should update this String by the param which is funcName
It looks like there might be an issue with how you're sending the request to the Odoo server. In your callRPC function, you're setting the method name as a string 'funcName' instead of the actual value of the funcName variable.
Future<dynamic> callRPC(path, funcName, params) async {
final uri = Uri.parse(baseURL + path);
var body = json.encode({
'jsonrpc': '2.0',
'method': 'funcName', // // Update this line by 'method': funcName,
'params': params,
'id': sha1.convert(utf8.encode(DateTime.now().toString())).toString()
});
You should update this String by the param which is funcName
It looks like there might be an issue with how you're sending the request to the Odoo server. In your callRPC function, you're setting the method name as a string 'funcName' instead of the actual value of the funcName variable.
Path: line 183
link
# Error:
Thank you for your effort