İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
6697 Görünümler

I have create a monetary Filed in product.productd model by studio and the currency is showing the company currency. how can i change the currency for that filed? i was wondering if somebody can help.

Avatar
Vazgeç
En İyi Yanıt

Hi Kamran,

To display a currency symbol other than the company's default in Odoo, you can follow these steps:

  1. Activate the desired currencies from the settings if they are not already active.
  2. When creating a new monetary field using Odoo Studio, you will see a field property called "Currency." This property is linked to a many2one field named 'currency_id,' which is invisible and readonly by default.
  3. It's important to note that the 'currency_id' field is invisible and readonly by default. To change the currency, you need to make it visible and editable by changing its attributes.
  4. You have two options to set the currency:
    • You can change the 'currency_id' field directly to the desired currency. This will change the currency for all fields in that model.
    • Alternatively, you can create another many2one field linked to the 'res.currency' model. You can set this field to invisible and readonly and add a domain to choose your desired currency. Then, in your monetary field properties, select this new many2one field as the currency. This will only affect the currency for the new field you've created.

By following these steps, you can display a currency symbol other than the company's default in your Odoo application. Remember to make the 'currency_id' field visible and editable if you choose to directly change its value.

Hope it helps

Avatar
Vazgeç

Hello.

Im have the same issue for this question.
Can you made a Video explaining all this?

Regards
PChoca

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Haz 24
14433
0
Tem 22
1757
3
Oca 24
2448
3
Kas 23
1964
1
Eki 22
3371