← Back to team overview

openerp-india team mailing list archive

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

 

Hello Mario,

I have found the solution seems to be worked.

Thanks.


** Patch added: "account_voucher.patch"
   https://bugs.launchpad.net/openobject-addons/+bug/1180575/+attachment/3754515/+files/account_voucher.patch

-- 
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]AttributeError on journal voucher

Status in OpenERP Addons (modules):
  Confirmed

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