problem with entries by statement

Bug #321510 reported by nel
2
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
qdp (OpenERP)

Bug Description

Hello,

When I try to create a statement line from a journal that doesn t contain movelines, when I try then, to create a moveline directly with the button "New" of the search form, I m getting this error:

Traceback (most recent call last):
  File "/home/nel/terp/trunk/bin/netsvc.py", line 226, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/nel/terp/trunk/bin/netsvc.py", line 74, in __call__
    return getattr(self, method)(*params)
  File "/home/nel/terp/trunk/bin/service/web_services.py", line 537, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/home/nel/terp/trunk/bin/service/web_services.py", line 517, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/home/nel/terp/trunk/bin/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/home/nel/terp/trunk/bin/wizard/__init__.py", line 83, in execute_cr
    res['action'] = result_def['action'](self, cr, uid, data, context)
  File "/home/nel/terp/trunk/bin/addons/account/wizard/wizard_statement_from_invoice.py", line 121, in _populate_statement
    'amount': amount,
UnboundLocalError: local variable 'amount' referenced before assignment

nel (nel-tinyerp)
Changed in openobject-addons:
assignee: nobody → qdp
Changed in openobject-addons:
status: New → 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.