Skip to Content
Menu
This question has been flagged
2 Replies
2742 Views

Hi everyone,

I want to add advance on sale for a client without created invoice.How can i  add it with odoo 8?

best regards,

Avatar
Discard

I try it but it gives me an error "Sum line different to amount"
what should i do in this case

Thanks,

Post the payment in accounting, not in sales.

Author

I go to Accounting > Customer Payements then i select the client and add the amount but i still have the same error

Can you provide a screenshot, what are the log entries?

Author

Traceback (most recent call last):

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/http.py", line 544, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/http.py", line 581, in dispatch

result = self._call_function(**self.params)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/http.py", line 317, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/service/model.py", line 118, in wrapper

return f(dbname, *args, **kwargs)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/http.py", line 314, in checked_call

return self.endpoint(*a, **kw)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/http.py", line 810, in __call__

return self.method(*args, **kw)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/http.py", line 410, in response_wrap

response = f(*args, **kw)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/addons/web/controllers/main.py", line 955, in exec_workflow

return request.session.exec_workflow(model, id, signal)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/http.py", line 1118, in exec_workflow

r = self.proxy('object').exec_workflow(self.db, self.uid, self.password, model, signal, id)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/http.py", line 886, in proxy_method

result = dispatch_rpc(self.service_name, method, args)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/http.py", line 115, in dispatch_rpc

result = dispatch(method, params)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/service/model.py", line 37, in dispatch

res = fn(db, uid, *params)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/service/model.py", line 118, in wrapper

return f(dbname, *args, **kwargs)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/service/model.py", line 188, in exec_workflow

return exec_workflow_cr(cr, uid, obj, signal, *args)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/service/model.py", line 182, in exec_workflow_cr

return execute_cr(cr, uid, obj, 'signal_workflow', [res_id], signal)[res_id]

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/service/model.py", line 164, in execute_cr

return getattr(object, method)(cr, uid, *args, **kw)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/api.py", line 268, in wrapper

return old_api(self, *args, **kwargs)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/models.py", line 3575, in signal_workflow

result[res_id] = workflow.trg_validate(uid, self._name, res_id, signal, cr)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/workflow/__init__.py", line 85, in trg_validate

return WorkflowService.new(cr, uid, res_type, res_id).validate(signal)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/workflow/service.py", line 91, in validate

res2 = wi.validate(signal)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/workflow/instance.py", line 80, in validate

wi.process(signal=signal, force_running=force_running, stack=stack)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/workflow/workitem.py", line 120, in process

ok = self._split_test(activity['split_mode'], signal, stack)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/workflow/workitem.py", line 248, in _split_test

self._join_test(t[0], t[1], stack)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/workflow/workitem.py", line 257, in _join_test

WorkflowItem.create(self.session, self.record, activity, inst_id, stack=stack)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/workflow/workitem.py", line 95, in create

workflow_item.process(stack=stack)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/workflow/workitem.py", line 116, in process

if not self._execute(activity, stack):

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/workflow/workitem.py", line 162, in _execute

returned_action = self.wkf_expr_execute(activity)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/workflow/workitem.py", line 313, in wkf_expr_execute

return self.wkf_expr_eval_expr(activity['action'])

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/workflow/workitem.py", line 291, in wkf_expr_eval_expr

result = eval(line, env, nocopy=True)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/tools/safe_eval.py", line 314, in safe_eval

return eval(c, globals_dict, locals_dict)

File "", line 1, in <module>

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/api.py", line 266, in wrapper

return new_api(self, *args, **kwargs)

File "/home/digi-dev1/PycharmProjects/odoo/odoo-8/openerp/api.py", line 592, in new_api

result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)

File "/home/digi-dev1/PycharmProjects/odoo/custom_addons/l10n_tn_taxes/withholding.py", line 96, in proforma_voucher

raise osv.except_osv(_('Error!'), _('Sum line different to amount.'))

except_orm: (u'Erreur !', u'Somme des lines different du montant.')

2017-03-24 12:59:36,240 16440 INFO maBase werkzeug: 127.0.0.1 - - [24/Mar/2017 12:59:36] "POST /web/dataset/exec_workflow HTTP/1.1" 200 -

Best Answer

Post a payment to the customer account (this is valid for all Odoo versions and even for all other ERP systems as well). :-)

Avatar
Discard
Related Posts Replies Views Activity
3
Sep 21
2948
1
Nov 16
6145
1
Dec 22
4102
5
Jan 20
6986
1
Nov 17
2856