Reintroduction of field mes_type on product.template. This field was not
used in the code anymore, but we keep it for future use.
This field allows the user to express that there is no fixed conversion
rate between uom and uos.
(also very partial revert of
52c3b52bf09fea7e0920ebcec3f0e8acb066b2b7)
},{
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', 'description_sale', 'description',
+ 'to_weight', 'uom_id', 'uos_id', 'uos_coeff', 'mes_type', '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 }; },
'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",
'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,
<group groups="product.group_uos" string="Unit of Measure">
<field name="uos_id"/>
<field name="uos_coeff"/>
+ <field name="mes_type"/>
</group>
</group>
<group name="website_and_pos" col="2">
-
!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
!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
!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: