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

how can I setup a new field?

By
Monitor Service Center GmbH
on 7/17/13, 8:04 PM 844 views

Hi together,

I would like to add a new field in the artikle data set. I am a new user and have no idea how to do that.

Could somebody help me to solve this problem?

thanks in advance

0
kalmenchia
On 7/17/13, 9:51 PM

Hi ,

all you have to do is follow this step , you have two ways to do it , with coding or without coding , i am showing you with coding which is by far more flexible.

  1. open your artikle data set py , look for the class and if this artikle is already a module then you may want to inherit it.

    class artikle(osv.osv): _inherit = "artikle"

        _columns = {
                "your_new_field" :  fields.(TYPE----> please refer to 
                            the type of fields available, 
                          https://doc.openerp.com/trunk/server/03_module_dev_02/ )
         }
    

    artikle()

  2. make a xml view file and then look for section "inheritance in Views" at https://doc.openerp.com/trunk/server/03_module_dev_03/

  3. after make all above edit , shut down and restart the openerp-server services

  4. goto the module , if is a new module , then you click install at the module if is a module which already installed , then you click upgrade .

this is a simple steps that hope can help you in any where.

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

0 follower(s)

Stats

Asked: 7/17/13, 8:04 PM
Seen: 844 times
Last updated: 3/16/15, 8:10 AM