Odoo Help

3

0
3 Answers
2
Avatar

Ravi Gadhia India

--Ravi Gadhia--

8389
| 2 2 5
Gandhinagar, India
--Ravi Gadhia--


Ravi Gadhia India
11/21/19, 9:19 AM

There is a built-in method on currency to convert one currency to another like

>>> USD = self.env['res.currency'].search([('name', '=', 'USD')])
>>> EUR = self.env['res.currency'].search([('name', '=', 'EUR')])
>>> USD.compute(500, EUR)

448.53000000000003 

Create one computed field (monetary) and call compute method of currency to get the conversation rate.

0
Avatar

Bassem Riachi Lebanon

--Bassem Riachi--

823
| 0 1 3
Beirut, Lebanon
--Bassem Riachi--
Bassem Riachi Lebanon
11/21/19, 8:11 AM

Dear 

We developed a dual Currency module , where we all transactions can be automatically saved in 2 main currencies ( for ex. SAR and USD)

bassem.riachi@analyb.com

www.analyb.com

1 Comment
Muhammad Anees Saudi Arabia
11/21/19, 8:26 AM

Thanks Bassem,

I need only on a form and for one field. At transaction level, odoo mostly keeps the value in both currencies.

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now