diff -r 711fca08fbae trytond/trytond/modules/stock/move.py --- a/trytond/trytond/modules/stock/move.py Tue Sep 20 16:44:08 2016 +0200 +++ b/trytond/trytond/modules/stock/move.py Tue Sep 20 16:44:54 2016 +0200 @@ -776,6 +776,10 @@ return to_pick return to_pick + @staticmethod + def lock_stock_move(): + return True + @classmethod def assign_try(cls, moves, with_childs=True, grouping=('product',)): ''' @@ -789,7 +793,8 @@ Date = pool.get('ir.date') Location = pool.get('stock.location') - Transaction().cursor.lock(cls._table) + if cls.lock_stock_move(): + Transaction().cursor.lock('stock_period') if with_childs: locations = Location.search([