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

I want to show sale.order field name my custom module how i can do that please help me.

here is the view 

<field name="saleorder_type" widget="many2many_tags" />

saleorder_type =fields.Many2many('sale.order', string='Customer/Distributor',required=True)​
Here is the .py it shows some things else not showing my required file my required field name is type_id 
in sale order module.
Ảnh đại diện
Huỷ bỏ

What do you want to show? Sale Order's Name field or the Customer Name of the Sale Order?

Tác giả

I want to show Customer Type this field type id (type_id).

Look into Odoo Customization Tips: https://www.scoop.it/t/learn-openerp

Câu trả lời hay nhất

Hello,

You said your required field is type_id.  Try this then:

<field name="type_id"/>

Please vote if it helps. Thanks


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 9 20
3095
0
thg 3 15
3965
6
thg 1 23
11477
2
thg 9 21
5494
0
thg 8 19
3241