Bharat Devnani (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-888135-bde into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #888135 in OpenERP Addons: "[6.1] account_bank - post_write method not 
single id safe"
  https://bugs.launchpad.net/openobject-addons/+bug/888135

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-888135-bde/+merge/82248

Hello Sir, 

I have applied the patch given by Yannick Vaucher.

Thanks & Regards,
Devnani Bharat R.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-888135-bde/+merge/82248
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-888135-bde.
=== modified file 'account/account_bank.py'
--- account/account_bank.py	2011-11-07 12:43:37 +0000
+++ account/account_bank.py	2011-11-15 06:51:31 +0000
@@ -44,6 +44,10 @@
     def post_write(self, cr, uid, ids, context={}):
         obj_acc = self.pool.get('account.account')
         obj_data = self.pool.get('ir.model.data')
+
+        if isinstance(ids, (int, long)):
+          ids = [ids]
+
         for bank in self.browse(cr, uid, ids, context):
             if bank.company_id and not bank.journal_id:
                 # Find the code and parent of the bank account to create

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to