← Back to team overview

openerp-india team mailing list archive

[Bug 1239654] Re: Jounral voucher raise 'NoneType' object has no attribute 'get'

 

*** This bug is a duplicate of bug 1180575 ***
    https://bugs.launchpad.net/bugs/1180575

** This bug has been marked a duplicate of bug 1180575
   [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/1239654

Title:
  Jounral voucher raise 'NoneType' object has no attribute 'get'

Status in OpenERP Addons (modules):
  New

Bug description:
  In Jounral Voucher form while change the partner or jounral below error is coming
  'NoneType' object has no attribute 'get'

  This error we can resolve by changing the onchange_journal function of
  account.voucher

  In account.voucher
  def onchange_journal(self, cr, uid, ids, journal_id, line_ids, tax_id, partner_id, date, amount, ttype, company_id, context=None):
             # Add below two lines to resolve this issue
           if not context:
               context = {}
  plateform using ubuntu
  openerp 7.0 version

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