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

[12.0] [MIG] product_end_of_life #479

Merged
merged 3 commits into from
Jul 7, 2022

Conversation

tbaden
Copy link
Member

@tbaden tbaden commented May 20, 2019

No description provided.

@oca-clabot
Copy link

Hey @tbaden, 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: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@tbaden tbaden mentioned this pull request May 20, 2019
24 tasks
@max3903 max3903 requested a review from agyamuta May 20, 2019 16:39
@tbaden tbaden force-pushed the 12.0-mig-product_end_of_life branch from ca53242 to 66db484 Compare May 20, 2019 16:39
@max3903 max3903 added this to the 12.0 milestone May 20, 2019
@tbaden
Copy link
Member Author

tbaden commented May 20, 2019

will push the history again. seems like I messed up my git user for the patch.

@tbaden tbaden changed the title [12.0] [MIG] product_end_of_life [12.0] [MIG[WIP] product_end_of_life May 20, 2019
@tbaden tbaden force-pushed the 12.0-mig-product_end_of_life branch 2 times, most recently from a9e9cfb to 571a537 Compare May 20, 2019 19:40
@tbaden
Copy link
Member Author

tbaden commented May 20, 2019

found a missing newline... will fix it. otherwise it can be reviewed @max3903

@tbaden tbaden force-pushed the 12.0-mig-product_end_of_life branch from 571a537 to 15158d6 Compare May 20, 2019 20:08
@tbaden tbaden changed the title [12.0] [MIG[WIP] product_end_of_life [12.0] [MIG] product_end_of_life May 20, 2019
Copy link
Contributor

@AdriaGForgeFlow AdriaGForgeFlow left a comment

Choose a reason for hiding this comment

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

Code review and functional test in runbot (haven't tested mailing feature). LGTM 👍

<field name="inherit_id" ref="product.product_variant_easy_edit_view"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='weight']" position="after">
<group></group>
Copy link
Member

Choose a reason for hiding this comment

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

@tbaden The empty group is needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

@nikul-serpentcs as I did not change this part I'm not 100% sure, but most likely for a correct placement inside the view.

Copy link
Member

Choose a reason for hiding this comment

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

@tbaden Ok, Can you please check if need then keep as it is, otherwise remove it.

Thanks

@simahawk
Copy link
Contributor

@tbaden anything else to do? Ping reviewers if you think you are done.

Copy link
Contributor

@claudiagn claudiagn left a comment

Choose a reason for hiding this comment

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

LGTM!

@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). 🤖

@dreispt
Copy link
Sponsor Member

dreispt commented Apr 28, 2021

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 12.0-ocabot-merge-pr-479-by-dreispt-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Apr 28, 2021
Signed-off-by dreispt
@dreispt
Copy link
Sponsor Member

dreispt commented Jul 3, 2021

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 12.0-ocabot-merge-pr-479-by-dreispt-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Jul 3, 2021
Signed-off-by dreispt
@OCA-git-bot
Copy link
Contributor

@dreispt your merge command was aborted due to failed check(s), which you can inspect on this commit of 12.0-ocabot-merge-pr-479-by-dreispt-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jan 16, 2022
@simahawk
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 12.0-ocabot-merge-pr-479-by-simahawk-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Jan 17, 2022
Signed-off-by simahawk
@OCA-git-bot
Copy link
Contributor

@simahawk your merge command was aborted due to failed check(s), which you can inspect on this commit of 12.0-ocabot-merge-pr-479-by-simahawk-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jan 23, 2022
@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label May 29, 2022
@tbaden
Copy link
Member Author

tbaden commented Jun 1, 2022

@simahawk any idea why the merge failed?

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jun 5, 2022
Copy link
Member

@huguesdk huguesdk left a comment

Choose a reason for hiding this comment

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

test_search_read() fails if the module product_model_viewer is installed. i don’t know which module causes the error, though.

Comment on lines +83 to +94
@api.model
def name_search(self, name, args=None, operator='ilike', limit=100):
args = args or []
domain = []
if name:
domain = [
('name', operator, name)
]
if operator in expression.NEGATIVE_TERM_OPERATORS:
domain = ['&', '!'] + domain[1:]
products = self.search(domain + args, limit=limit)
return products.name_get()
Copy link
Member

Choose a reason for hiding this comment

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

when i stumbled on this, i did not understand where this came from, and why it had to be added when migrating to 12.0. i then saw that in 11.0, product.product redefined .name_get(), and this called .search(), but this has disappeared in 12.0.

this implementation is quite different from the default .name_get(). isn’t there another way? if not, at least a comment explaining why it’s done like this and its tradeoffs would be nice.

@rousseldenis
Copy link
Sponsor Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 12.0-ocabot-merge-pr-479-by-rousseldenis-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 15b8556 into OCA:12.0 Jul 7, 2022
@OCA-git-bot
Copy link
Contributor

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