Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1680 Ansichten

Hello,

I have a Purchase Order, with a set currently of USD.

The purchase order displays the USD rate and PO total nicely.

I would then like to add, via Odoo Studio, a second field underneath the total purchase order price total, which shows the total in the company currency (GBP), and then a second field which shows the currency exchange rate which has been manually set for USD in the currency settings.

I am thinking this possible via the Compute option in "Fields", with some python code, found in technical view.

Please could someone point me in the right direction?

Avatar
Verwerfen
Beste Antwort

It depends on your Odoo version.

In V16 the currency rate is in its own field.  But no the your local total value.  So you must create a new computed field.  You can do it with Studio.  Not very complex.  Some help here:

https://www.odoo.com/documentation/16.0/developer/tutorials/getting_started/09_compute_onchange.html

In V17 both fields are in the purchase model, and can be added to the view.

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Apr. 24
1353
2
Juli 18
7714
1
Juli 16
8033
2
Feb. 18
4814
0
März 15
4180