mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[CHG] should not be able to change the type (mto, mts) of a sales line with a stock reservation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user