Odoo Help


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.


Auto-assignment parameter function

Andrea Aramini
on 3/5/14, 3:29 PM 540 views

Hi, i'm new in openERP and I hope that you'll help me. I want to create a function which makes me able to auto-assign a value to a char field, specifically: I have 2 classes, an extension of "mrp_bom" which adds --> 'regola_colori_line_id':fields.one2many('regola.colori','name','Chiave Colori') connected to the "regola_colori" class. In "regola_colori" class there is the char field 'parent_id_regola_colori'. I want a function that auto-assign the value in Product Template(product_id that is a many2one field) of mrp.bom to my field parent_id_regola_colori. Thanks to all!

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)


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