[IMP] point_of_sale: adaptation due to the new Sale module

Major changes:
- No use of UoS anymore

Reason: complete rewrite of the Sale module.

Responsible: fp, dbo, nim
This commit is contained in:
Nicolas Martinelli
2015-08-27 18:10:19 +02:00
parent 3d9e2a6cb7
commit 75f79bd4c4
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -939,7 +939,6 @@ class pos_order(osv.osv):
'company_id': order.company_id.id,
'move_type': 'direct',
'note': order.note or "",
'invoice_state': 'none',
'location_id': location_id,
'location_dest_id': destination_id,
}, context=context)
@@ -953,11 +952,9 @@ class pos_order(osv.osv):
move_list.append(move_obj.create(cr, uid, {
'name': line.name,
'product_uom': line.product_id.uom_id.id,
'product_uos': line.product_id.uom_id.id,
'picking_id': picking_id,
'picking_type_id': picking_type.id,
'product_id': line.product_id.id,
'product_uos_qty': abs(line.qty),
'product_uom_qty': abs(line.qty),
'state': 'draft',
'location_id': location_id if line.qty >= 0 else destination_id,
+1 -1
View File
@@ -315,7 +315,7 @@ exports.PosModel = Backbone.Model.extend({
},{
model: 'product.product',
fields: ['display_name', 'list_price','price','pos_categ_id', 'taxes_id', 'barcode', 'default_code',
'to_weight', 'uom_id', 'uos_id', 'uos_coeff', 'mes_type', 'description_sale', 'description',
'to_weight', 'uom_id', 'description_sale', 'description',
'product_tmpl_id'],
order: ['sequence','name'],
domain: [['sale_ok','=',true],['available_in_pos','=',true]],