Odoo Help

2

0
3 Answers
0

Hello Rihene ,

Activate developer mode,

Settings > Actions > User-defined Defaults 

And create your record with res.company model

If you want to put by code then you can do it by data in Odoo custom module.

Thanks


0
Avatar

Mitul Shingala

--Mitul Shingala--
--Mitul Shingala--

Odoo Developer

Mitul Shingala
15.01.19, 07:18

hello

Update your code into the method _get_user_currency(). into the res.company object.

or also you can achieve this using the default_get method.

0
Andre de Kock
11.07.17, 05:21

Using Python you can change it like so (I changed it to South African Rand for example):

class ResCompany(models.Model):
_inherit = 'res.company'

@api.model
def _get_euro(self):
return self.sudo().env.ref('base.ZAR').id
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now