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

Bug #1180575 reported by Mario Riva - AgileBG
48
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP Publisher's Warranty Team

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'

Tags: maintenance

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
importance: Undecided → Medium
status: New → Confirmed
summary: - AttributeError on journal voucher
+ [7.0]AttributeError on journal voucher
tags: added: maintenance
Revision history for this message
jeffery chen fan (jeffery9) wrote : Re: [7.0]AttributeError on journal voucher
Revision history for this message
Dhwani ( Serpent Consulting Services) (dhwani-serpentcs) wrote :

Hello Mario,

I have found the solution seems to be worked.

Thanks.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :
Changed in openobject-addons:
status: Confirmed → Fix Released
milestone: none → 7.0
summary: - [7.0]AttributeError on journal voucher
+ [7.0] Regression: Context missing to be initialised on the onchange of
+ journal voucher!
sam alabam (g-sam)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.