-
-
Notifications
You must be signed in to change notification settings - Fork 715
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
base: 18.0
Are you sure you want to change the base?
[18.0] [MIG] product_supplierinfo_for_customer #1744
Conversation
…tomer: Complete README.
… in product template
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.
…ling The same way Odoo does.
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
I think we can rename this one to |
/ocabot migration product_supplierinfo_for_customer |
Indeed. @marielejeune |
@classmethod | ||
def setUpClass(cls): | ||
super().setUpClass() | ||
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marielejeune Couild you inherit from BaseCommon to avoid this? See: https://github.com/odoo/odoo/blob/18.0/odoo/addons/base/tests/common.py#L21
|
||
@api.model | ||
def search_fetch(self, domain, field_names, offset=0, limit=None, order=None): | ||
res = super().search_fetch(domain, field_names, offset, limit, order) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be great to explain why this override.
No description provided.