# How to carrier selection

**URL:** https://discuss.tryton.org/t/how-to-carrier-selection/8355
**Category:** User
**Created:** [February 28, 2025, 7:19pm UTC](https://discuss.tryton.org/t/how-to-carrier-selection/8355 "2025-02-28T19:19:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [February 28, 2025, 7:19pm UTC](https://discuss.tryton.org/t/how-to-carrier-selection/8355/1 "2025-02-28T19:19:42Z")

</div>

i understood that there is a ::from a ::TO and a carrier.

si we chose fr → fr car1  
fr-\>it car2  
but if we want a fr → (not fr nor it) car 3 if we just leave blank it is chosen by default for all  
how could we indicate a fallback ?

---

<div class="post-metadata">

### Author: ![dotbit](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dotbit/32/2093_2.png) [@dotbit](https://discuss.tryton.org/u/dotbit)
#### Post date: [March 1, 2025, 5:48am UTC](https://discuss.tryton.org/t/how-to-carrier-selection/8355/2 "2025-03-01T05:48:02Z")

</div>

Hi, Yes, if you leave From or To blank it will match all.

---

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [March 1, 2025, 9:28am UTC](https://discuss.tryton.org/t/how-to-carrier-selection/8355/3 "2025-03-01T09:28:59Z")

</div>

it seems to be a bad choice that a blank one will take precedence on all. One could think that it is a fall back .  
the solution is to add one carrier for each of the 197 country if you have a special carrier for only 1 country.

Maybe there is a method to provide a fallback ?

---

<div class="post-metadata">

### Author: ![dotbit](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dotbit/32/2093_2.png) [@dotbit](https://discuss.tryton.org/u/dotbit)
#### Post date: [March 1, 2025, 11:35am UTC](https://discuss.tryton.org/t/how-to-carrier-selection/8355/4 "2025-03-01T11:35:38Z")

</div>

The items that you want to match first should be on top if the list.  
The Carrier selection can be sorted by drag and drop, or by changing the sequence.

You should have the most specific Carrier selection records first in the list, as they are the most likely to not match. If they do not match then you will get to the fallback selection without To: country set.

In your case fr-\> should be last in the list.  
The issue that I think is bothering you is that this will also match fr-\>fr. But at least it will be last in the list and not selected by default.

---

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [March 1, 2025, 12:14pm UTC](https://discuss.tryton.org/t/how-to-carrier-selection/8355/5 "2025-03-01T12:14:49Z")

</div>

it does not work, i tried this way, i’ll look again and again

---

<div class="post-metadata">

### Author: ![dotbit](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dotbit/32/2093_2.png) [@dotbit](https://discuss.tryton.org/u/dotbit)
#### Post date: [March 2, 2025, 8:12am UTC](https://discuss.tryton.org/t/how-to-carrier-selection/8355/6 "2025-03-02T08:12:39Z")

</div>

> [@herve\_02](#):
>
> si we chose fr → fr car1  
> fr-\>it car2  
> but if we want a fr → (not fr nor it) car 3 if we just leave blank it is chosen by default for all  
> how could we indicate a fallback ?

I think what you want is:

| From Country | To Country | Carrier |
| --- | --- | --- |
| FR | FR | Car1 |
| FR | IT | Car2 |
| FR | | Car3 |

This way, if you have Fr-\>Fr Car1 will be matched first.  
If you have Fr-\>It, Car2 will be matched first.  
If you have Fr-\>Es (for example), this will not match the first two, and only Car3 will be selectable.  
The caveat is that in the case of Fr-\>Fr and Fr-\>It, Car3 will also be seletable, but it will not be the default.

Please do write exactly what you have done and you expect.

Do note: the entries _have to be in the order above_!

I tested on my tryton instance and the behavior matches the one I explain above.
