Skip to content

[18.0] sale_order_customer_free_ref , not installing, "customer_order_number" does not exist in model "sale.order.line" #1322

Open

Description

@rafmartom

Modules

sale_order_customer_free_ref and sale_order_import_ubl_customer_free_ref

Describe the bug

Not able to install sale_order_customer_free_ref on Odoo Server 18.0-20260324
Seems to be crashing with the other module sale_order_line_date

To Reproduce

Affected versions: Odoo Server 18.0-20260324

Steps to reproduce the behavior:

  1. Downloaded the v18.0 release by git clone "https://github.com/OCA/edi" --branch 18.0 --depth 1
  2. Installed via the CLI (all dependencies are installed sale
  3. I have got installed sale_order_line_date which appears to be a dependency although is not on __manifest__.py

Expected behavior
Install with no error

Additional context

Using official docker image

Odoo Server 18.0-20260324

Log error

2026-04-09 11:55:25,160 41 INFO my_db odoo.addons.base.models.ir_module: ALLOW access to module.button_install on ['Sale Order Customer Free Reference'] to user __system__ #1 via n/a
2026-04-09 11:55:25,764 41 INFO my_db odoo.modules.loading: loading 1 modules...
2026-04-09 11:55:25,783 41 INFO my_db odoo.modules.loading: 1 modules loaded in 0.02s, 0 queries (+0 extra)
2026-04-09 11:55:25,822 41 INFO my_db odoo.modules.loading: updating modules list
2026-04-09 11:55:25,827 41 INFO my_db odoo.addons.base.models.ir_module: ALLOW access to module.update_list on [] to user __system__ #1 via n/a
2026-04-09 11:55:39,115 41 INFO my_db odoo.modules.loading: loading 790 modules...
2026-04-09 11:55:39,714 41 INFO my_db odoo.modules.loading: 790 modules loaded in 0.60s, 0 queries (+0 extra)
2026-04-09 11:55:39,735 41 INFO my_db odoo.modules.loading: loading 791 modules...
2026-04-09 11:55:39,740 41 INFO my_db odoo.modules.loading: Loading module sale_order_customer_free_ref (611/791)
2026-04-09 11:55:40,892 41 INFO my_db odoo.modules.registry: module sale_order_customer_free_ref: creating or updating database tables
2026-04-09 11:55:41,115 41 WARNING my_db odoo.addons.base.models.ir_model: Two fields (manual_currency, manual_currency_id) of account.bank.statement.line() have the same label: Manual Currency. [Modules: None and account_reconcile_oca]
2026-04-09 11:55:42,085 41 INFO my_db odoo.modules.loading: loading sale_order_customer_free_ref/views/sale_order.xml
2026-04-09 11:55:42,355 41 WARNING my_db odoo.modules.loading: Transient module states were reset
2026-04-09 11:55:42,357 41 ERROR my_db odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
  File "/usr/bin/odoo", line 8, in <module>
    odoo.cli.main()
  File "/usr/lib/python3/dist-packages/odoo/cli/command.py", line 76, in main
    o.run(args)
  File "/usr/lib/python3/dist-packages/odoo/cli/shell.py", line 130, in run
    self.shell(config['db_name'])
  File "/usr/lib/python3/dist-packages/odoo/cli/shell.py", line 123, in shell
    self.console(local_vars)
  File "/usr/lib/python3/dist-packages/odoo/cli/shell.py", line 68, in console
    exec(sys.stdin.read(), local_vars)
  File "<string>", line 2, in <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/addons/base/models/ir_module.py", line 77, in check_and_log
    return method(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 500, in button_immediate_install
    return self._button_immediate_function(self.env.registry[self._name].button_install)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 624, in _button_immediate_function
    registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  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 129, 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 228, in load_module_graph
    load_data(env, idref, mode, kind='data', package=package)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 72, in load_data
    tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 662, in convert_file
    convert_xml_import(env, module, fp, idref, mode, noupdate)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 733, in convert_xml_import
    obj.parse(doc.getroot())
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 648, in parse
    self._tag_root(de)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 601, in _tag_root
    raise ParseError(msg) from None  # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
odoo.tools.convert.ParseError: while parsing /mnt/extra-addons/sale_order_customer_free_ref/views/sale_order.xml:3
Error while validating view near:

<form string="Sales Order" class="o_sale_order">
            <header>
                <field name="locked" invisible="1"/>
                <field name="authorized_transaction_ids" invisible="1"/>

Field "customer_order_number" does not exist in model "sale.order.line"

View error context:
{'file': '/mnt/extra-addons/sale_order_customer_free_ref/views/sale_order.xml',
 'line': 2,
 'name': 'sale.order.customer.free.ref.form',
 'view': ir.ui.view(4169,),
 'view.model': 'sale.order',
 'view.parent': ir.ui.view(1634,),
 'xmlid': 'view_order_form'}

Activity

  1. github-actions commented on Oct 11, 2026

    @github-actions

    There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
    If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

  2. added
    stalePR/Issue without recent activity, it'll be soon closed automatically.
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstalePR/Issue without recent activity, it'll be soon closed automatically.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions