public List <Attachments> getfileAtachment(int saleorder_id, string model_name) { List <Attachments> tarList = new List <Attachments>(); JArray result = odooConnector.odooMethodCall_attachment <JArray>("res.users", "get_attachment_data", model_name, saleorder_id); tarList = result.ToObject <List <Attachments> >(); return(tarList); }
public List <Attachments> getfileAtachment(int saleorder_id) { List <Attachments> tarList = new List <Attachments>(); JArray result = odooConnector.odooMethodCall_attachment <JArray>("sale.order", "get_attachments", saleorder_id); tarList = result.ToObject <List <Attachments> >(); return(tarList); }