[FIX] Check account analytic on PO line candidate search.
Currently we search on SO analytic account during the PO candidate search phase. If there is a PO for the selected supplier but there is no lines with the current analytic account, the po is ne selected The verification of the analytic account should only be done during the Detection phase of a candidate purchase line. At this moment we can check if the candidate line has the same analytic account and if so, select it or ignore it.
Video link to see the current behavior : https://youtu.be/Q4DXCCMzt0c
So you expect in the video that the third sales order to generate a third PO line in the PO that was already created, right? I agree that behavior makes more sense
Exactly, in this situation, it's not necessary to create a new purchase order because we already have an existing one for the same supplier.
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.