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

Print (with python file) an one2many field

By
Selverine
on 1/5/14, 10:11 AM 869 views

Hi everybody,

I add a field type one2many in my class product.product

        'product_BAT': fields.one2many('product.bat', 'product_temp_id', 'product BAT'),

I would like to print this field in the python file sale.py. For each product in sale.order.line, I would like to print the field product_BAT (I have the product_ID).

Print my field in the python file product.py works (with a tree) but how is possible in different python file (like in sale.py?)

Thank you a lot for your help. I am a little deseperate.

Selverine

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: 1/5/14, 10:11 AM
Seen: 869 times
Last updated: 3/16/15, 8:10 AM