Odoo Help

Welcome!

This community 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.

0

Where Is The Core OpenERP Module Located?

By
Alex Gallien
on 5/14/14, 5:51 PM 296 views

My knowledge of python is relatively limited, but as I understand it the code at the top of most addons that reads:

    from openerp import $whatever

Is supposed to grab functionality from a module (library? class?) called openerp. Where exactly is that located? I am trying to figure out what exactly happens when

    [[ o.workcenter_lines,'line2' ]]

is called. I am assuming that workcenter_lines is a method defined somewhere else that is being imported at the beginning of the code.

Ultimately, I am trying to add the description ("note") that I have in each step of my routing onto my Production Order Report but can't figure out how to refer to it. For the sequence it is just [[ line2.sequence ]], and for the name [[ line2.name ]]. Does anyone know where workcenter_lines is defined? Or how I could call the description from each of the routing steps? Or where I could locate the openerp class?

Sorry if my terminology is all out of whack, I have only recently begun to learn python. Thanks!

 

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/14/14, 5:51 PM
Seen: 296 times
Last updated: 3/16/15, 8:10 AM