Issue - Point Of Sales Partial Credit Payment Odoo Apps (#103)
Status: OPEN
Date: 19/04/2021
ID: 103
S/O number: Facture 2021/11643
Reviewer: Jack Paco
Module Name: Point Of Sales Partial Credit Payment Odoo Apps
Version: 13.0

Assigned to
Vishal Makwana

When we try to register a partial paiement on POS apps, We have this message below :

Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/odoo/", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/odoo/src/odoo/odoo/tools/", line 14, in reraise
raise value
File "/home/odoo/src/odoo/odoo/", line 669, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/odoo/", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/service/", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo/odoo/", line 915, in __call__
return self.method(*args, **kw)
File "/home/odoo/src/odoo/odoo/", line 515, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo/addons/web/controllers/", line 1339, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/src/odoo/addons/web/controllers/", line 1331, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/odoo/", line 387, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/src/odoo/odoo/", line 374, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/src/user/pos_partial_payment/models/", line 79, in pay_partial_payment
UnboundLocalError: local variable 'pos_line' referenced before assignment

We need your support to identify the error

Message and communication history