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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
Hello Kamran,
In Odoo, monetary fields in models like product.product
default to the company's currency because they are designed to reflect the financial context of the company. To display a different currency for a specific field, you would typically need to associate it with a currency field in the same model. Here's how you can approach this in Odoo Studio:
1. First, ensure you have a currency field in your product.product
model. If not, create one using Odoo Studio.
2. Next, for the monetary field you created, set its Currency Field option to the currency field you have in your model. This tells Odoo which currency to use for this monetary field.
3. If your model does not directly support changing the currency or if these steps do not apply, you might need to customize your model through code to include a currency field and reference it accordingly in your monetary field.
For personalized assistance:
https://www.pragtech.co.in/contact-us-mql.html
Change the monetary field with currency to read only and then back to NOT readonly. the field currency is now editable
Hi Kamran,
To display a currency symbol other than the company's default in Odoo, you can follow these steps:
- Activate the desired currencies from the settings if they are not already active.
- 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.
- 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.
- 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
Hello.
Im have the same issue for this question.
Can you made a Video explaining all this?
Regards
PChoca
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
2
6月 24
|
14718 | ||
|
0
7月 22
|
1913 | ||
|
3
1月 24
|
2705 | ||
|
3
11月 23
|
2077 | ||
|
1
10月 22
|
3527 |