Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
6462 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit

Hello.

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

Regards
PChoca

Related Posts Odpovědi Zobrazení Aktivita
2
čvn 24
14306
0
čvc 22
1712
3
led 24
2299
3
lis 23
1886
1
říj 22
3290