Example #1
0
        public List <CRMLead> GetCrmLeads()
        {
            if (!App.lead_filter)
            {
                App.filterdict["range"] = false;
                App.filterdict["days"]  = false;
                App.filterdict["month"] = true;
            }
            App.filterdict["lead"] = true;

            odooConnector = OdooRPC.InstanceCreation(Settings.UserUrlName);
            List <CRMLead> quotList = new List <CRMLead>();

            quotList = odooConnector.odooMethodCall_crmleads <JArray>("crm.lead", "get_crm_lead_data");
            //  tarList = result.ToObject<List<SalesQuotation>>();
            return(quotList);

            App.lead_filter = false;
        }