Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3982 Weergaven

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jan. 25
2379
2
sep. 22
10055
2
apr. 22
4997
0
jul. 21
7712
1
mrt. 21
5378