geo localisation logic | Odoo

geo localisation logic

I think the geo localisation is quite a neat feature. But I don't see the logic that is behind the assigning. I have salesman x with level 1, weight 500, location a salesman y with level 2, weight 1000, location z

And a lead at location f. Which salesman will be chosen, x or y?

There must be a formula being used for this, but I don't know it. Maybe someone can have a look at the code?

Flyguy
Flyguy
332
| 4 4 5
Asked on 7/18/13, 1:28 PM
0
vote
327 Views

Hello,

the code is rather simple :

  • weight is only used to select partners with weight > 0
  • then partners are found with the following algorithm :

    1. first way: in the same country, small area
    2. second way: in the same country, big area
    3. third way: in the same country, extra large area
    4. fourth way: anywhere in same country
    5. fifth way: closest partner whatsoever, just to have at least one result

Marc.

PS: please vote if you find this answer useful

Marc Cassuto
Marc Cassuto
675
| 4 4 8
Answered On 8/7/13, 11:06 PM
1
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice.

Ask a Question

About This Forum

This community is for professionals and enthusiasts of our products and services.


Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/18/13, 1:28 PM
Seen: 327 times
Last updated: 8/7/13, 11:06 PM