This question has been flagged
1 Reply
2818 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

Avatar
Discard
Best Answer

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.

Avatar
Discard