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 to enter my field data to ir.model.fields?

By
arsalan
on 4/24/14, 8:24 AM 1,037 views

Hello to all , my question is how can we enter our field details to "ir.model.fields" form. I have made a button and connectv it to a function for entering values to the "ir.model.fields" form. But on clicking the button I get the following error:

Properties of base fields cannot be altered in this manner! Please modify them through Python code, preferably through a custom addon!

my function :

def cron_d(self,cr,uid,ids,context):
        x_fields=self.pool.get('ir.model.fields')
        for id in ids:
            objn = self.pool.get('deg.form').browse(cr, uid, id)
             x_fields.write(cr, uid, ids,{'name':objn.name,'field_description':objn.name,'ttype':objn.data_type})

Please help me to fix the issue 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

0 follower(s)

Stats

Asked: 4/24/14, 8:24 AM
Seen: 1037 times
Last updated: 3/16/15, 8:10 AM