public OdooProduct(OdooRpcCs.OdooClient oClient, string productCode, PropertyScaffold scaffold) { this.scaffold = scaffold; this.oClient = oClient; this.productCode = productCode; (this.engCode, _, this.engRev) = ParseProductCode(productCode); foreach (DataRow dr in scaffold.FieldDefs.Select("odoo_model='product.product'")) { prodFields.Add(dr["odoo_field"].ToString()); } foreach (DataRow dr in scaffold.FieldDefs.Select("odoo_model='product.template'")) { tmplFields.Add(dr["odoo_field"].ToString()); } Refresh(); }
public OdooTools(OdooRpcCs.OdooClient objectClient) { this.oObject = objectClient; }