1. ukoma
  2. party_bank

Commits

Udo Spallek  committed 03764b7

Change Pool into a Singleton

  • Participants
  • Parent commits 024202e
  • Branches default

Comments (0)

Files changed (1)

File bank.py

View file
  • Ignore whitespace
 from trytond.backend import TableHandler
 from trytond.pyson import Not, Eval, Bool
 from trytond.transaction import Transaction
+from trytond.pool import Pool
 
 
 class Bank(ModelSQL, ModelView):
         return res
 
     def on_change_bank(self, vals):
-        bank_obj = self.pool.get('bank.bank')
+        bank_obj = Pool().get('bank.bank')
         res = {
            'bank_code': False,
            'bic': False