Пример #1
0
        public List <SalesQuotation> GetdraftQuotations()
        {
            List <SalesQuotation> quotList = new List <SalesQuotation>();

            if (!App.dq_filter)
            {
                App.filterdict["range"] = false;
                App.filterdict["days"]  = false;
                App.filterdict["month"] = true;
            }
            App.filterdict["sale_order"]      = false;
            App.filterdict["draft_quotation"] = true;

            quotList      = odooConnector.odooMethodCall_getsalequotations <JArray>("sale.order", "get_sales_data");
            App.dq_filter = false;
            return(quotList);
        }
Пример #2
0
        public List <SalesQuotation> GetSalesQuotations()
        {
            odooConnector = OdooRPC.InstanceCreation(Settings.UserUrlName);
            List <SalesQuotation> quotList = new List <SalesQuotation>();

            App.filterdict["range"]      = false;
            App.filterdict["days"]       = false;
            App.filterdict["month"]      = true;
            App.filterdict["sale_order"] = false;
            quotList = odooConnector.odooMethodCall_getsalequotations <JArray>("sale.order", "get_sales_data");
            //  tarList = result.ToObject<List<SalesQuotation>>();
            return(quotList);
        }