← Back to team overview

openerp-india team mailing list archive

[Bug 1180575] Re: [7.0]AttributeError on journal voucher

 

This was a regression caused by commit:
https://bazaar.launchpad.net/~openerp/openobject-
addons/7.0/revision/9119

It has been fixed by : http://bazaar.launchpad.net/~openerp/openobject-
addons/7.0/revision/9348.1.2

Thanks.

** Changed in: openobject-addons
       Status: Confirmed => Fix Released

** Changed in: openobject-addons
    Milestone: None => 7.0

** Summary changed:

- [7.0]AttributeError on journal voucher
+ [7.0] Regression: Context missing to be initialised on the onchange of  journal voucher!

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1180575

Title:
  [7.0] Regression: Context missing to be initialised on the onchange of
  journal voucher!

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  http://7-0-11032.runbot.openerp.com/

  Steps:

   - Go to journal vouchers under journal entries
   - Create new voucher
   - Select a partner
   - Select Bank journal

  Get

  File "/home/odoo/runbot/static/openerp-dev-7-0-11032/server/openerp/addons/account_voucher/account_voucher.py", line 565, in onchange_journal_voucher
      vals = self.onchange_journal(cr, uid, ids, journal_id, line_ids, tax_id, partner_id, time.strftime('%Y-%m-%d'), price, ttype, company_id, context)
    File "/home/odoo/runbot/static/openerp-dev-7-0-11032/server/openerp/addons/account_voucher/account_voucher.py", line 918, in onchange_journal
      if context.get('payment_expected_currency') and currency_id != context.get('payment_expected_currency'):
  AttributeError: 'NoneType' object has no attribute 'get'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1180575/+subscriptions