[FIX]:wrong delivery cost
lp bug: https://launchpad.net/bugs/908020 fixed bzr revid: ksa@tinyerp.com-20120102110556-i58dhl6nahb5a7ot
This commit is contained in:
parent
93ac82f51e
commit
6b2eac69ff
|
@ -103,7 +103,7 @@ class delivery_carrier(osv.osv):
|
|||
grid_line_pool = self.pool.get('delivery.grid.line')
|
||||
grid_pool = self.pool.get('delivery.grid')
|
||||
for record in self.browse(cr, uid, ids, context=context):
|
||||
grid_id = grid_pool.search(cr, uid, [('carrier_id', '=', record.id),('sequence','=',9999)], context=context)
|
||||
grid_id = grid_pool.search(cr, uid, [('carrier_id', '=', record.id)], context=context)
|
||||
|
||||
if grid_id and not (record.normal_price or record.free_if_more_than):
|
||||
grid_pool.unlink(cr, uid, grid_id, context=context)
|
||||
|
@ -115,7 +115,7 @@ class delivery_carrier(osv.osv):
|
|||
record_data = {
|
||||
'name': record.name,
|
||||
'carrier_id': record.id,
|
||||
'sequence': 9999,
|
||||
'sequence': 10,
|
||||
}
|
||||
new_grid_id = grid_pool.create(cr, uid, record_data, context=context)
|
||||
grid_id = [new_grid_id]
|
||||
|
|
Loading…
Reference in New Issue