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][IMP] purchase vendor promotion follow up #2559

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

santostelmo
Copy link
Contributor

@santostelmo santostelmo commented Feb 13, 2025

This change

In replenishment, we think that assigning best supplier should also be the intended logical behavior the module.

This PR is a followup of #2321

@santostelmo santostelmo force-pushed the 16.0-imp-purchase_vendor_promotion_follow-up branch from 24da5ec to 9a762a4 Compare February 13, 2025 10:13
@santostelmo santostelmo changed the title 16.0 imp purchase vendor promotion follow up [16.0][IMP] purchase vendor promotion follow up Feb 13, 2025
@santostelmo
Copy link
Contributor Author

@cyrilmanuel @simahawk could you please followup with your reviews here ?
#2321

@santostelmo santostelmo force-pushed the 16.0-imp-purchase_vendor_promotion_follow-up branch from 9a762a4 to 3a46650 Compare February 13, 2025 10:32
from odoo import Command
from odoo.exceptions import ValidationError
from odoo.tests import TransactionCase, tagged


@freeze_time("2024-01-02 03:21:34")

Choose a reason for hiding this comment

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

Decorating the class can give unexpected results, especially if a class is subclassed.
I always recommend to decorate the method or use the ctx manager where needed.

Choose a reason for hiding this comment

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

As you a here... Can you use BaseCommon?

Copy link
Contributor Author

@santostelmo santostelmo Feb 14, 2025

Choose a reason for hiding this comment

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

BaseCommon

Decorating the class can give unexpected results, especially if a class is subclassed. I always recommend to decorate the method or use the ctx manager where needed.

I agree. Code updated

@santostelmo santostelmo force-pushed the 16.0-imp-purchase_vendor_promotion_follow-up branch from 3a46650 to cfddc93 Compare February 14, 2025 10:36
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.

3 participants