Bharat Devnani (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-800693-bde into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #800693 in OpenERP Addons: "Account Module : account.journal write method
only accepts list ids"
https://bugs.launchpad.net/openobject-addons/+bug/800693
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-800693-bde/+merge/66452
Hello Sir,
I have converted ids into list of ids in write method of account.journal.
Thanks & Regards,
Devnani Bharat R.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-800693-bde/+merge/66452
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-800693-bde.
=== modified file 'account/account.py'
--- account/account.py 2011-06-21 12:52:48 +0000
+++ account/account.py 2011-06-30 12:31:15 +0000
@@ -650,6 +650,8 @@
def write(self, cr, uid, ids, vals, context=None):
if context is None:
context = {}
+ if isinstance(ids, (int, long)):
+ ids = [ids]
for journal in self.browse(cr, uid, ids, context=context):
if 'company_id' in vals and journal.company_id.id != vals['company_id']:
move_lines = self.pool.get('account.move.line').search(cr, uid, [('journal_id', 'in', ids)])
_______________________________________________
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