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

[16.0][MIG] product_attribute_set #142

Merged
merged 27 commits into from
Nov 20, 2023

Conversation

sbejaoui
Copy link

@sbejaoui sbejaoui commented Feb 28, 2023

No description provided.

@sbejaoui sbejaoui force-pushed the 16.0-product_attribute_set-sbj branch 2 times, most recently from ddc4f56 to d50bd05 Compare February 28, 2023 14:06
Copy link
Contributor

@lmignon lmignon left a comment

Choose a reason for hiding this comment

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

Thank you @sbejaoui LGTM (Code review + functional tests)

@GuillemCForgeFlow
Copy link
Contributor

GuillemCForgeFlow commented May 10, 2023

Hi @sbejaoui, I've added some improvements here: #125. Could you also add them here?
Thank you 😄

Copy link

@Camille0907 Camille0907 left a comment

Choose a reason for hiding this comment

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

Migration LGTM

product_attribute_set/__manifest__.py Outdated Show resolved Hide resolved
product_attribute_set/models/product.py Outdated Show resolved Hide resolved
product_attribute_set/models/product.py Outdated Show resolved Hide resolved
product_attribute_set/models/product.py Outdated Show resolved Hide resolved
product_attribute_set/models/product.py Outdated Show resolved Hide resolved
self.attribute_set_id = self.categ_id.attribute_set_id


# TODO : add the 'attribute.set.owner.mixin' to product.product in order to display
Copy link
Contributor

Choose a reason for hiding this comment

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

TODO still valid?

Copy link
Contributor

Choose a reason for hiding this comment

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

ping :)

product_attribute_set/models/product_category.py Outdated Show resolved Hide resolved
product_attribute_set/models/product_category.py Outdated Show resolved Hide resolved
@simahawk
Copy link
Contributor

simahawk commented Aug 9, 2023

@sbejaoui just a reminder: - in the commit msg are not needed 😉

@simahawk
Copy link
Contributor

simahawk commented Aug 9, 2023

/ocabot migration product_attribute_set

@victorvermot
Copy link

@sbejaoui Could you attend to simahawk's comments and rebase PR ? Ty in advance

@sbejaoui sbejaoui force-pushed the 16.0-product_attribute_set-sbj branch from ec39862 to a061c05 Compare August 15, 2023 12:15
@sbejaoui sbejaoui requested a review from simahawk August 15, 2023 12:37
test-requirements.txt Outdated Show resolved Hide resolved
@sbejaoui sbejaoui force-pushed the 16.0-product_attribute_set-sbj branch from 2ff4c3e to 9333148 Compare August 21, 2023 10:46
Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

LG overall. Cleaning up commits as per #141 would be nice ;)

self.attribute_set_id = self.categ_id.attribute_set_id


# TODO : add the 'attribute.set.owner.mixin' to product.product in order to display
Copy link
Contributor

Choose a reason for hiding this comment

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

ping :)

# Fill Category's products with Category's default attribute_set_id if empty
super().write(vals)
for record in self:
if vals.get("attribute_set_id"):
Copy link
Contributor

Choose a reason for hiding this comment

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

can we have any test here?

@rousseldenis
Copy link
Contributor

I've added a dependency on #171 to remove domain from view (as it causes access rights problems for normal users)

New organization :

- attribute_set (former base_custom_attribute)
- product_attribute_set (former pim_custom_attribute but without menus)
- pim (The "PIM application" former pim_base)
- pim_attrubute_set (depends on product_attribute_set and adds menus in
the PIM application)
And small FIX in _build_attribute_field()
rousseldenis and others added 18 commits November 20, 2023 16:59
[UPD] README.rst

[UPD] README.rst

[ADD] icon.png
courtesy of <olivier@naya-tec.com>

Apply dotfiles

[UPD] Update product_attribute_set.pot
[UPD] Update product_attribute_set.pot
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: odoo-pim-14.0/odoo-pim-14.0-product_attribute_set
Translate-URL: https://translation.odoo-community.org/projects/odoo-pim-14-0/odoo-pim-14-0-product_attribute_set/
Currently translated at 100.0% (27 of 27 strings)

Translation: odoo-pim-14.0/odoo-pim-14.0-product_attribute_set
Translate-URL: https://translation.odoo-community.org/projects/odoo-pim-14-0/odoo-pim-14-0-product_attribute_set/es_AR/
@lmignon lmignon force-pushed the 16.0-product_attribute_set-sbj branch from 49f623f to 1072cc5 Compare November 20, 2023 15:59
@lmignon
Copy link
Contributor

lmignon commented Nov 20, 2023

@rousseldenis #171 is merged.. This one is ready to be merged

@simahawk simahawk changed the title [16.0][MIG] - product_attribute_set [16.0][MIG] product_attribute_set Nov 20, 2023
@simahawk
Copy link
Contributor

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-142-by-simahawk-bump-minor, awaiting test results.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot OCA-git-bot merged commit eb40176 into OCA:16.0 Nov 20, 2023
5 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at e8446f8. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.