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] component + test_component: Migration to 16.0 #441

Merged
merged 131 commits into from
Dec 1, 2022

Conversation

asierneiradev
Copy link
Contributor

@asierneiradev asierneiradev commented Oct 4, 2022

#440 : component + test_component

@oca-clabot
Copy link

Hey @asierneiradev, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: https://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@hugosantosred
Copy link
Member

/ocabot migration component

@OCA-git-bot
Copy link
Contributor

Sorry @hugosantosred you are not allowed to mark the addon tobe migrated.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

@oca-clabot
Copy link

Hey @asierneiradev, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: https://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@asierneiradev
Copy link
Contributor Author

Hi @flachica !
can you help me to push this migration?
How do you see the PR?
Best regards

@asierneiradev
Copy link
Contributor Author

/ocabot migration component

@OCA-git-bot
Copy link
Contributor

Sorry @asierneiradev you are not allowed to mark the addon tobe migrated.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

@simahawk simahawk self-requested a review November 24, 2022 14:51
@simahawk
Copy link
Contributor

/ocabot migration component

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Nov 24, 2022
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

@simahawk
Copy link
Contributor

Can you rebase pls? I'd like to see runboat build running and likely we'll have a problem w/ pre-commit as we have to sync from the template.

The favorite lookup should be by 'usage' (kinda interface) and by model
name ('components()' method).  The lookup by component name should
normally not be used as it reduces the flexibility.  Using a different
method for this lookup discourage its usage.  Also, the lookup by
component name completely ignores the current collection, which is bad
or not bad depending of what you want to achieve.
when inheriting from multiple components, we might inadvertly override a
value with None
Used for instance by the 'ecommerce' components
The mapping methods are now built by the component initialization when
the "aggregated" class is built.
And remove automatic naming from class name, not explicit enough,
especially when we have to inherit from one.

We could take the total opposite and only use class names components:

class MyComponent(Component):
    ...

class MyComponentExtended(Component):
    _inherit = 'MyComponent'

But it would be less close to the odoo's API.
@asierneiradev asierneiradev force-pushed the 16.0-mig-component branch 2 times, most recently from 3bd660f to 999080e Compare November 25, 2022 08:01
@asierneiradev
Copy link
Contributor Author

Hi @simahawk !
Performed the rebase and it looks like all the checks have been executed.
Do you need any more adjustments to be made?
Best regards and thanks for the follow up

@StefanRijnhart
Copy link
Member

Please include #448, which was merged in the 15.0 branch recently.

gurneyalex and others added 2 commits November 30, 2022 13:00
Add a link to the Introduction to Odoo Components article by Guewen Baconnier
@asierneiradev
Copy link
Contributor Author

Hi @StefanRijnhart

Is already included. Best regards !

Please include #448, which was merged in the 15.0 branch recently.

Selección_027

Copy link
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

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

Thanks!

@simahawk
Copy link
Contributor

simahawk commented Dec 1, 2022

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-441-by-simahawk-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit b8bbdae into OCA:16.0 Dec 1, 2022
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 7e70b2a. 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.

None yet