Issue for bi_customer_limit (#1,897)
Status: OPEN
Date: 26/07/2021
ID: 1,897
S/O number: SO2021/1479187
Reviewer: Hiral Bhatt
Module Name: bi_customer_limit
Version: 12.0

Assigned to
Hanee Patel


we have community version, 12.0, yes, have custom apps.

The error occurs when creating a new contact (company) from the sales module, and at the time of setting the basic parameters, (no credit is configured, it is left by default), then pressing save and giving the error.

please help with follow error:


Odoo Server Error

Traceback (most recent call last):

File "/azursoft/azursoft/odoo/", line 656, in _handle_exception

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

File "/azursoft/azursoft/odoo/", line 314, in _handle_exception

raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

File "/azursoft/azursoft/odoo/tools/", line 87, in reraise

raise value

File "/azursoft/azursoft/odoo/", line 698, in dispatch

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

File "/azursoft/azursoft/odoo/", line 346, in _call_function

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

File "/azursoft/azursoft/odoo/service/", line 98, in wrapper

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

File "/azursoft/azursoft/odoo/", line 339, in checked_call

result = self.endpoint(*a, **kw)

File "/azursoft/azursoft/odoo/", line 941, in __call__

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

File "/azursoft/azursoft/odoo/", line 519, in response_wrap

response = f(*args, **kw)

File "/azursoft/azursoft/addons/web/controllers/", line 962, in call_kw

return self._call_kw(model, method, args, kwargs)

File "/azursoft/azursoft/addons/web/controllers/", line 954, in _call_kw

return call_kw(request.env[model], method, args, kwargs)

File "/azursoft/azursoft/odoo/", line 759, in call_kw

return _call_kw_multi(method, model, args, kwargs)

File "/azursoft/azursoft/odoo/", line 746, in _call_kw_multi

result = method(recs, *args, **kwargs)

File "/azursoft/azursoft/odoo/", line 5538, in onchange

record._onchange_eval(name, field_onchange[name], result)

File "/azursoft/azursoft/odoo/", line 5382, in _onchange_eval

method_res = method(self)

File "/azursoft/custom-addons/module_account/bi_customer_limit/models/", line 111, in onchange_partner_id

values['user_id'] =

NameError: name 'values' is not defined

The error can be reproduced, it occurred precisely when completing the section (sales / purchase) of the partner, specifically completing the fields marked in yellow:

Message and communication history