Odoo Aide

0

0
1 Answer
1
Avatar

Ray Carnes

--Ray Carnes--
2737
| 5 2 8
Beaumont, États Unis
--Ray Carnes--

Business Analyst - Custom Projects

https://www.linkedin.com/in/raycarnes

Ray Carnes
06/11/2018 13:13

Check out the ir.config_parameter model.

A Python request such as:

my_global_variable = self.env['ir.config_parameter'].sudo().get_param('my.global.variable')

will return the value stored and something like:

self.env['ir.config_parameter'].sudo().set_param('my.global.variable', my_global_variable)

will set it.


1 Commentaires
Daniele Morelli
07/11/2018 04:43

Thank you very much for your answer! Cheers.

Poser une question
Keep Informed
1 Abonné(e)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