Odoo Help

2

1
1 Answer
1
Avatar

Jagdish Panchal India

--Jagdish Panchal--

2776
| 6 4 8
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal India
4/10/14, 9:02 AM

Hi

Try this

import logging
from openerp.tools.config import config
_logger = logging.getLogger(__name__)

class my_test(osv.osv):
   _name = "my_test"

  dbUser = config.get("db_user")

  print "Database user >>> " + dbUser

my_test()
1 Comment
malikge Pakistan
4/12/14, 4:16 AM

Well the code that I have provided above is working fine for me, that prints database user on log. But I want to get dbUser variable in Java-script.

Ask a Question
Writer
Keep Informed
0 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