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

[MIG] product_brand: Migration to 18.0 #209

Closed
wants to merge 82 commits into from

Conversation

samirGuesmi
Copy link
Member

Draft PR : Migration to 18.0

Copy link
Contributor

@marielejeune marielejeune left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In product_brand_view.xml lines 16, 22 and 200, tree must be replaced by list.

Copy link
Contributor

@marielejeune marielejeune left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got an error while trying to open the res.partner form view, coming from reports/account_invoice_report.py", line 15, in _select

select_str += """
TypeError: unsupported operand type(s) for +=: 'SQL' and 'str'

@samirGuesmi samirGuesmi force-pushed the 18.0-mig-product_brand branch from 30a665d to 034ec80 Compare September 20, 2024 07:53
select_str += """
, template.product_brand_id as product_brand_id
"""
return select_str
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you do the same correction in the following _group_by method?

@samirGuesmi samirGuesmi force-pushed the 18.0-mig-product_brand branch from 034ec80 to 0ee8e61 Compare September 25, 2024 12:31
@@ -65,15 +65,15 @@
</form>
</field>
</record>
<record id="view_product_brand_tree" model="ir.ui.view">
<field name="name">product.brand.tree</field>
<record id="view_product_brand_list" model="ir.ui.view">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is usually a bad idea to rename views XMLids and names, it may cause a lot of side effects.
As far as I know, Odoo has kept all "tree" refs in their view namings.
I think we should do the same.

@samirGuesmi samirGuesmi force-pushed the 18.0-mig-product_brand branch from 0ee8e61 to 56cd277 Compare September 25, 2024 15:25
OCA-git-bot and others added 22 commits October 8, 2024 12:46
* add smart button, move menu to a more visible position.
* show brand in product.template kanban and tree views.
* show brand in product variant kanban and tree views.
* add product_brand kanban view.
* update module's README and manifest file.
* Search and group by brand for both product.product and product.template.
* Convert model to new APIs.
* Refactor products_count computation using product_ids one2many field.
* Add public read access to product.brand (fixes 403 error on webshop for public user).
* Make brand name required.
Old form view was out of order: form blocks misaligned, because it was
not using Odoo 10 views styling and layout.
Lookup fails when the ID is formatted. The unformatted version of the
data is located under `raw_value`.
Currently translated at 100,0% (21 of 21 strings)

Translation: product-attribute-11.0/product-attribute-11.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-11-0/product-attribute-11-0-product_brand/de/
… with other odoo apps. (#364)

* Make the logo always the same width (64px).
* Remove the description (200 first caracters). Not relevant for a configuration model.
* Move the brand name and product count beside the image. This is the way it is displayed in partners and products kanban views.
eantones and others added 28 commits October 10, 2024 15:29
Currently translated at 78.2% (18 of 23 strings)

Translation: brand-16.0/brand-16.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-16-0/brand-16-0-product_brand/it/
Currently translated at 30.4% (7 of 23 strings)

Translation: brand-16.0/brand-16.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-16-0/brand-16-0-product_brand/sl/
Currently translated at 78.2% (18 of 23 strings)

Translation: brand-16.0/brand-16.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-16-0/brand-16-0-product_brand/it/
Currently translated at 78.2% (18 of 23 strings)

Translation: brand-16.0/brand-16.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-16-0/brand-16-0-product_brand/it/
Currently translated at 100.0% (23 of 23 strings)

Translation: brand-16.0/brand-16.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-16-0/brand-16-0-product_brand/es_AR/
Currently translated at 100.0% (23 of 23 strings)

Translation: brand-16.0/brand-16.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-16-0/brand-16-0-product_brand/es/
Currently translated at 100.0% (23 of 23 strings)

Translation: brand-16.0/brand-16.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-16-0/brand-16-0-product_brand/pt/
- Include context keys for avoiding mail operations overhead.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: brand-17.0/brand-17.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-17-0/brand-17-0-product_brand/
Currently translated at 100.0% (22 of 22 strings)

Translation: brand-17.0/brand-17.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-17-0/brand-17-0-product_brand/it/
Currently translated at 100.0% (22 of 22 strings)

Translation: brand-17.0/brand-17.0-product_brand
Translate-URL: https://translation.odoo-community.org/projects/brand-17-0/brand-17-0-product_brand/pt_BR/
* Rule product.brand.public has no group, this is a deprecated feature.
odoo/odoo#125216

* Every access-granting rule should specify a group.
odoo/odoo@ce1a4a2
@samirGuesmi samirGuesmi force-pushed the 18.0-mig-product_brand branch from 56cd277 to 9faeea7 Compare October 10, 2024 13:42
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.