Public bug reported:

first bug
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call 
last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/netsvc.py", 
line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, 
params)
  File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/service/web_services.py",
 line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", 
line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", 
line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", 
line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/addons/account_payment_extension/payment.py",
 line 238, in set_done
    line_amount = line.type == 'payment' and amount or -amount
UnboundLocalError: local variable 'amount' referenced before assignment

Suggestion
change:
                line_amount = line.type == 'payment' and amount or -amount
by
                line_amount = line.type == 'payment' and line.amount_currency 
or -line.amount_currency 

Second bug:
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call 
last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/netsvc.py", 
line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, 
params)
  File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/service/web_services.py",
 line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", 
line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", 
line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", 
line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/addons/account_payment_extension/payment.py",
 line 282, in set_done
    move_currency_id = currencty_id
NameError: global name 'currencty_id' is not defined

Suggestion
change:
                    move_currency_id = currencty_id
by
                    move_currency_id = currency_id

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/747906

Title:
  account_payment_extension: several bugs

Status in OpenERP Modules (addons):
  New

Bug description:
  first bug
  Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call 
last):
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/netsvc.py", line 
489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, 
params)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/service/web_services.py",
 line 599, in dispatch
      res = fn(db, uid, *params)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", line 
122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", line 
176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", line 
167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/addons/account_payment_extension/payment.py",
 line 238, in set_done
      line_amount = line.type == 'payment' and amount or -amount
  UnboundLocalError: local variable 'amount' referenced before assignment

  Suggestion
  change:
                  line_amount = line.type == 'payment' and amount or -amount
  by
                  line_amount = line.type == 'payment' and line.amount_currency 
or -line.amount_currency 

  Second bug:
  Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call 
last):
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/netsvc.py", line 
489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, 
params)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/service/web_services.py",
 line 599, in dispatch
      res = fn(db, uid, *params)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", line 
122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", line 
176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", line 
167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File 
"/usr/local/lib/python2.6/dist-packages/openerp-server_9000/addons/account_payment_extension/payment.py",
 line 282, in set_done
      move_currency_id = currencty_id
  NameError: global name 'currencty_id' is not defined

  Suggestion
  change:
                      move_currency_id = currencty_id
  by
                      move_currency_id = currency_id

_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to