[CHG] should not be able to change the type (mto, mts) of a sales line with a stock reservation

This commit is contained in:
Guewen Baconnier
2013-09-09 09:49:04 +02:00
parent d76cb7d359
commit d6c3b4d298

View File

@@ -144,7 +144,8 @@ class sale_order_line(orm.Model):
return result
def write(self, cr, uid, ids, vals, context=None):
block_on_reserve = ('product_id', 'product_uom', 'product_uos')
block_on_reserve = ('product_id', 'product_uom', 'product_uos',
'type')
update_on_reserve = ('price_unit', 'product_uom_qty', 'product_uos_qty')
keys = set(vals.keys())
test_block = keys.intersection(block_on_reserve)