I want to learn more about the structure of Odoo, mainly to find out how I can import data. The best way to do that is through a python shell.
$ cd /opt/odoo
In : import openerp
In : openerp.modules.module?
[not much luck]
In : openerp.addons?
[not much luck either]
In : import openerp.addons.decimal_precision as dp # line from addons/product/product.py
ImportError: No module named decimal_precision
I'm guessing I need to somehow initialize `openerp.addons` so that it will contain all addon modules from the addons directory. I've been grepping through the source code but haven't found how this is done from `openerp.cli.main()`.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/7/14, 4:52 PM|
|Seen: 2780 times|
|Last updated: 3/16/15, 8:10 AM|