← Back to team overview

openerp-india team mailing list archive

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

 

** Description changed:

  http://7-0-11032.runbot.openerp.com/
  
  Steps:
  
-  - Go to journal vouchers under journal entries
-  - Create new voucher
-  - Select a partner
-  - Select Bank journal
+  - 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'):
+     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'

-- 
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