Lock 'stock_period' table instead of 'stock_move' in the assign process.

This commit is contained in:
Albert Cervera i Areny 2016-11-30 18:19:26 +01:00
parent 2e6f261adb
commit e22d5b7136
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ diff -r 711fca08fbae trytond/trytond/modules/stock/move.py
- Transaction().cursor.lock(cls._table)
+ if cls.lock_stock_move():
+ Transaction().cursor.lock(cls._table)
+ Transaction().cursor.lock('stock_period')
if with_childs:
locations = Location.search([