示例#1
0
 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();
 }
示例#2
0
 public OdooTools(OdooRpcCs.OdooClient objectClient)
 {
     this.oObject = objectClient;
 }