-
-
Notifications
You must be signed in to change notification settings - Fork 729
[16.0][ADD] lead_time_profile #1908
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
base: 16.0
Are you sure you want to change the base?
Conversation
mmequignon
left a comment
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.
I think this is lacking tests
3d3dd11 to
4a78f33
Compare
Added some test cases. |
4a78f33 to
fb01303
Compare
| company = self.company_id | ||
| if self.partner_id: | ||
| if partner == self.partner_id: | ||
| score += company.lead_time_profile_partner_factor |
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.
My question is about factor: should it be addition instead of multiplication ?
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.
We use addition because each factor is an independent weight. With multiplication, different match combinations (or factors equal to 1) could collapse to the same score, which distorts the results.
fb01303 to
1aaae33
Compare
This module provides a generic way to manage lead times using lead time profiles. It selects the most suitable profile based on predefined rules and calculates the lead time accordingly.
The module is designed to be used as a base module.
@qrtl QT4790