[REM] product: leftovers of unused field "mes_type"
authorRichard Mathot <rim@openerp.com>
Wed, 26 Nov 2014 14:00:37 +0000 (15:00 +0100)
committerRichard Mathot <rim@openerp.com>
Wed, 26 Nov 2014 14:00:37 +0000 (15:00 +0100)
Also removed in data in point_of_sale, project_timesheet and sale_mrp.

addons/point_of_sale/static/src/js/models.js
addons/product/product.py
addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml
addons/sale_mrp/test/sale_mrp.yml

index 355d0ef..f68f689 100644 (file)
@@ -268,7 +268,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal
         },{
             model:  'product.product',
             fields: ['display_name', 'list_price','price','pos_categ_id', 'taxes_id', 'ean13', 'default_code', 
-                     'to_weight', 'uom_id', 'uos_id', 'uos_coeff', 'mes_type', 'description_sale', 'description',
+                     'to_weight', 'uom_id', 'uos_id', 'uos_coeff', 'description_sale', 'description',
                      'product_tmpl_id'],
             domain:  function(self){ return [['sale_ok','=',true],['available_in_pos','=',true]]; },
             context: function(self){ return { pricelist: self.pricelist.id, display_default_code: false }; },
index 128aae5..9ac7014 100644 (file)
@@ -530,7 +530,6 @@ class product_template(osv.osv):
         'uos_coeff': fields.float('Unit of Measure -> UOS Coeff', digits_compute= dp.get_precision('Product UoS'),
             help='Coefficient to convert default Unit of Measure to Unit of Sale\n'
             ' uos = uom * coeff'),
-        'mes_type': fields.selection((('fixed', 'Fixed'), ('variable', 'Variable')), 'Measure Type'),
         'company_id': fields.many2one('res.company', 'Company', select=1),
         # image: all image fields are base64 encoded and PIL-supported
         'image': fields.binary("Image",
@@ -746,7 +745,6 @@ class product_template(osv.osv):
         'uom_id': _get_uom_id,
         'uom_po_id': _get_uom_id,
         'uos_coeff': 1.0,
-        'mes_type': 'fixed',
         'categ_id' : _default_category,
         'type' : 'consu',
         'active': True,
index 5ba4b83..6761d8c 100644 (file)
@@ -13,7 +13,6 @@
 -
   !record {model: product.product, id: product_product_hrmanger0}:
     categ_id: product.product_category_6
-    mes_type: fixed
     name: HR Manager
     standard_price: 1.0
     type: service
index 442b341..c74d708 100644 (file)
@@ -16,7 +16,6 @@
   !record {model: product.template, id: product_template_slidermobile0}:
     categ_id: product_category_allproductssellable0
     list_price: 200.0
-    mes_type: fixed
     name: Slider Mobile
     standard_price: 189.0
     type: product
@@ -28,7 +27,6 @@
   !record {model: product.product, id:  product_product_slidermobile0}:
     categ_id: product_category_allproductssellable0
     list_price: 200.0
-    mes_type: fixed
     name: Slider Mobile
     seller_delay: '1'
     seller_ids: