Lock 'stock_period' table instead of 'stock_move' in the assign process.
This commit is contained in:
parent
2e6f261adb
commit
e22d5b7136
|
@ -18,7 +18,7 @@ diff -r 711fca08fbae trytond/trytond/modules/stock/move.py
|
||||||
|
|
||||||
- Transaction().cursor.lock(cls._table)
|
- Transaction().cursor.lock(cls._table)
|
||||||
+ if cls.lock_stock_move():
|
+ if cls.lock_stock_move():
|
||||||
+ Transaction().cursor.lock(cls._table)
|
+ Transaction().cursor.lock('stock_period')
|
||||||
|
|
||||||
if with_childs:
|
if with_childs:
|
||||||
locations = Location.search([
|
locations = Location.search([
|
||||||
|
|
Loading…
Reference in New Issue