New question #196276 on OpenERP Server:
https://answers.launchpad.net/openobject-server/+question/196276

i got  this error message when trying use journal checked with Centralised 
counterpart option 


Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/openerp-server/netsvc.py", line 489, 
in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, 
params)
  File 
"/usr/lib/python2.6/site-packages/openerp-server/service/web_services.py", line 
599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 122, 
in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 196, 
in exec_workflow
    res = self.exec_workflow_cr(cr, uid, obj, method, *args)
  File "/usr/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 189, 
in exec_workflow_cr
    return wf_service.trg_validate(uid, obj, args[0], method, cr)
  File 
"/usr/lib/python2.6/site-packages/openerp-server/workflow/wkf_service.py", line 
80, in trg_validate
    res2 = instance.validate(cr, id, ident, signal)
  File "/usr/lib/python2.6/site-packages/openerp-server/workflow/instance.py", 
line 48, in validate
    workitem.process(cr, witem, ident, signal, force_running, stack=stack)
  File "/usr/lib/python2.6/site-packages/openerp-server/workflow/workitem.py", 
line 61, in process
    ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
  File "/usr/lib/python2.6/site-packages/openerp-server/workflow/workitem.py", 
line 174, in _split_test
    _join_test(cr, t[0], t[1], ident, stack)
  File "/usr/lib/python2.6/site-packages/openerp-server/workflow/workitem.py", 
line 182, in _join_test
    create(cr,[activity], inst_id, ident, stack)
  File "/usr/lib/python2.6/site-packages/openerp-server/workflow/workitem.py", 
line 41, in create
    process(cr, res, ident, stack=stack)
  File "/usr/lib/python2.6/site-packages/openerp-server/workflow/workitem.py", 
line 53, in process
    result = _execute(cr, workitem, activity, ident, stack)
  File "/usr/lib/python2.6/site-packages/openerp-server/workflow/workitem.py", 
line 107, in _execute
    wkf_expr.execute(cr, ident, workitem, activity)
  File "/usr/lib/python2.6/site-packages/openerp-server/workflow/wkf_expr.py", 
line 68, in execute
    return _eval_expr(cr, ident, workitem, activity['action'])
  File "/usr/lib/python2.6/site-packages/openerp-server/workflow/wkf_expr.py", 
line 58, in _eval_expr
    ret = eval(line, env, nocopy=True)
  File "/usr/lib/python2.6/site-packages/openerp-server/tools/safe_eval.py", 
line 284, in safe_eval
    return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, 
locals_dict)
  File "", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/openerp-server/osv/orm.py", line 181, 
in <lambda>
    return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, 
**argv)
  File 
"/usr/lib/python2.6/site-packages/openerp-server/addons/account_voucher.zip/account_voucher/account_voucher.py",
 line 596, in proforma_voucher
    self.action_move_line_create(cr, uid, ids, context=context)
  File 
"/usr/lib/python2.6/site-packages/openerp-server/addons/account_voucher.zip/account_voucher/account_voucher.py",
 line 786, in action_move_line_create
    voucher_line = move_line_pool.create(cr, uid, move_line)
  File 
"/usr/lib/python2.6/site-packages/openerp-server/addons/account/account_move_line.py",
 line 1362, in create
    tmp = move_obj.validate(cr, uid, [vals['move_id']], context)
  File 
"/usr/lib/python2.6/site-packages/openerp-server/addons/account/account.py", 
line 1496, in validate
    self._centralise(cr, uid, move, 'debit', context=context)
  File 
"/usr/lib/python2.6/site-packages/openerp-server/addons/account/account.py", 
line 1370, in _centralise
    }, context)
  File 
"/usr/lib/python2.6/site-packages/openerp-server/addons/account/account_move_line.py",
 line 1362, in create
    tmp = move_obj.validate(cr, uid, [vals['move_id']], context)
  File 
"/usr/lib/python2.6/site-packages/openerp-server/addons/account/account.py", 
line 1496, in validate
    self._centralise(cr, uid, move, 'debit', context=context)
  File 
"/usr/lib/python2.6/site-packages/openerp-server/addons/account/account.py", 
line 1389, in _centralise
    if not currency_obj.is_zero(cr, uid, currency_id, row['amount_currency']):
  File 
"/usr/lib/python2.6/site-packages/openerp-server/addons/base/res/res_currency.py",
 line 90, in is_zero
    return abs(self.round(cr, uid, currency, amount)) > currency.rounding
  File 
"/usr/lib/python2.6/site-packages/openerp-server/addons/base/res/res_currency.py",
 line 87, in round
    return (amount / currency.rounding) * currency.rounding
TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'

Please help  me to solve this issue 

Thanks ...

-- 
You received this question notification because you are a member of
OpenERP Committers, which is an answer contact for OpenERP Server.

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

Reply via email to