Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3964 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 25
2371
2
thg 9 22
10051
2
thg 4 22
4994
0
thg 7 21
7706
1
thg 3 21
5374