Voucher Entry error when create entries with analytic account

Bug #296760 reported by Ainur Rofiq
4
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Mantavya Gajjar (Open ERP)

Bug Description

Voucher Entry cann't create entries with analytic account, here's error messages :

Traceback (most recent call last):
  File "/home/opix/openerp5_alpha/server/bin/netsvc.py", line 257, in _dispatch
    r = m(*params)
  File "/home/opix/openerp5_alpha/server/bin/addons/base_module_record/base_module_record.py", line 212, in execute
    res = fnct(*args, **argv)
  File "/home/opix/openerp5_alpha/server/bin/service/web_services.py", line 375, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/home/opix/openerp5_alpha/server/bin/osv/osv.py", line 110, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/opix/openerp5_alpha/server/bin/osv/osv.py", line 85, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/opix/openerp5_alpha/server/bin/addons/account_voucher/voucher.py", line 172, in proforma_voucher
    self.action_move_line_create(cr, uid, ids)
  File "/home/opix/openerp5_alpha/server/bin/addons/account_voucher/voucher.py", line 238, in action_move_line_create
    iml = self._get_analityc_lines(cr, uid, inv.id)
  File "/home/opix/openerp5_alpha/server/bin/addons/account_voucher/voucher.py", line 223, in _get_analityc_lines
    'journal_id': self._get_journal(cr, uid, inv.type),
  File "/home/opix/openerp5_alpha/server/bin/addons/account_voucher/voucher.py", line 51, in _get_journal
    type_inv = context.get('type', 'rec_voucher')
AttributeError: 'str' object has no attribute 'get'

Changed in openobject-addons:
assignee: nobody → vra-openerp
status: New → Confirmed
Revision history for this message
Mantavya Gajjar (Open ERP) (mga) wrote :

fixed and committed to openobject-addons

Changed in openobject-addons:
assignee: vra-openerp → mga
status: Confirmed → Fix Committed
Changed in openobject-addons:
status: Fix Committed → Fix Released
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.