Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0] [MIG] product_supplierinfo_for_customer #1744

Open
wants to merge 99 commits into
base: 18.0
Choose a base branch
from

Conversation

marielejeune
Copy link
Contributor

No description provided.

oihane and others added 30 commits October 10, 2024 09:44
Currently translated at 100.0% (17 of 17 strings)

Translation: product-attribute-11.0/product-attribute-11.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-11-0/product-attribute-11-0-product_supplierinfo_for_customer/es/
…tion

That action window is for showing directly product.supplierinfo, so no
product template source and no `id` field. The rest of modifications on the act_window
are also nonsense.
…ext key is needed in act_window

Or the product template won't be shown there.
Ivorra78 and others added 28 commits October 10, 2024 09:44
Currently translated at 100.0% (54 of 54 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_supplierinfo_for_customer/es/
Currently translated at 98.1% (53 of 54 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_supplierinfo_for_customer/fr/
Currently translated at 100.0% (54 of 54 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_supplierinfo_for_customer/pt_BR/
Currently translated at 100.0% (54 of 54 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_supplierinfo_for_customer/it/
Currently translated at 100.0% (54 of 54 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_supplierinfo_for_customer/it/
Currently translated at 100.0% (54 of 54 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_supplierinfo_for_customer/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: product-attribute-16.0/product-attribute-16.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_supplierinfo_for_customer/
Currently translated at 100.0% (56 of 56 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_supplierinfo_for_customer/es/
Currently translated at 100.0% (56 of 56 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_supplierinfo_for_customer/it/
The search method was inherited because it was called in the
_name_search that is inherited in the product.product model in this same
module, now in v17 the method that is being called by _name_search is
search_fetch so this must be fixed in order to correctly display the
name of a product.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: product-attribute-17.0/product-attribute-17.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_supplierinfo_for_customer/
Currently translated at 100.0% (55 of 55 strings)

Translation: product-attribute-17.0/product-attribute-17.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_supplierinfo_for_customer/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: product-attribute-17.0/product-attribute-17.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_supplierinfo_for_customer/
Currently translated at 94.6% (53 of 56 strings)

Translation: product-attribute-17.0/product-attribute-17.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_supplierinfo_for_customer/it/
Currently translated at 100.0% (56 of 56 strings)

Translation: product-attribute-17.0/product-attribute-17.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_supplierinfo_for_customer/it/
…del search

When searching for products in a comodel, the results are obtained via
the `_name_search` method over `product.product`. Currently, this search
is not retrieving all matching results.

This issue occurs because the parameters for the `_name_search` method
changed in Odoo v17, and during the migration, this was not adapted. As
a result, when the method is called, it only retrieves 100 results due
to the default limit not being handled correctly.

This commit updates the overridden `_name_search` method to match the
new method signature in Odoo v17 and properly handle the `limit`
parameter. This ensures that all matching products are returned during
@pedrobaeza
Copy link
Member

I think we can rename this one to product_customerinfo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.