def call_kw(model, name, args, kwargs):
 method = getattr(type(model), name)
 if (getattr(method, '_api', None) == 'model'):
  return call_kw_model(method, model, args, kwargs)
 else:
  return call_kw_multi(method, model, args, kwargs)

def call_kw ( model , name , args , kwargs ) : method = getattr ( type ( model ) , name ) if ( getattr ( method , '_api' , None ) == 'model' ) : return call_kw_model ( method , model , args , kwargs ) else : return call_kw_multi ( method , model , args , kwargs )
invoke the given method name on the recordset model .