Skip to content

Conversation

@AungKoKoLin1997
Copy link
Contributor

@AungKoKoLin1997 AungKoKoLin1997 commented Apr 1, 2025

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

Copy link
Member

@mmequignon mmequignon left a 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

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 16.0-add-lead_time_profile branch from 3d3dd11 to 4a78f33 Compare April 3, 2025 15:57
@AungKoKoLin1997
Copy link
Contributor Author

I think this is lacking tests

Added some test cases.

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 16.0-add-lead_time_profile branch from 4a78f33 to fb01303 Compare July 11, 2025 02:21
@rousseldenis rousseldenis added this to the 16.0 milestone Sep 29, 2025
company = self.company_id
if self.partner_id:
if partner == self.partner_id:
score += company.lead_time_profile_partner_factor
Copy link
Contributor

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 ?

Copy link
Contributor Author

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.

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.

3 participants