Skip to Content
Menu
This question has been flagged
3 Replies
1097 Views
Odoo Server Error
Traceback (most recent call last):
  File "C:\Users\sonm6\odoo\odoo\tools\convert.py", line 677, in _tag_root
    f(rec)
  File "C:\Users\sonm6\odoo\odoo\tools\convert.py", line 580, in _tag_record
    record = model._load_records([data], self.mode == 'update')
  File "C:\Users\sonm6\odoo\odoo\models.py", line 4231, in _load_records
    records = self._load_records_create([data['values'] for data in to_create])
  File "C:\Users\sonm6\odoo\odoo\models.py", line 4152, in _load_records_create
    return self.create(values)
  File "", line 2, in create
  File "C:\Users\sonm6\odoo\odoo\api.py", line 329, in _model_create_single
    return self.browse().concat(*(create(self, vals) for vals in arg))
  File "C:\Users\sonm6\odoo\odoo\api.py", line 329, in 
    return self.browse().concat(*(create(self, vals) for vals in arg))
  File "c:\users\sonm6\odoo\addons\fleet_trip\models\fleet_info.py", line 48, in create
    raise ValidationError('Không thể tạo địa điểm trùng nhau!')
odoo.exceptions.ValidationError: Không thể tạo địa điểm trùng nhau!

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\sonm6\odoo\odoo\addons\base\models\ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "C:\Users\sonm6\odoo\odoo\http.py", line 683, in dispatch
    result = self._call_function(**self.params)
  File "C:\Users\sonm6\odoo\odoo\http.py", line 359, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "C:\Users\sonm6\odoo\odoo\service\model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "C:\Users\sonm6\odoo\odoo\http.py", line 347, in checked_call
    result = self.endpoint(*a, **kw)
  File "C:\Users\sonm6\odoo\odoo\http.py", line 912, in __call__
    return self.method(*args, **kw)
  File "C:\Users\sonm6\odoo\odoo\http.py", line 531, in response_wrap
    response = f(*args, **kw)
  File "c:\users\sonm6\odoo\addons\web\controllers\main.py", line 1398, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "c:\users\sonm6\odoo\addons\web\controllers\main.py", line 1386, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Users\sonm6\odoo\odoo\api.py", line 399, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "C:\Users\sonm6\odoo\odoo\api.py", line 386, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "", line 2, in button_immediate_install
  File "C:\Users\sonm6\odoo\odoo\addons\base\models\ir_module.py", line 74, in check_and_log
    return method(self, *args, **kwargs)
  File "C:\Users\sonm6\odoo\odoo\addons\base\models\ir_module.py", line 475, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "C:\Users\sonm6\odoo\odoo\addons\base\models\ir_module.py", line 593, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "C:\Users\sonm6\odoo\odoo\modules\registry.py", line 89, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "C:\Users\sonm6\odoo\odoo\modules\loading.py", line 459, in load_modules
    processed_modules += load_marked_modules(cr, graph,
  File "C:\Users\sonm6\odoo\odoo\modules\loading.py", line 347, in load_marked_modules
    loaded, processed = load_module_graph(
  File "C:\Users\sonm6\odoo\odoo\modules\loading.py", line 222, in load_module_graph
    load_data(cr, idref, mode, kind='data', package=package)
  File "C:\Users\sonm6\odoo\odoo\modules\loading.py", line 69, in load_data
    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
  File "C:\Users\sonm6\odoo\odoo\tools\convert.py", line 733, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate)
  File "C:\Users\sonm6\odoo\odoo\tools\convert.py", line 799, in convert_xml_import
    obj.parse(doc.getroot())
  File "C:\Users\sonm6\odoo\odoo\tools\convert.py", line 719, in parse
    self._tag_root(de)
  File "C:\Users\sonm6\odoo\odoo\tools\convert.py", line 677, in _tag_root
    f(rec)
  File "C:\Users\sonm6\odoo\odoo\tools\convert.py", line 681, in _tag_root
    raise ParseError('while parsing %s:%s, near\n%s' % (
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\sonm6\odoo\odoo\http.py", line 639, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "C:\Users\sonm6\odoo\odoo\http.py", line 315, in _handle_exception
    raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing file:/c:/users/sonm6/odoo/addons/fleet_trip/data/location_data.xml:10, near

            Company 2
            2
        


Avatar
Discard
Best Answer

Hi,

Please check your custom module named: fleet_trip and make necessary fixes in this code.

Thanks

Avatar
Discard
Best Answer

Internal server error is, as the name implies, a general problem with the website's server. More than likely, this means there's an issue or temporary glitch with the website's programming. Some potential causes of a 500 internal server error include: Corrupted or broken . htaccess file.


Regards,

Rachel Gomez

Avatar
Discard
Best Answer

Hello Paint


raise ValidationError('Cannot create duplicates!') odoo.exceptions.ValidationError: Cannot create duplicate locations!



By looking above error it seems you are tring to create duplicate location which is not allowed as there is an constraint written in python to restict this duplicatation.

please check your custom module python code to remove this constraint if you really want to do this action.

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