← Back to team overview

openerp-community team mailing list archive

[Merge] lp:~openerp-community/openobject-addons/stefan-therp_lp741863 into lp:openobject-addons/6.0

 

Stefan Rijnhart (Therp) has proposed merging lp:~openerp-community/openobject-addons/stefan-therp_lp741863 into lp:openobject-addons/6.0.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #741863 in OpenERP Addons: "[6.0] Cash and bank journals are unintendedly created as refund journals"
  https://bugs.launchpad.net/openobject-addons/+bug/741863

For more details, see:
https://code.launchpad.net/~openerp-community/openobject-addons/stefan-therp_lp741863/+merge/54822
-- 
https://code.launchpad.net/~openerp-community/openobject-addons/stefan-therp_lp741863/+merge/54822
Your team OpenERP Community is subscribed to branch lp:~openerp-community/openobject-addons/stefan-therp_lp741863.
=== modified file 'account/account.py'
--- account/account.py	2011-02-09 12:17:19 +0000
+++ account/account.py	2011-03-25 08:54:50 +0000
@@ -2946,6 +2946,7 @@
             analitical_bank_ids = analytic_journal_obj.search(cr,uid,[('type','=','situation')])
             analitical_journal_bank = analitical_bank_ids and analitical_bank_ids[0] or False
 
+            vals_journal = {}
             vals_journal['name']= vals['name']
             vals_journal['code']= _('BNK') + str(current_num)
             vals_journal['sequence_id'] = seq_id