# Default currency for a party

**URL:** <https://discuss.tryton.org/t/default-currency-for-a-party/2004>\
**Category:** User\
**Created:** [November 27, 2019, 12:53pm UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004 "2019-11-27T12:53:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)\
**Post date:** [November 27, 2019, 12:53pm UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/1 "2019-11-27T12:53:02Z")

</div>

Hi,

Is there a way to define a default currency for a Party. This default currency will be used in sales and purchase.

Regards

---

<div class="post-metadata">

**Author:** ![maxx](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/maxx/32/2320_2.png) [@maxx](https://discuss.tryton.org/u/maxx)\
**Post date:** [November 27, 2019, 1:02pm UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/2 "2019-11-27T13:02:49Z")

</div>

We did it in a custom module…  
Some part of code: [class Party(metaclass=PoolMeta): \_\_name\_\_ = 'party.party' currency = f - Pastebin.com](https://pastebin.com/7ZUUVTvH)

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [November 27, 2019, 1:06pm UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/3 "2019-11-27T13:06:11Z")

</div>

Indeed it was decided to let the system guess the default value based on past order.  
This is based on the fact that the user never changes the default value of the party (may not have the rights) but just change it on the order.

---

<div class="post-metadata">

**Author:** ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)\
**Post date:** [November 27, 2019, 1:18pm UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/4 "2019-11-27T13:18:34Z")

</div>

@maxx : Thank for your snippet.

---

<div class="post-metadata">

**Author:** ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)\
**Post date:** [November 27, 2019, 1:18pm UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/5 "2019-11-27T13:18:46Z")

</div>

> [@ced](#):
>
> Indeed it was decided to let the system guess the default value based on past order.

You mean the last order ?

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [November 27, 2019, 1:25pm UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/6 "2019-11-27T13:25:15Z")

</div>

Indeed it takes the most used currency in the last 10 orders for the party.  
By the way, it is only on purchase. For sale, we think it is the company how decide the currency and most common case is to use the company currency.

---

<div class="post-metadata">

**Author:** ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)\
**Post date:** [May 5, 2020, 6:03pm UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/7 "2020-05-05T18:03:29Z")

</div>

Indeed I understand this point of view, however, even if the currency never changes during the life of the third party, it is more reassuring for a new user to have fixed information rather than calculated information. Especially since on sales for example it is common that the person entering the sale is not informed of the customer’s currency.

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [May 5, 2020, 6:49pm UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/8 "2020-05-05T18:49:22Z")

</div>

Why should the user wonder about the party currency?

For me the user should only focus on the current order and update the currency when required.

---

<div class="post-metadata">

**Author:** ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)\
**Post date:** [May 5, 2020, 8:16pm UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/9 "2020-05-05T20:16:09Z")

</div>

> [@pokoli](#):
>
> For me the user should only focus on the current order and update the currency when required.

If it knows this information. The sales administration is often not aware of details on customer.

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [May 6, 2020, 6:31am UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/10 "2020-05-06T06:31:44Z")

</div>

> [@2cadz](#):
>
> If it knows this information. The sales administration is often not aware of details on customer.

Well the user entering the order is in contact with the customer so it must now the currency of the order and update it if it’s not the desired one.

The sales adminsitrator can look at all the history of sales from a specific customer to get the full details.

---

<div class="post-metadata">

**Author:** ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)\
**Post date:** [May 6, 2020, 7:29am UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/11 "2020-05-06T07:29:36Z")

</div>

The person entering the sales is not in contact with the customer. She enters sales on the seller’s instructions. And anything that can make your job easier and avoid mistakes is a good thing. Setting the currency on the party is one of the little things that make it easier.

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [May 6, 2020, 7:45am UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/12 "2020-05-06T07:45:53Z")

</div>

> [@2cadz](#):
>
> She enters sales on the seller’s instructions.

So one of the sellers instructions should be the currency of the sale 😉 Otherwise the information is incomplete and may produce errors (with and without having the currency on the party).

> [@2cadz](#):
>
> And anything that can make your job easier and avoid mistakes is a good thing.

Agree but having the currency on the party may also produce mistakes. I.E: When the wrong currency is defined on the party.

> [@2cadz](#):
>
> Setting the currency on the party is one of the little things that make it easier.

Why? It will be great that you can explain the benefits of adding the currency of the party. I have re read the full thread and I haven’t seen any sentence that explains why this behaviour will be better.

---

<div class="post-metadata">

**Author:** ![albert](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/albert/32/21_2.png) [@albert](https://discuss.tryton.org/u/albert)\
**Post date:** [May 6, 2020, 9:36am UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/13 "2020-05-06T09:36:57Z")

</div>

I also think currency for both sales and purchases should be configurable in the party. Currency is an important negotiation topic in many businesses just like the payment term or the price list (both of which we seem to accept that should have a default defined in the party).

The thing is that if I’m an european company that sales the products in europe purchasing in USD means that I assume the risk of currency fluctuation. While if I purchase in EUR it is my supplier that assumes that risk.

Obviously that default may change for a specific sale/purchase, just like we allow that in payment terms to be changed.

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [May 6, 2020, 9:46am UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/14 "2020-05-06T09:46:58Z")

</div>

> [@albert](#):
>
> The thing is that if I’m an european company that sales the products in europe purchasing in USD means that I assume the risk of currency fluctuation. While if I purchase in EUR it is my supplier that assumes that risk.
> 
> Obviously that default may change for a specific sale/purchase, just like we allow that in payment terms to be changed.

But as you allow to change the currency for each sale/purchase having the currency on the party does not give any information about the assumed risks.

If you want to search for the currency risk you should search all the current purchase/sales that are in a diferent currency that the one used on the company.

So in this case the currency on party does not give any additional information.

---

<div class="post-metadata">

**Author:** ![albert](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/albert/32/21_2.png) [@albert](https://discuss.tryton.org/u/albert)\
**Post date:** [May 6, 2020, 10:03am UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/15 "2020-05-06T10:03:19Z")

</div>

> [@pokoli](#):
>
> But as you allow to change the currency for each sale/purchase having the currency on the party does not give any information about the assumed risks.
> 
> If you want to search for the currency risk you should search all the current purchase/sales that are in a diferent currency that the one used on the company.
> 
> So in this case the currency on party does not give any additional information.

I don’t want to know the risks that I already assumed.

What I argue is that I want the currency in the party for the same reason that I want the payment term in the party: it is part of the negotiation with the party and that is _prior_ to the sale/purchase.

The question could be: why does Tryton have a default payment term?

---

<div class="post-metadata">

**Author:** ![sergyo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/sergyo/32/181_2.png) [@sergyo](https://discuss.tryton.org/u/sergyo)\
**Post date:** [May 6, 2020, 10:14am UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/16 "2020-05-06T10:14:24Z")

</div>

> [@ced](#):
>
> For sale, we think it is the company how decide the currency and most common case is to use the company currency.

It is not like this in all business. Often customer decides the currency.

> [@pokoli](#):
>
> Well the user entering the order is in contact with the customer so it must now the currency of the order and update it if it’s not the desired one.

As @2cadz the user may have no contact with customer.

Normally in other systems the currency is defined on party, but as Tryton does not do things as others … I wonder if the solution would be that currency on sales were proposed as in purchases (based on last orders).

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [May 6, 2020, 10:20am UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/17 "2020-05-06T10:20:34Z")

</div>

> [@sergyo](#):
>
> Normally in other systems the currency is defined on party,

What is the rational of define the currency on the party? Why it is usefull? Why we should do it the same way?

> [@sergyo](#):
>
> but as Tryton does not do things as others …

If we do the same way as other we will never make it better 😉

> [@sergyo](#):
>
> I wonder if the solution would be that currency on sales were proposed as in purchases (based on last orders).

This makes sense for me until anyone give any good reason to add the currency on the party.

---

<div class="post-metadata">

**Author:** ![sergyo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/sergyo/32/181_2.png) [@sergyo](https://discuss.tryton.org/u/sergyo)\
**Post date:** [May 6, 2020, 11:48am UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/18 "2020-05-06T11:48:53Z")

</div>

> [@pokoli](#):
>
> What is the rational of define the currency on the party?

To get a default currency for the party, as another customer data such as payment term.

> [@pokoli](#):
>
> Why it is usefull?

To load party currency when creating sale document.

> [@pokoli](#):
>
> Why we should do it the same way?

Sorry but I didn’t say that we should do such thing.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [May 6, 2020, 1:13pm UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/19 "2020-05-06T13:13:13Z")

</div>

I guess it is clear that in some businesses (mainly international traders), there is a need to define explicitly for a customer or a supplier a default currency. But we should keep the system simple to use for other cases. This means to keep the _guessing_ of a good currency for the purchase and keep sale in the company currency.  
So I think we could add currencies for customer and supplier (probably on the `account_invoice` module) but without default values. Those fields are used when they are not empty to fill the currency of invoices, sale, purchase, subscription etc. Otherwise we use the current guessing mechanism for purchase and company currency for sales.

---

<div class="post-metadata">

**Author:** ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)\
**Post date:** [May 6, 2020, 9:32pm UTC](https://discuss.tryton.org/t/default-currency-for-a-party/2004/20 "2020-05-06T21:32:17Z")

</div>

That’s exactly what I thought when I started this thread : [Adding currency on party (#9305) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue9305)

[Next page](https://discuss.tryton.org/t/default-currency-for-a-party/2004.md?page=2)
