Skip to Content
Menu
This question has been flagged
1 Reply
1176 Views

al validar la recepcion de la Orden de compra me manda el sig mensaje de error:

Error:

Odoo Server Error



Traceback (most recent call last):

File "/opt/odoo/odoo13/odoo/http.py", line 624, in _handle_exception

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

File "/opt/odoo/odoo13/odoo/http.py", line 310, in _handle_exception

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

File "/opt/odoo/odoo13/odoo/tools/pycompat.py", line 14, in reraise

raise value

File "/opt/odoo/odoo13/odoo/http.py", line 669, in dispatch

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

File "/opt/odoo/odoo13/odoo/http.py", line 350, in _call_function

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

File "/opt/odoo/odoo13/odoo/service/model.py", line 94, in wrapper

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

File "/opt/odoo/odoo13/odoo/http.py", line 339, in checked_call

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

File "/opt/odoo/odoo13/odoo/http.py", line 915, in __call__

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

File "/opt/odoo/odoo13/odoo/http.py", line 515, in response_wrap

response = f(*args, **kw)

File "/opt/odoo/odoo13/addons/web/controllers/main.py", line 1346, in call_button

action = self._call_kw(model, method, args, kwargs)

File "/opt/odoo/odoo13/addons/web/controllers/main.py", line 1334, in _call_kw

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

File "/opt/odoo/odoo13/odoo/api.py", line 390, in call_kw

result = _call_kw_multi(method, model, args, kwargs)

File "/opt/odoo/odoo13/odoo/api.py", line 377, in _call_kw_multi

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

File "/opt/odoo/zkteco-addons-v13/odoo-custom-addons/zkteco-erp/zkteco_stock/models/stock_picking.py", line 58, in button_validate

if supplier_vat.upper() != transmitter_vat.upper():

AttributeError: 'bool' object has no attribute 'upper'

Avatar
Discard
Best Answer

Hello

As per error says, you are trying to call upper method for boolean.upper is related to string.

please apply following condition to avoid this error:

if supplier_vat and transmitter_vat and supplier_vat.upper() != transmitter_vat.upper():


Thanks & Regards,



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat 380015
    

Avatar
Discard