test_base_import_pdf_by_template

in edi · source on GitHub

Tecnativa · AGPL-3

16.0×Not in this series
17.0✗Install error
18.0✗Install error
19.0×Not in this series
20.0×Not in this series
SeriesStatusDetailsCode
16.0—Not testedno branch
17.0✗Install errorError in the XML or in a view: test_base_import_pdf_by_template.generic_product · run 2026-08-26
post_init_hook looks up external id generic_product, which this module declares only in its demo: files (demo/base_import_pdf_template.xml). We install without demo data, as production does, so the record does not exist and the hook raises. Raw log below.
on GitHub
18.0✗Install errorError in the XML or in a view: test_base_import_pdf_by_template.generic_product · run 2026-08-26
post_init_hook looks up external id generic_product, which this module declares only in its demo: files (demo/base_import_pdf_template.xml). We install without demo data, as production does, so the record does not exist and the hook raises. Raw log below.
on GitHub
19.0—Not testedno branch
20.0—Not testedno branch

The module’s code on 18.0

Lines of codepython 100 · xml 122
Testsyes: 1 file(s), 71 lines
Migration scriptsno
Models0 new · 0 extensions

Lines are physical, blanks and comments included, as wc -l. Tests are test_*.py files under tests/. Models are lines holding _name = and _inherit =. These are facts about the code, not a judgement: more lines is neither better nor worse. Measured 2026-08-28 on tree 1deac744cc4e.

The apps.odoo.com catalogue has a listing under the same technical name on 17.0, 18.0: apps.odoo.com/apps/modules/18.0/test_base_import_pdf_by_template. A matching name does not prove matching code — how we counted this.

Depends on

ModuleStatusChecked
base_import_pdf_by_template✓Installs2026-09-04
purchasecoreships with Odoo

History

Last change2026-08-07
Code commits, 12 months8
Most activeVíctor Martínez, David Bañón
Files15

Translation and bot commits are excluded from the commit count.

Install log 18.0

  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/odoo/tests/common.py", line 100, in <module>
    _logger.error(
2026-08-26 19:24:31,014 1 WARNING job_194f1823bd37 odoo.modules.loading: Transient module states were reset 
2026-08-26 19:24:31,015 1 ERROR job_194f1823bd37 odoo.modules.registry: Failed to load registry 
2026-08-26 19:24:31,015 1 CRITICAL job_194f1823bd37 odoo.service.server: Failed to initialize database `job_194f1823bd37`. 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 103, in lookup
    r = d[key]
        ~^^^^^
  File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 97, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/tools/lru.py", line 33, in __getitem__
    a = self.d[obj]
        ~~~~~~^^^^^
KeyError: ('ir.model.data', <function IrModelData._xmlid_lookup at 0x7f0f0bea8c20>, 'test_base_import_pdf_by_template.generic_product')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1414, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 97, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 118, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 489, in load_modules
    processed_modules += load_marked_modules(env, graph,
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 365, in load_marked_modules
    loaded, processed = load_module_graph(
                        ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 246, in load_module_graph
    getattr(py_module, post_init)(env)
  File "/mnt/pool/test_base_import_pdf_by_template/hooks.py", line 7, in post_init_hook
    generic_product = env.ref("test_base_import_pdf_by_template.generic_product")
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 660, in ref
    res_model, res_id = self['ir.model.data']._xmlid_to_res_model_res_id(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 2305, in _xmlid_to_res_model_res_id
    return self._xmlid_lookup(xmlid)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 110, in lookup
    value = d[key] = self.method(*args, **kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 2298, in _xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: test_base_import_pdf_by_template.generic_product

Install log 17.0

  File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 104, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 2214, in _xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: test_base_import_pdf_by_template.generic_product
2026-08-26 19:56:24,361 1 CRITICAL job_26d8a60e1f95 odoo.service.server: Failed to initialize database `job_26d8a60e1f95`. 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 99, in lookup
    r = d[key]
  File "<decorator-gen-5>", line 2, in __getitem__
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/tools/lru.py", line 34, in __getitem__
    a = self.d[obj]
KeyError: ('ir.model.data', <function IrModelData._xmlid_lookup at 0x7cc9db88c5e0>, 'test_base_import_pdf_by_template.generic_product')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1422, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "<decorator-gen-16>", line 2, in new
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 99, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 485, in load_modules
    processed_modules += load_marked_modules(env, graph,
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 366, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 247, in load_module_graph
    getattr(py_module, post_init)(env)
  File "/mnt/pool/test_base_import_pdf_by_template/hooks.py", line 7, in post_init_hook
    generic_product = env.ref("test_base_import_pdf_by_template.generic_product")
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 596, in ref
    res_model, res_id = self['ir.model.data']._xmlid_to_res_model_res_id(
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 2221, in _xmlid_to_res_model_res_id
    return self._xmlid_lookup(xmlid)
  File "<decorator-gen-43>", line 2, in _xmlid_lookup
  File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 104, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 2214, in _xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: test_base_import_pdf_by_template.generic_product

Result looks wrong? Tell us — we will show the log or run it again. Report a wrong result

Get told when this module changes state

Data updated 2026-10-07 13:00 UTC · build 4aa2dbe · we publish the install log with a date, not a vendor rating · CSV and JSON are open

Questions or a wrong result: open an issue or hello@allservices.one

Privacy · Terms

Independent project. Not affiliated with Odoo S.A. or the Odoo Community Association.