Help

ようこそ!

このフォーラムはOdooに興味がある方はどなたでも参加いただけます。Odooに関する質問を投稿したり、質問に回答したりすることができます。

0

日本 - 会計でモジュールインストールエラーになる

Avatar
江口和志
日本 - 会計(l10n_jp)をインストールすると以下のようなエラーになりますが、
どなたか対応策をご存知でしょうか?
環境:Win10のDocker
   Odoo12
 

恐れ入りますがよろしくお願いいたします。

   
Odoo Server Error
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 758, in parse
    self._tags[rec.tag](rec, de, mode=mode)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 343, in _tag_function
    _eval_xml(self, rec, env)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 194, in _eval_xml
    return odoo.api.call_kw(model, method, args, {})
  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 "<decorator-gen-255>", line 2, in try_loading_for_current_company
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 382, in loop
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 382, in <listcomp>
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/chart_template.py", line 178, in try_loading_for_current_company
    self.load_for_current_company(15.0, 15.0)
  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/chart_template.py", line 249, in load_for_current_company
    acc_template_ref, taxes_ref = self._install_template(company, code_digits=self.code_digits)
  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/chart_template.py", line 520, 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 "/usr/lib/python3/dist-packages/odoo/addons/account/models/chart_template.py", line 568, in _load_template
    self.generate_journals(account_ref, company)
  File "/usr/lib/python3/dist-packages/odoo/addons/stock_account/models/account_chart_template.py", line 16, in generate_journals
    return super(AccountChartTemplate, self).generate_journals(acc_template_ref=acc_template_ref, company=company, journals_dict=journal_to_add)
  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/chart_template.py", line 398, in generate_journals
    journal = JournalObj.create(vals_journal)
  File "<decorator-gen-225>", line 2, in create
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 440, in _model_create_single
    return create(self, arg)
  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/account.py", line 791, in create
    journal._update_mail_alias(vals)
  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/account.py", line 624, in _update_mail_alias
    alias_parent_model_name='account.journal').create(alias_values)
  File "<decorator-gen-106>", line 2, in create
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 440, in _model_create_single
    return create(self, arg)
  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_alias.py", line 123, in create
    return super(Alias, self).create(vals)
  File "<decorator-gen-3>", line 2, in create
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 461, in _model_create_multi
    return create(self, [arg])
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 3588, in create
    records = self._create(data_list)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 3720, in _create
    records._validate_fields(name for data in data_list for name in data['stored'])
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 1128, in _validate_fields
    check(self)
  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_alias.py", line 89, in _alias_is_ascii
    raise ValidationError(_("You cannot use anything else than unaccented latin characters in the alias address."))
odoo.exceptions.ValidationError: ('You cannot use anything else than unaccented latin characters in the alias address.', None)

During handling of the above exception, another exception occurred:

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 98, 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 "<decorator-gen-61>", line 2, in button_immediate_install
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
    return method(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 445, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 561, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 421, in load_modules
    loaded_modules, update_module, models_to_check)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 313, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 222, in load_module_graph
    load_data(cr, idref, mode, kind='data', package=package, report=report)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 68, in load_data
    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 802, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 865, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 755, in parse
    self.parse(rec, mode)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 764, in parse
    exc_info[2]
  File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 86, in reraise
    raise value.with_traceback(tb)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 758, in parse
    self._tags[rec.tag](rec, de, mode=mode)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 343, in _tag_function
    _eval_xml(self, rec, env)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 194, in _eval_xml
    return odoo.api.call_kw(model, method, args, {})
  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 "<decorator-gen-255>", line 2, in try_loading_for_current_company
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 382, in loop
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 382, in <listcomp>
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/chart_template.py", line 178, in try_loading_for_current_company
    self.load_for_current_company(15.0, 15.0)
  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/chart_template.py", line 249, in load_for_current_company
    acc_template_ref, taxes_ref = self._install_template(company, code_digits=self.code_digits)
  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/chart_template.py", line 520, 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 "/usr/lib/python3/dist-packages/odoo/addons/account/models/chart_template.py", line 568, in _load_template
    self.generate_journals(account_ref, company)
  File "/usr/lib/python3/dist-packages/odoo/addons/stock_account/models/account_chart_template.py", line 16, in generate_journals
    return super(AccountChartTemplate, self).generate_journals(acc_template_ref=acc_template_ref, company=company, journals_dict=journal_to_add)
  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/chart_template.py", line 398, in generate_journals
    journal = JournalObj.create(vals_journal)
  File "<decorator-gen-225>", line 2, in create
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 440, in _model_create_single
    return create(self, arg)
  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/account.py", line 791, in create
    journal._update_mail_alias(vals)
  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/account.py", line 624, in _update_mail_alias
    alias_parent_model_name='account.journal').create(alias_values)
  File "<decorator-gen-106>", line 2, in create
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 440, in _model_create_single
    return create(self, arg)
  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_alias.py", line 123, in create
    return super(Alias, self).create(vals)
  File "<decorator-gen-3>", line 2, in create
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 461, in _model_create_multi
    return create(self, [arg])
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 3588, in create
    records = self._create(data_list)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 3720, in _create
    records._validate_fields(name for data in data_list for name in data['stored'])
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 1128, in _validate_fields
    check(self)
  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_alias.py", line 89, in _alias_is_ascii
    raise ValidationError(_("You cannot use anything else than unaccented latin characters in the alias address."))
odoo.tools.convert.ParseError: "You cannot use anything else than unaccented latin characters in the alias address.
None" while parsing /usr/lib/python3/dist-packages/odoo/addons/l10n_jp/data/account_chart_template_configure_data.xml:4, near
<function model="account.chart.template" name="try_loading_for_current_company">
            <value eval="[ref('l10n_jp.l10n_jp1')]"/>
        </function>
1 Comment
Avatar
Discard
Avatar
Yoshi Tashiro (QRTL)
-

比較的最近追加された制約チェックによるエラーのようですね。

https://github.com/odoo/odoo/blame/53ecc10cabe823cdd82feb64edb2bdc681ea6956/addons/mail/models/mail_alias.py#L80-L90

日本会計モジュールとは直接関係なさそうに見えます。メールのエイリアスに使用される文字のエラーですが、お心あたりありますか?