[MIG] repair_order_template: Migration to 19.0#171
Open
oerp-odoo wants to merge 12 commits into
Open
Conversation
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/
Adapt to use UoM reference instead of UoM category, which no longer exists on Odoo 19.
ee43279 to
dea27ae
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.