public static mrp_bom aBomById(int id, Clients.clientOpenERP clientOERP, List <string> fieldsList) { try { return((mrp_bom)clientOERP.read(new IMDEV.OpenERP.models.query.aQuery(id), typeof(mrp_bom), fieldsList)[0]); } catch { } return(null); }
public static product_product aProduct(int id, Clients.clientOpenERP clientOERP) { try { return((product_product)clientOERP.read(new IMDEV.OpenERP.models.query.aQuery(id), typeof(product_product))[0]); } catch { } return(null); }
public static res_users aUser(int id, Clients.clientOpenERP clientOERP) { try { return((res_users)clientOERP.read(new IMDEV.OpenERP.models.query.aQuery(id), typeof(res_users))[0]); } catch { } return(null); }
public static report_intrastat_code anIntraStatCode(int id, Clients.clientOpenERP clientOERP) { try { return((report_intrastat_code)clientOERP.read(new IMDEV.OpenERP.models.query.aQuery(id), typeof(report_intrastat_code))[0]); } catch { } return(null); }
public static res_partner aPartner(int id, Clients.clientOpenERP clientOERP, List <string> fieldsList) { try { return((res_partner)clientOERP.read(new IMDEV.OpenERP.models.query.aQuery(id), typeof(res_partner), fieldsList)[0]); } catch { } return(null); }
public static models.sale.sale_order returnSaleOrder(int id, Clients.clientOpenERP cliERP, List <string> listFields) { List <object> retour; retour = cliERP.read(new IMDEV.OpenERP.models.query.aQuery(id), typeof(models.sale.sale_order), listFields); if ((retour != null) && (retour.Count == 1)) { return((models.sale.sale_order)retour[0]); } return(null); }
public void chargeTaxes(Clients.clientOpenERP cli) { List <object> _listObj; if ((tax_ids != null) && (tax_ids.getValue != null) && (tax_ids.getValue.Count > 0)) { _listObj = cli.read(new IMDEV.OpenERP.models.query.aQuery(tax_ids.getValue), typeof(account_fiscal_position_tax)); _listTaxes = new List <account_fiscal_position_tax>(); foreach (account_fiscal_position_tax f in _listObj) { _listTaxes.Add(f); } } }