Skip to content

[MIG] repair_order_template: Migration to 19.0#171

Open
oerp-odoo wants to merge 12 commits into
OCA:19.0from
versada:19.0-mig-repair_order_template
Open

[MIG] repair_order_template: Migration to 19.0#171
oerp-odoo wants to merge 12 commits into
OCA:19.0from
versada:19.0-mig-repair_order_template

Conversation

@oerp-odoo

Copy link
Copy Markdown

No description provided.

ivantodorovich and others added 11 commits June 4, 2026 09:27
Create and use templates to save time when creating repair orders.
With them, you can pre-fill the repair order fields and spare parts.
[BOT] post-merge updates
Translated using Weblate (Italian)

Currently translated at 100.0% (37 of 37 strings)

Translation: repair-17.0/repair-17.0-repair_order_template
Translate-URL: https://translation.odoo-community.org/projects/repair-17-0/repair-17-0-repair_order_template/it/
…main

There were 2 errors with this domain, resulting from the Migration to 18.0:

1. The "product" type was removed in Odoo, becoming simply a "consu" with
   `is_storable` set to True. Thus, this leaf can be simplified.

2. The domain attribute was changed from a string to a list, causing the dynamic
   evaluation of `company_id` to fail. Moreover, this leaf is no longer needed
   in 18.0 since `check_company=True` will automatically add better ones.

Traceback mentioned above:

```
  File "/odoo/src/odoo/addons/product/models/product_product.py", line 576, in name_search
    return super().name_search(name, args, operator, limit)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/odoo/src/odoo/odoo/models.py", line 1892, in name_search
    records = self.search_fetch(domain, ['display_name'], limit=limit)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/odoo/src/odoo/odoo/models.py", line 1781, in search_fetch
    return self._fetch_query(query, fields_to_fetch)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/odoo/src/odoo/odoo/models.py", line 4240, in _fetch_query
    rows = self.env.execute_query(query.select(*sql_terms))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/odoo/src/odoo/odoo/api.py", line 993, in execute_query
    self.cr.execute(query)
  File "/odoo/src/odoo/odoo/sql_db.py", line 357, in execute
    res = self._obj.execute(query, params)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
psycopg2.errors.InvalidTextRepresentation: invalid input syntax for type integer: "repair.order.template.company_id"
LINE 1: ...roduct_product__product_tmpl_id"."company_id" IN ('repair.or...
```
Currently translated at 97.2% (36 of 37 strings)

Translation: repair-18.0/repair-18.0-repair_order_template
Translate-URL: https://translation.odoo-community.org/projects/repair-18-0/repair-18-0-repair_order_template/tr/
@OCA-git-bot OCA-git-bot added series:19.0 mod:repair_order_template Module repair_order_template labels Jun 4, 2026
Adapt to use UoM reference instead of UoM category, which no longer
exists on Odoo 19.
@oerp-odoo oerp-odoo force-pushed the 19.0-mig-repair_order_template branch from ee43279 to dea27ae Compare June 4, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:repair_order_template Module repair_order_template series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants