You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i try to install the Ohada specific accounting module i got the below error !
Do you have any idea of the cause of this error? Thanks
Erreur:
Flectra Server Error
Traceback (most recent call last):
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 677, in _tag_root
f(rec)
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 330, in _tag_function
_eval_xml(self, rec, env)
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 201, in _eval_xml
return flectra.api.call_kw(model, method_name, args, kwargs)
File "C:\serveurs\flectra-master\flectra\api.py", line 399, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\serveurs\flectra-master\flectra\api.py", line 386, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "c:\serveurs\flectra-master\addons\account\models\chart_template.py", line 407, in try_loading
template.with_context(default_company_id=company.id)._load(15.0, 15.0, company)
File "c:\serveurs\flectra-master\addons\account\models\chart_template.py", line 472, in _load
acc_template_ref, taxes_ref = self._install_template(company, code_digits=self.code_digits)
File "c:\serveurs\flectra-master\addons\account\models\chart_template.py", line 743, in _install_template
tmp1, tmp2 = self.with_context(lang=company.partner_id.lang)._load_template(company, code_digits=code_digits, account_ref=acc_ref, taxes_ref=taxes_ref)
File "c:\serveurs\flectra-master\addons\account\models\chart_template.py", line 775, in _load_template
account_template_ref = self.generate_account(taxes_ref, account_ref, code_digits, company)
File "c:\serveurs\flectra-master\addons\account\models\chart_template.py", line 919, in generate_account
accounts = self._create_records_with_xmlid('account.account', template_vals, company)
File "c:\serveurs\flectra-master\addons\account\models\chart_template.py", line 851, in _create_records_with_xmlid
return self.env[model]._load_records(data_list)
File "C:\serveurs\flectra-master\flectra\models.py", line 4244, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "C:\serveurs\flectra-master\flectra\models.py", line 4160, in _load_records_create
return self.create(values)
File "", line 2, in create
File "C:\serveurs\flectra-master\flectra\api.py", line 348, in _model_create_multi
return create(self, arg)
File "C:\serveurs\flectra-master\flectra\addons\base\models\ir_fields.py", line 534, in create
recs = super().create(vals_list)
File "", line 2, in create
File "C:\serveurs\flectra-master\flectra\api.py", line 348, in _model_create_multi
return create(self, arg)
File "C:\serveurs\flectra-master\flectra\models.py", line 3889, in create
records = self._create(data_list)
File "C:\serveurs\flectra-master\flectra\models.py", line 4062, in _create
records._validate_fields(name for data in data_list for name in data['stored'])
File "C:\serveurs\flectra-master\flectra\models.py", line 1266, in _validate_fields
check(self)
File "c:\serveurs\flectra-master\addons\account\models\account_account.py", line 50, in _check_user_type_id_unique_current_year_earning
result = self.read_group([('user_type_id', '=', data_unaffected_earnings.id)], ['company_id'], ['company_id'])
File "C:\serveurs\flectra-master\flectra\models.py", line 2254, in read_group
result = self._read_group_raw(domain, fields, groupby, offset=offset, limit=limit, orderby=orderby, lazy=lazy)
File "C:\serveurs\flectra-master\flectra\models.py", line 2349, in _read_group_raw
self._flush_search(domain, fields=fnames + groupby_fields)
File "C:\serveurs\flectra-master\flectra\models.py", line 4503, in _flush_search
self.env[model_name].flush(field_names)
File "C:\serveurs\flectra-master\flectra\models.py", line 5478, in flush
self.recompute(fnames, records=records)
File "C:\serveurs\flectra-master\flectra\models.py", line 5944, in recompute
process(field)
File "C:\serveurs\flectra-master\flectra\models.py", line 5915, in process
field.recompute(recs)
File "C:\serveurs\flectra-master\flectra\fields.py", line 1176, in recompute
self.compute_value(recs)
File "C:\serveurs\flectra-master\flectra\fields.py", line 1198, in compute_value
records._compute_field_value(self)
File "C:\serveurs\flectra-master\flectra\models.py", line 4079, in _compute_field_value
flectra.fields.determine(field.compute, self)
File "C:\serveurs\flectra-master\flectra\fields.py", line 82, in determine
return needle(*args)
File "c:\serveurs\flectra-master\addons\account\models\account_account.py", line 286, in _compute_is_off_balance
account.is_off_balance = account.internal_group == "off_balance"
File "C:\serveurs\flectra-master\flectra\fields.py", line 990, in get
self.recompute(record)
File "C:\serveurs\flectra-master\flectra\fields.py", line 1176, in recompute
self.compute_value(recs)
File "C:\serveurs\flectra-master\flectra\fields.py", line 1198, in compute_value
records._compute_field_value(self)
File "C:\serveurs\flectra-master\flectra\models.py", line 4084, in _compute_field_value
self.filtered('id')._validate_fields(fnames)
File "C:\serveurs\flectra-master\flectra\models.py", line 1266, in _validate_fields
check(self)
File "c:\serveurs\flectra-master\addons\account\models\account_account.py", line 98, in constrains_reconcile
raise UserError(('An Off-Balance account can not be reconcilable'))
flectra.exceptions.UserError: An Off-Balance account can not be reconcilable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\serveurs\flectra-master\flectra\addons\base\models\ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "C:\serveurs\flectra-master\flectra\http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "C:\serveurs\flectra-master\flectra\http.py", line 370, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\serveurs\flectra-master\flectra\service\model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "C:\serveurs\flectra-master\flectra\http.py", line 358, in checked_call
result = self.endpoint(*a, **kw)
File "C:\serveurs\flectra-master\flectra\http.py", line 919, in call
return self.method(*args, **kw)
File "C:\serveurs\flectra-master\flectra\http.py", line 544, in response_wrap
response = f(*args, **kw)
File "c:\serveurs\flectra-master\addons\web\controllers\main.py", line 1374, in call_button
action = self._call_kw(model, method, args, kwargs)
File "c:\serveurs\flectra-master\addons\web\controllers\main.py", line 1362, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\serveurs\flectra-master\flectra\api.py", line 399, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\serveurs\flectra-master\flectra\api.py", line 386, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "C:\serveurs\flectra-master\flectra\addons\base\models\ir_module.py", line 72, in check_and_log
return method(self, *args, **kwargs)
File "C:\serveurs\flectra-master\flectra\addons\base\models\ir_module.py", line 443, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "C:\serveurs\flectra-master\flectra\addons\base\models\ir_module.py", line 561, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "C:\serveurs\flectra-master\flectra\modules\registry.py", line 89, in new
flectra.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\serveurs\flectra-master\flectra\modules\loading.py", line 459, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "C:\serveurs\flectra-master\flectra\modules\loading.py", line 347, in load_marked_modules
loaded, processed = load_module_graph(
File "C:\serveurs\flectra-master\flectra\modules\loading.py", line 222, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "C:\serveurs\flectra-master\flectra\modules\loading.py", line 69, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 733, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 799, in convert_xml_import
obj.parse(doc.getroot())
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 719, in parse
self._tag_root(de)
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 677, in _tag_root
f(rec)
File "C:\serveurs\flectra-master\flectra\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:\serveurs\flectra-master\flectra\http.py", line 652, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\serveurs\flectra-master\flectra\http.py", line 317, in _handle_exception
raise exception.with_traceback(None) from new_cause
flectra.tools.convert.ParseError: while parsing file:/c:/serveurs/flectra-master/addons/l10n_syscohada/data/account_chart_template_data.xml:4, near
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Everyone
When i try to install the Ohada specific accounting module i got the below error !
Do you have any idea of the cause of this error? Thanks
Erreur:
Flectra Server Error
Traceback (most recent call last):
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 677, in _tag_root
f(rec)
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 330, in _tag_function
_eval_xml(self, rec, env)
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 201, in _eval_xml
return flectra.api.call_kw(model, method_name, args, kwargs)
File "C:\serveurs\flectra-master\flectra\api.py", line 399, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\serveurs\flectra-master\flectra\api.py", line 386, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "c:\serveurs\flectra-master\addons\account\models\chart_template.py", line 407, in try_loading
template.with_context(default_company_id=company.id)._load(15.0, 15.0, company)
File "c:\serveurs\flectra-master\addons\account\models\chart_template.py", line 472, in _load
acc_template_ref, taxes_ref = self._install_template(company, code_digits=self.code_digits)
File "c:\serveurs\flectra-master\addons\account\models\chart_template.py", line 743, in _install_template
tmp1, tmp2 = self.with_context(lang=company.partner_id.lang)._load_template(company, code_digits=code_digits, account_ref=acc_ref, taxes_ref=taxes_ref)
File "c:\serveurs\flectra-master\addons\account\models\chart_template.py", line 775, in _load_template
account_template_ref = self.generate_account(taxes_ref, account_ref, code_digits, company)
File "c:\serveurs\flectra-master\addons\account\models\chart_template.py", line 919, in generate_account
accounts = self._create_records_with_xmlid('account.account', template_vals, company)
File "c:\serveurs\flectra-master\addons\account\models\chart_template.py", line 851, in _create_records_with_xmlid
return self.env[model]._load_records(data_list)
File "C:\serveurs\flectra-master\flectra\models.py", line 4244, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "C:\serveurs\flectra-master\flectra\models.py", line 4160, in _load_records_create
return self.create(values)
File "", line 2, in create
File "C:\serveurs\flectra-master\flectra\api.py", line 348, in _model_create_multi
return create(self, arg)
File "C:\serveurs\flectra-master\flectra\addons\base\models\ir_fields.py", line 534, in create
recs = super().create(vals_list)
File "", line 2, in create
File "C:\serveurs\flectra-master\flectra\api.py", line 348, in _model_create_multi
return create(self, arg)
File "C:\serveurs\flectra-master\flectra\models.py", line 3889, in create
records = self._create(data_list)
File "C:\serveurs\flectra-master\flectra\models.py", line 4062, in _create
records._validate_fields(name for data in data_list for name in data['stored'])
File "C:\serveurs\flectra-master\flectra\models.py", line 1266, in _validate_fields
check(self)
File "c:\serveurs\flectra-master\addons\account\models\account_account.py", line 50, in _check_user_type_id_unique_current_year_earning
result = self.read_group([('user_type_id', '=', data_unaffected_earnings.id)], ['company_id'], ['company_id'])
File "C:\serveurs\flectra-master\flectra\models.py", line 2254, in read_group
result = self._read_group_raw(domain, fields, groupby, offset=offset, limit=limit, orderby=orderby, lazy=lazy)
File "C:\serveurs\flectra-master\flectra\models.py", line 2349, in _read_group_raw
self._flush_search(domain, fields=fnames + groupby_fields)
File "C:\serveurs\flectra-master\flectra\models.py", line 4503, in _flush_search
self.env[model_name].flush(field_names)
File "C:\serveurs\flectra-master\flectra\models.py", line 5478, in flush
self.recompute(fnames, records=records)
File "C:\serveurs\flectra-master\flectra\models.py", line 5944, in recompute
process(field)
File "C:\serveurs\flectra-master\flectra\models.py", line 5915, in process
field.recompute(recs)
File "C:\serveurs\flectra-master\flectra\fields.py", line 1176, in recompute
self.compute_value(recs)
File "C:\serveurs\flectra-master\flectra\fields.py", line 1198, in compute_value
records._compute_field_value(self)
File "C:\serveurs\flectra-master\flectra\models.py", line 4079, in _compute_field_value
flectra.fields.determine(field.compute, self)
File "C:\serveurs\flectra-master\flectra\fields.py", line 82, in determine
return needle(*args)
File "c:\serveurs\flectra-master\addons\account\models\account_account.py", line 286, in _compute_is_off_balance
account.is_off_balance = account.internal_group == "off_balance"
File "C:\serveurs\flectra-master\flectra\fields.py", line 990, in get
self.recompute(record)
File "C:\serveurs\flectra-master\flectra\fields.py", line 1176, in recompute
self.compute_value(recs)
File "C:\serveurs\flectra-master\flectra\fields.py", line 1198, in compute_value
records._compute_field_value(self)
File "C:\serveurs\flectra-master\flectra\models.py", line 4084, in _compute_field_value
self.filtered('id')._validate_fields(fnames)
File "C:\serveurs\flectra-master\flectra\models.py", line 1266, in _validate_fields
check(self)
File "c:\serveurs\flectra-master\addons\account\models\account_account.py", line 98, in constrains_reconcile
raise UserError(('An Off-Balance account can not be reconcilable'))
flectra.exceptions.UserError: An Off-Balance account can not be reconcilable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\serveurs\flectra-master\flectra\addons\base\models\ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "C:\serveurs\flectra-master\flectra\http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "C:\serveurs\flectra-master\flectra\http.py", line 370, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\serveurs\flectra-master\flectra\service\model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "C:\serveurs\flectra-master\flectra\http.py", line 358, in checked_call
result = self.endpoint(*a, **kw)
File "C:\serveurs\flectra-master\flectra\http.py", line 919, in call
return self.method(*args, **kw)
File "C:\serveurs\flectra-master\flectra\http.py", line 544, in response_wrap
response = f(*args, **kw)
File "c:\serveurs\flectra-master\addons\web\controllers\main.py", line 1374, in call_button
action = self._call_kw(model, method, args, kwargs)
File "c:\serveurs\flectra-master\addons\web\controllers\main.py", line 1362, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\serveurs\flectra-master\flectra\api.py", line 399, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\serveurs\flectra-master\flectra\api.py", line 386, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "C:\serveurs\flectra-master\flectra\addons\base\models\ir_module.py", line 72, in check_and_log
return method(self, *args, **kwargs)
File "C:\serveurs\flectra-master\flectra\addons\base\models\ir_module.py", line 443, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "C:\serveurs\flectra-master\flectra\addons\base\models\ir_module.py", line 561, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "C:\serveurs\flectra-master\flectra\modules\registry.py", line 89, in new
flectra.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\serveurs\flectra-master\flectra\modules\loading.py", line 459, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "C:\serveurs\flectra-master\flectra\modules\loading.py", line 347, in load_marked_modules
loaded, processed = load_module_graph(
File "C:\serveurs\flectra-master\flectra\modules\loading.py", line 222, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "C:\serveurs\flectra-master\flectra\modules\loading.py", line 69, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 733, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 799, in convert_xml_import
obj.parse(doc.getroot())
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 719, in parse
self._tag_root(de)
File "C:\serveurs\flectra-master\flectra\tools\convert.py", line 677, in _tag_root
f(rec)
File "C:\serveurs\flectra-master\flectra\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:\serveurs\flectra-master\flectra\http.py", line 652, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\serveurs\flectra-master\flectra\http.py", line 317, in _handle_exception
raise exception.with_traceback(None) from new_cause
flectra.tools.convert.ParseError: while parsing file:/c:/serveurs/flectra-master/addons/l10n_syscohada/data/account_chart_template_data.xml:4, near
Beta Was this translation helpful? Give feedback.
All reactions