Beispiel #1
0
        //public List<CustomersModel> GetCustomerData()
        //{
        //    List<CustomersModel> data = new List<CustomersModel>();

        //    object[] domain = new object[] { };

        //    data = odooConnector.odooSearchReadCall3<dynamic>("res.partner", domain, new string[] { "name", "street", "email", "image_small", "city", "country_id" }, true);

        //    return data;
        //}

        public List <CustomersModel> GetCustomerData()
        {
            List <CustomersModel> data = new List <CustomersModel>();
            JArray dt = odooConnector.odooCustomerDataCall <dynamic>("res.partner", "get_customers_app");

            data = dt.ToObject <List <CustomersModel> >();
            return(data);
        }
Beispiel #2
0
        public JObject GetMastersList()
        {
            JObject dt = odooConnector.odooCustomerDataCall <dynamic>("res.users", "get_all_master_data");

            return(dt);
        }
Beispiel #3
0
        public JObject GetSalespersonsList()
        {
            JObject dt = odooConnector.odooCustomerDataCall <dynamic>("res.users", "get_salesperson_data");

            return(dt);
        }