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!
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
|Asked: 3/5/14, 3:29 PM|
|Seen: 540 times|
|Last updated: 3/16/15, 8:10 AM|