jayvora-serpentcs / fleet_management Goto Github PK
View Code? Open in Web Editor NEWFleet Management in Odoo
Fleet Management in Odoo
Hello, I have the follow errro to create a invoice in service repair Error: Odoo Server Error Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 656, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 314, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise raise value File "/usr/lib/python3/dist-packages/odoo/http.py", line 698, in dispatch result = self._call_function(**self.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 941, in call return self.method(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 519, in response_wrap response = f(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 966, in call_button action = self._call_kw(model, method, args, {}) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 954, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 759, in call_kw return _call_kw_multi(method, model, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 746, in _call_kw_multi result = method(recs, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/fleet_operations/models/fleet_service.py", line 84, in action_create_invoice 'account_id': service.vehicle_id.income_acc_id and AttributeError: 'fleet.vehicle' object has no attribute 'income_acc_id'
After install this module the label of sales/purchase info in contacts/ customers/ vendors is hided
Dear,
I encouer an issue when trying to install the folowingws Apps on Odoo 12.0 Community Edition :
Could you help me to fix this please?
I am looking for a gooa Apps to Manage cars Fleet, to rent cars and to manage bookings.
My Odoo labs runs on Windows server 2016 (on a personnal/local computer).
Attached are some captures and the errors messages.
thank you for your help
Fleet Operation error message:
Erreur:
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\service\model.py", line 98, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 941, in call
return self.method(*args, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 519, in response_wrap
response = f(*args, **kw)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\web\controllers\main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\web\controllers\main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 759, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 746, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\base\models\ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\base\models\ir_module.py", line 445, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\base\models\ir_module.py", line 561, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\modules\registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\modules\loading.py", line 421, in load_modules
loaded_modules, update_module, models_to_check)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\modules\loading.py", line 313, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\modules\loading.py", line 179, in load_module_graph
load_openerp_module(package.name)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\modules\module.py", line 368, in load_openerp_module
import('odoo.addons.' + module_name)
File "", line 961, in _find_and_load
File "", line 950, in _find_and_load_unlocked
File "", line 646, in _load_unlocked
File "", line 616, in load_backward_compatible
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\modules\module.py", line 82, in load_module
exec(open(modfile, 'rb').read(), new_mod.dict)
File "", line 4, in
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\fleet_operations\models_init.py", line 4, in
from . import fleet_extended
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\fleet_operations\models\fleet_extended.py", line 954, in
class FleetVehicleModel(models.Model):
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\fleet_operations\models\fleet_extended.py", line 970, in FleetVehicleModel
image_128 = fields.Image(string="Image", readonly=False)
AttributeError: module 'odoo.fields' has no attribute 'Image'
Fleet Rental Vehicle error message:
Erreur:
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\service\model.py", line 98, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 941, in call
return self.method(*args, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 519, in response_wrap
response = f(*args, **kw)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\web\controllers\main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\web\controllers\main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 759, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 746, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\base\models\ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\base\models\ir_module.py", line 445, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\base\models\ir_module.py", line 561, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\modules\registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\modules\loading.py", line 421, in load_modules
loaded_modules, update_module, models_to_check)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\modules\loading.py", line 313, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\modules\loading.py", line 195, in load_module_graph
registry.init_models(cr, model_names, {'module': package.name})
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\modules\registry.py", line 305, in init_models
func()
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\fields.py", line 2694, in update_db_foreign_keys
sql.add_foreign_key(cr, self.relation, self.column2, comodel._table, 'id', 'cascade')
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\tools\sql.py", line 159, in add_foreign_key
cr.execute(query.format(tablename1, columnname1, tablename2, columnname2, ondelete))
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\sql_db.py", line 148, in wrapper
return f(self, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\sql_db.py", line 225, in execute
res = self._obj.execute(query, params)
psycopg2.errors.UndefinedTable: ERREUR: la relation « _unknown » n'existe pas
Are u guys willing to upgrade to v16?
Drivers History menu is missing
Using v13 of the vehicles_dealership module. When saving a Vehicle I get the following error.
Odoo Server Error
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/odoo/odoo-server/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/odoo/odoo-server/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/odoo/odoo-server/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo-server/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo-server/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo-server/odoo/http.py", line 915, in __call__
return self.method(*args, **kw)
File "/odoo/odoo-server/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1322, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1314, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 385, in call_kw
result = _call_kw_model_create(method, model, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 365, in _call_kw_model_create
result = method(recs, *args, **kwargs)
File "<decorator-gen-158>", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 314, in _model_create_single
return create(self, arg)
File "/odoo/custom/addons/vehicles_dealership/models/fleet_vehicle.py", line 25, in create
create_fleet_vehicle=True)).create(vals)
File "<decorator-gen-116>", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 314, in _model_create_single
return create(self, arg)
File "/odoo/odoo-server/addons/fleet/models/fleet_vehicle.py", line 206, in create
res = super(FleetVehicle, self).create(vals)
File "<decorator-gen-109>", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 335, in _model_create_multi
return create(self, [arg])
File "/odoo/odoo-server/addons/mail/models/mail_thread.py", line 268, in create
threads = super(MailThread, self).create(vals_list)
File "<decorator-gen-3>", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/odoo/odoo-server/odoo/models.py", line 3736, in create
for data in parent_data_list
File "<decorator-gen-159>", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 317, in _model_create_single
return self.browse().concat(*(create(self, vals) for vals in arg))
File "/odoo/odoo-server/odoo/api.py", line 317, in <genexpr>
return self.browse().concat(*(create(self, vals) for vals in arg))
File "/odoo/custom/addons/vehicles_dealership/models/fleet_vehicle.py", line 77, in create
return super(ProductProduct, self).create(vals)
File "<decorator-gen-123>", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 335, in _model_create_multi
return create(self, [arg])
File "/odoo/odoo-server/addons/product/models/product.py", line 319, in create
products = super(ProductProduct, self.with_context(create_product_product=True)).create(vals_list)
File "<decorator-gen-109>", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/odoo/odoo-server/addons/mail/models/mail_thread.py", line 268, in create
threads = super(MailThread, self).create(vals_list)
File "<decorator-gen-3>", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/odoo/odoo-server/odoo/models.py", line 3736, in create
for data in parent_data_list
File "<decorator-gen-120>", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/odoo/odoo-server/addons/product/models/product_template.py", line 374, in create
templates = super(ProductTemplate, self).create(vals_list)
File "<decorator-gen-109>", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/odoo/odoo-server/addons/mail/models/mail_thread.py", line 268, in create
threads = super(MailThread, self).create(vals_list)
File "<decorator-gen-3>", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/odoo/odoo-server/odoo/models.py", line 3742, in create
records = self._create(data_list)
File "/odoo/odoo-server/odoo/models.py", line 3814, in _create
col_val = field.convert_to_column(val, self, stored)
File "/odoo/odoo-server/odoo/fields.py", line 2230, in convert_to_column
value = self.convert_to_cache(value, record)
File "/odoo/odoo-server/odoo/fields.py", line 2242, in convert_to_cache
raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for product.template.type: 'product'
Hi,
Am getting an error when installing fleet_rent module.
I tried to install all the dependency modules also, but the same kind of error coming for those modules as well.
hi
i am unable to install fleet operations on community edition on windows, tried to do as #60 but with no luck, following is the error
Error:
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files\server\odoo\tools\convert.py", line 677, in _tag_root
f(rec)
File "C:\Program Files\server\odoo\tools\convert.py", line 580, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "C:\Program Files\server\odoo\models.py", line 4211, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "C:\Program Files\server\odoo\models.py", line 4140, in _load_records_create
return self.create(values)
File "", line 2, in create
File "C:\Program Files\server\odoo\api.py", line 345, in _model_create_multi
return create(self, arg)
File "C:\Program Files\server\odoo\addons\base\models\ir_ui_view.py", line 482, in create
return super(View, self).create(vals_list)
File "", line 2, in create
File "C:\Program Files\server\odoo\api.py", line 345, in _model_create_multi
return create(self, arg)
File "C:\Program Files\server\odoo\addons\base\models\ir_fields.py", line 533, in create
recs = super().create(vals_list)
File "", line 2, in create
File "C:\Program Files\server\odoo\api.py", line 345, in _model_create_multi
return create(self, arg)
File "C:\Program Files\server\odoo\models.py", line 3901, in create
fields[0].determine_inverse(batch_recs)
File "C:\Program Files\server\odoo\fields.py", line 1185, in determine_inverse
getattr(records, self.inverse)()
File "C:\Program Files\server\odoo\addons\base\models\ir_ui_view.py", line 300, in _inverse_arch
view.write(data)
File "C:\Program Files\server\odoo\addons\website\models\theme_models.py", line 267, in write
res = super(IrUiView, other_views).write(vals)
File "C:\Program Files\server\odoo\addons\website\models\ir_ui_view.py", line 68, in write
return super(View, self).write(vals)
File "C:\Program Files\server\odoo\addons\base\models\ir_ui_view.py", line 500, in write
res = super(View, self).write(self._compute_defaults(vals))
File "C:\Program Files\server\odoo\models.py", line 3685, in write
real_recs._validate_fields(vals, inverse_fields)
File "C:\Program Files\server\odoo\models.py", line 1260, in _validate_fields
check(self)
File "C:\Program Files\server\odoo\addons\base\models\ir_ui_view.py", line 411, in _check_xml
)).with_traceback(e.traceback) from None
File "C:\Program Files\server\odoo\addons\base\models\ir_ui_view.py", line 391, in _check_xml
view.postprocess_and_fields(view_doc, validate=True)
File "C:\Program Files\server\odoo\addons\base\models\ir_ui_view.py", line 851, in postprocess_and_fields
arch, name_manager = self._postprocess_view(node, model, validate=validate)
File "C:\Program Files\server\odoo\addons\base\models\ir_ui_view.py", line 865, in _postprocess_view
name_manager.check_view_fields(self)
File "C:\Program Files\server\odoo\addons\base\models\ir_ui_view.py", line 2009, in check_view_fields
view.handle_view_error(msg)
File "C:\Program Files\server\odoo\addons\base\models\ir_ui_view.py", line 673, in handle_view_error
raise ValueError(formatted_message).with_traceback(from_traceback) from from_exception
odoo.exceptions.ValidationError: Error while validating view:
Field is_traccar used in attrs.invisible ({'invisible': [('is_traccar', '=', False)]}) must be present in view but is missing.
View name: fleet.vehicle.model.form.extended
Error context:
view: ir.ui.view(2505,)
xmlid: fleet_vehicle_model_form_extended
view.model: fleet.vehicle
view.parent: ir.ui.view(898,)
file: c:\program files\server\odoo\addons\fleet_operations\views\fleet_extended_view.xml
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Program Files\server\odoo\addons\base\models\ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "C:\Program Files\server\odoo\http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files\server\odoo\http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files\server\odoo\service\model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files\server\odoo\http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files\server\odoo\http.py", line 912, in call
return self.method(*args, **kw)
File "C:\Program Files\server\odoo\http.py", line 531, in response_wrap
response = f(*args, **kw)
File "C:\Program Files\server\odoo\addons\web\controllers\main.py", line 1393, in call_button
action = self._call_kw(model, method, args, kwargs)
File "C:\Program Files\server\odoo\addons\web\controllers\main.py", line 1381, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files\server\odoo\api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files\server\odoo\api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "C:\Program Files\server\odoo\addons\base\models\ir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "C:\Program Files\server\odoo\addons\base\models\ir_module.py", line 474, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "C:\Program Files\server\odoo\addons\base\models\ir_module.py", line 592, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "C:\Program Files\server\odoo\modules\registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\Program Files\server\odoo\modules\loading.py", line 455, in load_modules
loaded_modules, update_module, models_to_check)
File "C:\Program Files\server\odoo\modules\loading.py", line 348, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "C:\Program Files\server\odoo\modules\loading.py", line 221, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "C:\Program Files\server\odoo\modules\loading.py", line 69, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "C:\Program Files\server\odoo\tools\convert.py", line 733, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "C:\Program Files\server\odoo\tools\convert.py", line 799, in convert_xml_import
obj.parse(doc.getroot())
File "C:\Program Files\server\odoo\tools\convert.py", line 719, in parse
self._tag_root(de)
File "C:\Program Files\server\odoo\tools\convert.py", line 685, in _tag_root
)) from e
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Program Files\server\odoo\http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files\server\odoo\http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing file:/c:/program%20files/server/odoo/addons/fleet_operations/views/fleet_extended_view.xml:160, near
fleet.vehicle.model.form.extended
fleet.vehicle
<button name="%(fleet_operations.fleet_vehicle_log_services_form_action)d" type="action" string="Services" icon="fa-gears" class="oe_stat_button oe_highlight" domain="[('state','in',('inspection','released'))]" context="{'default_vehicle_id': active_id}"/>
<button name="%(fleet_operations.fleet_vehicle_write_off_form_action)d" type="action" string="Write-off" icon="fa-gears" class="oe_stat_button oe_highlight" domain="[('state','in',('inspection','released'))]" context="{'default_vehicle_id': active_id}"/>
<field name="state" widget="statusbar" statusbar_visible="inspection,in_progress,complete"/>
</xpath>
<xpath expr="//div[@name='button_box']" position="replace">
<div class="oe_button_box" name="button_box">
<button name="open_assignation_logs" type="object" class="oe_stat_button" icon="fa-history" help="show all the driver history" groups="fleet.fleet_group_manager">
<field name="history_count" widget="statinfo" string="Drivers History"/>
</button>
<!-- Cost Model is removed -->
<!-- <button name="act_show_log_cost"
type="object"
class="oe_stat_button"
icon="fa-usd"
help="show all the costs for this vehicle"
groups="fleet.fleet_group_manager">
<field name="cost_count" widget="statinfo" string="Costs"/>
</button> -->
<button name="return_action_to_open" type="object" class="oe_stat_button" icon="fa-wrench" context="{'xml_id':'fleet_vehicle_log_services_action'}" help="show the services logs for this vehicle">
<field name="service_count" widget="statinfo" string="Services"/>
</button>
<!-- Fuel Log Model removed -->
<!-- <button name="return_action_to_open"
type="object"
class="oe_stat_button"
icon="fa-flask"
context="{'xml_id':'fleet_vehicle_log_fuel_action'}"
help="show the fuel logs for this vehicle" >
<field name="fuel_logs_count" widget="statinfo" string="Fuel"/>
</button> -->
<button name="return_action_to_open" type="object" class="oe_stat_button" icon="fa-tachometer" context="{'xml_id':'fleet_vehicle_odometer_action'}" help="show the odometer logs for this vehicle">
<field name="odometer_count" widget="statinfo" string="Odometer"/>
</button>
</div>
</xpath>
<xpath expr="//field[@name='next_assignation_date']" position="after">
<field name="active"/>
</xpath>
<xpath expr="//form/sheet/group/group/field[@name='car_value']" position="after">
<field name="income_acc_id" string="Income Account" required="1"/>
<field name="expence_acc_id" string="Expense Account" required="1"/>
</xpath>
<xpath expr="//sheet/div[hasclass('oe_title')]" position="replace"/>
<xpath expr="//field[@name='acquisition_date']" position="attributes">
<attribute name="string">Registration Date</attribute>
<attribute name="readonly">1</attribute>
</xpath>
<xpath expr="//field[@name='acquisition_date']" position="before">
<field name="released_date"/>
<field name="reg_id" readonly="1"/>
<field name="vehicle_owner" required="1" options="{'no_open': True, 'no_create': True, 'no_create_edit': True}"/>
</xpath>
<xpath expr="//field[@name='acquisition_date']" position="after">
<field name="updated_by" readonly="1"/>
<field name="updated_date" readonly="1"/>
<field name="warranty_period" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="increment_odometer" invisible="1"/>
</xpath>
<xpath expr="//field[@name='odometer']" position="attributes">
<attribute name="attrs">{'readonly':[('state','in',('write-off'))]}</attribute>
</xpath>
<xpath expr="//field[@name='odometer_unit']" position="attributes">
<attribute name="attrs">{'readonly':[('state','in',('write-off'))]}</attribute>
</xpath>
<xpath expr="//sheet/field[@name='image_128']" position="after">
<div class="oe_title">
<label for="f_brand_id" class="oe_edit_only"/>
<h1>
<field name="f_brand_id" required="1" class="oe_inline" options="{'no_open': True, 'create': false, 'create_edit': false}" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</h1>
<group colspan="2" col="2">
<field name="model_id" class="oe_inline" domain="[('brand_id','=',f_brand_id)]" options="{'no_open': True, 'create': false, 'create_edit': false}" attrs="{'readonly':[('state','in',('write-off'))]}" context="{'default_brand_id': f_brand_id}"/>
<field name="model_no" class="oe_inline" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="license_plate" class="oe_inline" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="name" string="Vehicle-ID" readonly="1" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</group>
</div>
</xpath>
<xpath expr="//field[@name='odometer']" position="after">
<field name="odometer_check" invisible="1"/>
</xpath>
<xpath expr="//field[@name='odometer_unit']" position="attributes">
<attribute name="attrs">{'readonly':[('odometer_check','=',False)]}</attribute>
</xpath>
<xpath expr="//field[@name='location']" position="replace"/>
<xpath expr="//field[@name='driver_id']" position="before">
<field name="vechical_type_id" options="{'no_open': True, 'create': false, 'create_edit': false}" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</xpath>
<xpath expr="//field[@name='driver_id']" position="attributes">
<attribute name="attrs">{'readonly':[('state','in',('write-off'))]}</attribute>
<attribute name="domain">[('is_driver','=',True)]</attribute>
<attribute name="options">{'no_quick_create': True}</attribute>
<attribute name="context">{'default_is_driver':True}</attribute>
</xpath>
<xpath expr="//field[@name='driver_id']" position="after">
<field name="driver_identification_no" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="driver_contact_no" string="Driver Contact Number" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</xpath>
<xpath expr="//field[@name='vechical_type_id']" position="after">
<field name="vehical_color_id" attrs="{'readonly':[('is_color_set','=',True)]}" options="{'no_open': True, 'create': false, 'create_edit': false}"/>
<field name="vehicle_location_id" string="Registration State" attrs="{'readonly':[('state','in',('write-off'))]}" options="{'no_open': True, 'create': false, 'create_edit': false}"/>
<field name="vehical_division_id" invisible="1" attrs="{'readonly':[('state','in',('write-off'))]}" options="{'no_open': True, 'create': false, 'create_edit': false}"/>
</xpath>
<xpath expr="//field[@name='car_value']" position="replace">
<field name="car_value" invisible="1"/>
</xpath>
<xpath expr="//field[@name='company_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<!-- hide engine,contract and model. -->
<xpath expr="//form/sheet/group/group[5]" position="replace">
</xpath>
<xpath expr="//form/sheet/group/group[4]" position="replace">
</xpath>
<xpath expr="//form/sheet/group/group[3]" position="replace">
</xpath>
<xpath expr="//form/sheet/group[@col='2']" position="after">
<notebook colspan="4">
<page string="Engine Specifications">
<group string="Engine Parameters">
<group colspan="2" col="4">
<field name="engine_no" attrs="{'readonly': [('is_engine_set','=',True)]}"/>
<field name="transmission" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="co2" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="engine_size" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="horsepower" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="cylinders" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="horsepower_tax" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="power" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</group>
</group>
</page>
<page string="Features">
<group string="">
<group string="Tire Detail">
<field name="tire_size" attrs="{'readonly':['|',('is_tire_size_set','=',True),('state','in',('write-off'))]}"/>
<field name="tire_srno" attrs="{'readonly':['|',('is_tire_srno_set','=',True),('state','in',('write-off'))]}"/>
<field name="tire_issuance_date" attrs="{'readonly':['|',('is_tire_issue_set','=',True),('state','in',('write-off'))]}"/>
</group>
<group string="Battery Detail">
<field name="battery_size" attrs="{'readonly':['|',('state','in',('write-off')),('is_battery_size_set','=',True)]}"/>
<field name="battery_srno" attrs="{'readonly':['|',('state','in',('write-off')),('is_battery_srno_set','=',True)]}"/>
<field name="battery_issuance_date" attrs="{'readonly':['|',('state','in',('write-off')),('is_battery_issue_set','=',True)]}"/>
</group>
</group>
<notebook colspan="4" string=" Information">
<page string="Dimensions And Capacity">
<group>
<group col="2" string="Dimensions">
<field name="vehicle_length" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="vehicle_width" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="vehicle_height" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</group>
<group col="2" string="Capacity">
<field name="seats" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</group>
</group>
</page>
<page string="Other Properties">
<group colspan="3" col="6">
<field name="left_wiper_blade" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="right_wiper_blade" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="rr_wiper_blade" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="doors" string="No of Doors" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</group>
</page>
</notebook>
</page>
<page string="Fluids">
<group>
<group colspan="2" col="4" string="Fuel">
<field name="fuel_type" required="1" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="fuel_qty" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="fuel_capacity" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</group>
<group colspan="2" col="4" string="Oil">
<field name="oil_name" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="oil_capacity" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</group>
</group>
</page>
<page string="Service Details">
<group colspan="4" col="6">
<group string="Last Service">
<field name="last_service_date"/>
<field name="last_change_status_date"/>
<field name="last_service_by_id" readonly="1"/>
</group>
<group string="Next Service Due">
<field name="next_service_date"/>
<label for="due_odometer"/>
<div>
<field name="due_odometer" class="oe_inline" readonly="1"/>
<field name="due_odometer_unit" class="oe_inline" readonly="1"/>
</div>
</group>
</group>
<separator string="Work Orders" colspan="4" invisible="1"/>
<field name="work_order_ids" invisible="1">
<tree>
<field name="name"/>
<field name="service_type_id"/>
<field name="date" string="Issue Date"/>
<field name="date_open"/>
<field name="date_close"/>
<field name="state"/>
</tree>
</field>
<separator string="Pending Repair Types" colspan="4"/>
<field name="pending_repair_type_ids">
<tree>
<field name="vehicle_rep_type_id" invisible="1"/>
<field name="name"/>
<field name="repair_type_id"/>
<field name="categ_id"/>
<field name="issue_date"/>
<field name="state"/>
<field name="user_id"/>
</tree>
<form>
<group colspan="4" col="4">
<field name="vehicle_rep_type_id" invisible="1" options="{'no_open': True, 'create': false, 'create_edit': false}"/>
<field name="name"/>
<field name="repair_type_id" readonly="1" options="{'no_open': True, 'create': false, 'create_edit': false}"/>
<field name="categ_id" readonly="1"/>
<field name="issue_date" readonly="1"/>
<field name="state" readonly="1"/>
<field name="user_id" readonly="1" options="{'no_open': True, 'create': false, 'create_edit': false}"/>
</group>
</form>
</field>
</page>
<page string="Sales & Purchases" invisible="1">
<group col="2">
<field name="dealer_id" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="car_value" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="mileage" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</group>
<group string="Equipment Detail">
<group col="2">
<field name="buyer_id" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</group>
<group colspan="2" col="4">
<field name="date_sold" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="transfer_date" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</group>
</group>
<separator string="Attachments" colspan="4"/>
<field name="sale_purchase_attach_ids" nolabel="1" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</page>
<page string="Insurance Terms">
<group>
<group>
<field name="insurance_company_id" domain="[('insurance','=',True)]" options="{'no_quick_create': True}" attrs="{'readonly':[('state','in',('write-off'))]}" context="{'default_is_company':True,'default_insurance':True}"/>
<field name="insurance_type_id" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="start_date_insurance" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="end_date_insurance" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</group>
<group col="2">
<field name="policy_number" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="payment" attrs="{'readonly':[('state','in',('write-off'))]}"/>
<field name="payment_deduction" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</group>
</group>
</page>
<page string="Attachments">
<field name="fleet_attach_ids" nolabel="1" attrs="{'readonly':[('state','in',('write-off'))]}"/>
</page>
<page string="Vehicle Images">
<field name="multi_images" widget="many2many_binary"/>
<!-- <tree>
<field name="image"/>
<field name="description"/>
<field name="title"/>
</tree>
<form>
<group>
<field name="title" required="True"/>
<field name="description" required="True"/>
<field name="image" required="True"/>
</group>
</form> -->
</page>
<page string="History">
<group colspan="4" col="6">
<field name="is_color_set" invisible="1"/>
<field name="is_engine_set" invisible="1"/>
<field name="is_vin_set" invisible="1"/>
<field name="is_tire_size_set" invisible="1"/>
<field name="is_tire_srno_set" invisible="1"/>
<field name="is_tire_issue_set" invisible="1"/>
<field name="is_battery_size_set" invisible="1"/>
<field name="is_battery_srno_set" invisible="1"/>
<field name="is_battery_issue_set" invisible="1"/>
</group>
<separator string="Engine History" colspan="4"/>
<field name="engine_history_ids" nolabel="1">
<tree>
<field name="previous_engine_no" style="width:20%;"/>
<field name="new_engine_no"/>
<field name="changed_date" style="width:100%"/>
<field name="workorder_id"/>
<field name="note"/>
</tree>
</field>
<separator string="Vin History" colspan="4" invisible="1"/>
<field name="vin_history_ids" nolabel="1" invisible="1">
<tree>
<field name="previous_vin_no"/>
<field name="new_vin_no"/>
<field name="changed_date"/>
<field name="workorder_id"/>
<field name="note"/>
</tree>
</field>
<separator string="Color History" colspan="4"/>
<field name="color_history_ids" nolabel="1">
<tree>
<field name="previous_color_id"/>
<field name="current_color_id"/>
<field name="changed_date"/>
<field name="workorder_id"/>
<field name="note"/>
</tree>
</field>
<separator string="Tire History" colspan="4"/>
<field name="tire_history_ids" nolabel="1">
<tree>
<field name="previous_tire_size"/>
<field name="new_tire_size"/>
<field name="previous_tire_sn"/>
<field name="new_tire_sn"/>
<field name="previous_tire_issue_date"/>
<field name="new_tire_issue_date"/>
<field name="workorder_id"/>
<field name="changed_date"/>
<field name="note"/>
</tree>
</field>
<separator string="Battery History" colspan="4"/>
<field name="battery_history_ids" nolabel="1">
<tree>
<field name="previous_battery_size"/>
<field name="new_battery_size"/>
<field name="previous_battery_sn"/>
<field name="new_battery_sn"/>
<field name="previous_battery_issue_date"/>
<field name="new_battery_issue_date"/>
<field name="workorder_id"/>
<field name="changed_date"/>
<field name="note"/>
</tree>
</field>
</page>
<page string="Notes">
<separator string="Note" colspan="4"/>
<field nolabel="1" name="description" placeholder="Put an internal note..." attrs="{'readonly':[('state','in',('write-off'))]}"/>
</page>
</notebook>
</xpath>
<xpath expr="//field[@name='engine_size']" position="attributes">
<attribute name="string">Engine Model</attribute>
</xpath>
</data></field>
</record>
Hi, on clean Odoo community 11 install, I add fleet_management.
When I create new car and try assign driver I get error:
TypeError: undefined is not an object (evaluating 'nameGet[1]')
http://xxx.xxx.xxx.xxx/web/content/557-288ea84/web.assets_backend.js:1192
Traceback:
http://xxx.xxx.xxx.xxx/web/content/557-288ea84/web.assets_backend.js:1192:382
forEach@http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:12:566
http://xxx.xxx.xxx.xxx/web/content/557-288ea84/web.assets_backend.js:1192:248
http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:802:686
fire@http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:796:304
fireWith@http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:801:202
http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:803:56
http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:3869:363
http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:802:686
fire@http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:796:304
fireWith@http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:801:202
http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:803:56
fire@http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:796:304
fireWith@http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:801:202
http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:802:874
fire@http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:796:304
fireWith@http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:801:202
http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:802:874
fire@http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:796:304
fireWith@http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:801:202
done@http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:1192:106
callback@http://xxx.xxx.xxx.xxx/web/content/548-3e58a25/web.assets_common.js:1212:23
I test this on clean database and database with demo data. but same problem.
Error:
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\addons\base\models\ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\service\model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\http.py", line 912, in call
return self.method(*args, **kw)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\http.py", line 531, in response_wrap
response = f(*args, **kw)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\addons\web\controllers\main.py", line 1381, in call_button
action = self._call_kw(model, method, args, kwargs)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\addons\web\controllers\main.py", line 1369, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\addons\base\models\ir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\addons\base\models\ir_module.py", line 474, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\addons\base\models\ir_module.py", line 592, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\modules\registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\modules\loading.py", line 455, in load_modules
loaded_modules, update_module, models_to_check)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\modules\loading.py", line 348, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\modules\loading.py", line 187, in load_module_graph
model_names = registry.load(cr, package)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\modules\registry.py", line 232, in load
model = cls._build_model(self, cr)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\models.py", line 550, in _build_model
raise TypeError("Model %r does not exist in registry." % name)
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files\Odoo 14.0.20210206\server\odoo\http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
TypeError: Model 'fleet.vehicle.log.fuel' does not exist in registry.
Steps to reproduce:
Create a vehicle;
Create a rent;
Try to invoice rent.
`Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/models.py", line 5189, in _update_cache
field_values = [(fields[name], value) for name, value in values.items()]
File "/opt/odoo/odoo/odoo/models.py", line 5189, in
field_values = [(fields[name], value) for name, value in values.items()]
KeyError: 'invoice_origin'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/opt/odoo/odoo/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo/odoo/http.py", line 915, in call
return self.method(*args, **kw)
File "/opt/odoo/odoo/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 1331, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 1319, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/odoo/api.py", line 387, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo/odoo/api.py", line 374, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo/fleet_management/fleet_rent/models/fleet_rent.py", line 832, in create_invoice
acc_id = self.env['account.move'].create(inv_values)
File "", line 2, in create
File "/opt/odoo/odoo/odoo/api.py", line 335, in _model_create_multi
return create(self, [arg])
File "/opt/odoo/odoo/addons/purchase/models/account_invoice.py", line 103, in create
moves = super(AccountMove, self).create(vals_list)
File "", line 2, in create
File "/opt/odoo/odoo/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/opt/odoo/odoo/addons/account/models/account_move.py", line 1699, in create
vals_list = self._move_autocomplete_invoice_lines_create(vals_list)
File "/opt/odoo/odoo/addons/account/models/account_move.py", line 1665, in _move_autocomplete_invoice_lines_create
move = self_ctx.new(new_vals)
File "/opt/odoo/odoo/odoo/models.py", line 5547, in new
record._update_cache(values, validate=False)
File "/opt/odoo/odoo/odoo/models.py", line 5195, in _update_cache
cache.set(self, field, field.convert_to_cache(value, self, validate))
File "/opt/odoo/odoo/odoo/fields.py", line 2759, in convert_to_cache
ids.add(comodel.new(command[2], ref=command[1]).id)
File "/opt/odoo/odoo/odoo/models.py", line 5547, in new
record._update_cache(values, validate=False)
File "/opt/odoo/odoo/odoo/models.py", line 5191, in _update_cache
raise ValueError("Invalid field %r on model %r" % (e.args[0], self._name))
ValueError: Invalid field 'invoice_origin' on model 'account.move.line'`
HI,
the Fleet operations module returns error while the repairs is not completed and pressed button "Done".
Odoo Server Error
Traceback (most recent call last):
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/http.py", line 619, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/http.py", line 309, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/http.py", line 664, in dispatch
result = self._call_function(**self.params)
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/http.py", line 345, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/service/model.py", line 93, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/http.py", line 338, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/http.py", line 909, in call
return self.method(*args, **kw)
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/http.py", line 510, in response_wrap
response = f(*args, **kw)
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/addons/web/controllers/main.py", line 1323, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/addons/web/controllers/main.py", line 1311, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/api.py", line 395, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/api.py", line 382, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/bitnami/apps/odoo/data/addons/13.0/fleet_operations/models/fleet_service.py", line 224, in action_done
context.update({'work_order_id': work_order.id})
File "/opt/bitnami/apps/odoo/lib/odoo-13.0.post20200115-py3.7.egg/odoo/tools/misc.py", line 1003, in update
raise NotImplementedError("'update' not supported on frozendict")
NotImplementedError: 'update' not supported on frozendict
Hi, I am installing fleet management module in odoo 10 CE but getting this server error even after installing all the dependencies. Here find below the error:
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo10/odoo/http.py", line 642, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo10/odoo/http.py", line 684, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo10/odoo/http.py", line 334, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo10/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo10/odoo/http.py", line 327, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo10/odoo/http.py", line 942, in call
return self.method(*args, **kw)
File "/opt/odoo10/odoo/http.py", line 507, in response_wrap
response = f(*args, **kw)
File "/opt/odoo10/addons/web/controllers/main.py", line 899, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo10/addons/web/controllers/main.py", line 887, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo10/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/opt/odoo10/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo10/odoo/addons/base/module/module.py", line 413, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/opt/odoo10/odoo/addons/base/module/module.py", line 495, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/opt/odoo10/odoo/modules/registry.py", line 83, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/odoo10/odoo/modules/loading.py", line 377, in load_modules
loaded_modules, update_module, models_to_check)
File "/opt/odoo10/odoo/modules/loading.py", line 270, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/opt/odoo10/odoo/modules/loading.py", line 182, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/opt/odoo10/odoo/modules/loading.py", line 96, in load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/opt/odoo10/odoo/tools/convert.py", line 840, in convert_file
convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate)
File "/opt/odoo10/odoo/tools/convert.py", line 896, in convert_csv_import
raise Exception(('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg))
Exception: Module loading fleet_operations failed: file fleet_operations/security/ir.model.access.csv could not be processed:
No matching record found for external id 'model_edit_parts_contact_team_trip' in field 'Object'
Missing required value for the field 'Object' (model_id)
No matching record found for external id 'model_edit_parts_contact_team_trip' in field 'Object'
Missing required value for the field 'Object' (model_id)
while open report update next service day show this error:
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/odoo/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/odoo/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/home/odoo/odoo/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/odoo/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/odoo/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/odoo/odoo/http.py", line 915, in call
return self.method(*args, **kw)
File "/home/odoo/odoo/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/home/odoo/odoo/addons/web/controllers/main.py", line 1322, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/odoo/addons/web/controllers/main.py", line 1314, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 383, in call_kw
result = _call_kw_model(method, model, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 356, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/opt/odoo/extra-addons/fleet_operations/wizard/update_next_service.py", line 50, in default_get
service = serv_obj.browse(self._context['active_id'])
KeyError: 'active_id'
Dear Developers,
, after installation of Odoo Fleet Operation App on clean Odoo 12 CE without demo data, we are getting an issue - missing menus, icons and functionalities.
Odoo12 CE installed on Windows by latest Odoo.exe installer and all the required modules.
Below is the part of odoo.log with debug info.
2019-05-05 12:30:19,371 3772 ERROR fleet odoo.sql_db: bad query: b"\n INSERT INTO ir_model_data (module, name, model, res_id, noupdate, date_init, date_update)\n VALUES ('fleet_operations', 'access_service_task_user', 'ir.model.access', 421, false, now() at …………………...
DO UPDATE SET date_update=(now() at time zone 'UTC') \n “
ERROR: ON CONFLICT DO UPDATE command cannot affect row a second time HINT: Ensure that no rows proposed for insertion within the same command have duplicate constrained values. 2019-05-05 12:30:19,371 3772
ERROR fleet odoo.addons.base.models.ir_model: Failed to insert ir_model_data ('fleet_operations', 'access_service_task_user', 'ir.model.access', 421, False)
Thank you !
Hi SerpenctCS Team,
Good day, I have an issue when I installed your Fleet_Management Module. When I installed it, suddenly my SALES Module > Customer and SALES Module > Product , got this error below. If I uninstall your module. everything will be fine. See error below.
Environment
Ubuntu 18.04 (Updated)
Odoo 11.0-20180814 Version
Thanks and Regards,
Bren
Error:
Uncaught TypeError: Cannot read property '1' of undefined
http://10.47.1.43:8069/web/content/511-824a8c9/web.assets_backend.js:1186
Traceback:
TypeError: Cannot read property '1' of undefined
at http://10.47.1.43:8069/web/content/511-824a8c9/web.assets_backend.js:1186:382
at Function..each..forEach (http://10.47.1.43:8069/web/content/510-be42584/web.assets_common.js:12:558)
at Object. (http://10.47.1.43:8069/web/content/511-824a8c9/web.assets_backend.js:1186:244)
at Object. (http://10.47.1.43:8069/web/content/510-be42584/web.assets_common.js:802:681)
at fire (http://10.47.1.43:8069/web/content/510-be42584/web.assets_common.js:796:299)
at Object.fireWith [as resolveWith] (http://10.47.1.43:8069/web/content/510-be42584/web.assets_common.js:801:198)
at Object.deferred.(anonymous function) [as resolve] (http://10.47.1.43:8069/web/content/510-be42584/web.assets_common.js:803:56)
at Object. (http://10.47.1.43:8069/web/content/510-be42584/web.assets_common.js:3869:358)
at Object. (http://10.47.1.43:8069/web/content/510-be42584/web.assets_common.js:802:681)
at fire (http://10.47.1.43:8069/web/content/510-be42584/web.assets_common.js:796:299)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.