Finally I have update my data manager like this : from trytond.transaction import Transaction as TrytonTransaction
class TrytonDataManager(object): transaction_manager = transaction.manager def __init__(self, db, user, context={}): TrytonTransaction().start(db, user, context=context) def abort(self, transaction): pass def tpc_begin(self, transaction): pass def commit(self, transaction): pass def tpc_vote(self, transaction): pass def tpc_abort(self, transaction): pass def tpc_finish(self, transaction): with TrytonTransaction() as tryton_trans: tryton_trans.commit() And I removed the cleanup hook since it is no longer needed. Thanks for your help. -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/6b73fc61-6bb9-4003-b2ed-a19445f12163%40googlegroups.com.