Skip to content

[17.0][MIG] product_packaging_type: Migrate module to v17.0#2

Open
ibraimFer wants to merge 139 commits intoJarsa:17.0from
Jarsa-dev:17.0-add-product_packagin_type
Open

[17.0][MIG] product_packaging_type: Migrate module to v17.0#2
ibraimFer wants to merge 139 commits intoJarsa:17.0from
Jarsa-dev:17.0-add-product_packagin_type

Conversation

@ibraimFer
Copy link

No description provided.

glitchov and others added 30 commits April 16, 2024 11:25
Currently translated at 100.0% (7 of 7 strings)

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

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

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

Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_fixed_currency_rate
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_fixed_currency_rate/es/
* New Field Added to store the URL of the product on the manufacturer page.
* Added field manufacturer product URL to the product view.
* README updated.
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
Add # -*- encoding: utf-8 -*-
OCA-git-bot and others added 28 commits December 1, 2024 13:39
The SQL constraint I added previously [0] prevent some demo data to
be installed (e.g. in module OCA/wms::stock_storage_type).

The issue is that the packaging type is required, is part of the unique
constraint, and has a default packaging type.
When the module is installed and we have existing data or demo data,
the default type will be set on all the packagings, meaning we have
to ignore the unique constraint on the default type.
This was already handled using an "EXCLUDE" constraint, but it does
not solve the issue with demo data, the related field
"packaging_type_is_default", used as exclusion for the unique
constraint, is first inserted with a NULL value before being set
to True.

[0] OCA#654
Currently translated at 100.0% (25 of 25 strings)

Translation: product-attribute-13.0/product-attribute-13.0-product_packaging_type
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-13-0/product-attribute-13-0-product_packaging_type/es/
Currently translated at 92.0% (23 of 25 strings)

Translation: product-attribute-14.0/product-attribute-14.0-product_packaging_type
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_packaging_type/nl/
* make computing func reusable
* drop hardcode html formatting

The html formatting is not required and can be changed on demand now.
Makes qty per type data reusable from outside.
Currently translated at 96.0% (24 of 25 strings)

Translation: product-attribute-15.0/product-attribute-15.0-product_packaging_type
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_packaging_type/ca/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: product-attribute-15.0/product-attribute-15.0-product_packaging_type
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_packaging_type/
Currently translated at 100.0% (25 of 25 strings)

Translation: product-attribute-15.0/product-attribute-15.0-product_packaging_type
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_packaging_type/it/
@ibraimFer ibraimFer force-pushed the 17.0-add-product_packagin_type branch from 1c236cd to 45b615c Compare December 1, 2024 19:46
@jarsabot
Copy link

jarsabot commented Dec 1, 2024

    **WARNING**: Could not link to Odoo task. Record ID not found in the title of the MR, supported formats:
{ record type }#{ number }

Available types: 'task#', 't#' (case insensitive)

Examples:

  • task#123

  • i#123

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.