Skip to Content
Menu
This question has been flagged
2 Replies
4118 Views

I need to install a module called odoo 15 full accounting kit by  Cybrosys Techno Solutions, Odoo SA. But when I installed it show this error below. For the dependencies, I've checked and make sure all dependencies are already installed. What should I do?


RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\tools\convert.py", line 680, in _tag_root

f(rec)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\tools\convert.py", line 583, in _tag_record

record = model._load_records([data], self.mode == 'update')

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\models.py", line 4418, in _load_records

records = self._load_records_create([data['values'] for data in to_create])

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\models.py", line 4339, in _load_records_create

return self.create(values)

File "", line 2, in create

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\api.py", line 413, in _model_create_multi

return create(self, arg)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\addons\base\models\ir_ui_view.py", line 539, in create

result = super(View, self.with_context(ir_ui_view_partial_validation=True)).create(vals_list)

File "", line 2, in create

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\api.py", line 413, in _model_create_multi

return create(self, arg)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\addons\base\models\ir_fields.py", line 613, in create

recs = super().create(vals_list)

File "", line 2, in create

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\api.py", line 413, in _model_create_multi

return create(self, arg)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\models.py", line 4071, in create

records = self._create(data_list)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\models.py", line 4236, in _create

records._validate_fields(name for data in data_list for name in data['stored'])

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\models.py", line 1367, in _validate_fields

check(self)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\addons\base\models\ir_ui_view.py", line 460, in _check_xml

raise err.with_traceback(e.__traceback__) from None

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\addons\base\models\ir_ui_view.py", line 434, in _check_xml

view._validate_view(combined_arch, view.model)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\addons\base\models\ir_ui_view.py", line 1300, in _validate_view

name_manager.check(self)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\addons\base\models\ir_ui_view.py", line 2267, in check

view._raise_view_error(msg)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\addons\base\models\ir_ui_view.py", line 739, in _raise_view_error

raise err from from_exception

odoo.exceptions.ValidationError: Error while validating view near:











Field 'company_id' used in domain of field 'journal_ids' ([('company_id', '=', company_id)]) must be present in view but is missing.



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



Traceback (most recent call last):

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\addons\base\models\ir_http.py", line 237, in _dispatch

result = request.dispatch()

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\http.py", line 688, in dispatch

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

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\http.py", line 360, in _call_function

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

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\service\model.py", line 94, in wrapper

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

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\http.py", line 349, in checked_call

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

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\http.py", line 917, in __call__

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

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\http.py", line 536, in response_wrap

response = f(*args, **kw)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\addons\web\controllers\main.py", line 1352, in call_button

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

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\addons\web\controllers\main.py", line 1340, in _call_kw

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

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\api.py", line 464, in call_kw

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

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\api.py", line 451, in _call_kw_multi

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

File "", line 2, in button_immediate_install

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\addons\base\models\ir_module.py", line 74, in check_and_log

return method(self, *args, **kwargs)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\addons\base\models\ir_module.py", line 483, in button_immediate_install

return self._button_immediate_function(type(self).button_install)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\addons\base\models\ir_module.py", line 600, in _button_immediate_function

registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\modules\registry.py", line 87, in new

odoo.modules.load_modules(registry, force_demo, status, update_module)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\modules\loading.py", line 476, in load_modules

loaded_modules, update_module, models_to_check)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\modules\loading.py", line 365, in load_marked_modules

perform_checks=perform_checks, models_to_check=models_to_check

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\modules\loading.py", line 222, in load_module_graph

load_data(cr, idref, mode, kind='data', package=package)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\modules\loading.py", line 69, in load_data

tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\tools\convert.py", line 745, in convert_file

convert_xml_import(cr, module, fp, idref, mode, noupdate)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\tools\convert.py", line 811, in convert_xml_import

obj.parse(doc.getroot())

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\tools\convert.py", line 731, in parse

self._tag_root(de)

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\tools\convert.py", line 691, in _tag_root

raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback

Exception



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



Traceback (most recent call last):

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\http.py", line 644, in _handle_exception

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

File "C:\Users\marce\Documents\odoo\odoo15\odoo\odoo\http.py", line 302, in _handle_exception

raise exception.with_traceback(None) from new_cause

odoo.tools.convert.ParseError: while parsing file:/c:/users/marce/documents/odoo/odoo15/addons_community/base_accounting_kit/wizard/aged_partner.xml:4

Error while validating view near:











Field 'company_id' used in domain of field 'journal_ids' ([('company_id', '=', company_id)]) must be present in view but is missing.



View error context:

{'file': 'c:\\users\\marce\\documents\\odoo\\odoo15\\addons_community\\base_accounting_kit\\wizard\\aged_partner.xml',

'line': 1,

'name': 'Aged Partner Balance',

'view': ir.ui.view(1940,),

'view.model': 'account.aged.trial.balance',

'view.parent': ir.ui.view(),

'xmlid': 'account_aged_balance_view'}




Avatar
Discard
Best Answer

Hi,

Add a company_id field and set it as invisible in the account_aged_balance_view and the issue will get resolved.

Thanks

Avatar
Discard
Author

it works, thank you

Best Answer

I am having a similar proble. Where exactly do we add the company_id and where do we set it as   invisible in the account_aged_balance_view

Avatar
Discard
Related Posts Replies Views Activity
2
May 22
1044
0
Feb 22
104
1
Apr 23
1737
1
Dec 22
1749
0
Dec 22
1531