-
-
Notifications
You must be signed in to change notification settings - Fork 815
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
base: 16.0
Are you sure you want to change the base?
[16.0][IMP] purchase vendor promotion follow up #2559
Conversation
24da5ec
to
9a762a4
Compare
@cyrilmanuel @simahawk could you please followup with your reviews here ? |
9a762a4
to
3a46650
Compare
from odoo import Command | ||
from odoo.exceptions import ValidationError | ||
from odoo.tests import TransactionCase, tagged | ||
|
||
|
||
@freeze_time("2024-01-02 03:21:34") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
3a46650
to
cfddc93
Compare
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