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

hi everyone

I can't find the correct field to make a custom field on is_company

<field name="blahblah" attrs="{'invisible': [('is_company', '=', True)]}"/>

I know this works to add a field to person in the widget while hiding it in company form

but what is the correct string to add it to the company not individual?

I've tried 'person' 'parent_id' 'is_individual' 'is_person'

I have checked in res.partner xml for the correct string but couldn't locate it

thanks in advance


Ảnh đại diện
Huỷ bỏ

Have you tried ('is_company', '=', False)?

Tác giả

yes sir I did. or do you mean <field name="blahblah' attrs="('is_company', '=', False)"/>

because I did not try that

Tác giả

oh boy silly question. I did try it before but had a spelling mistake..... that is the proper string thank you.

<field name="blahblah" attrs="{'invisible': [('is_company', '=', False)]}"/>

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

<filter string="Individuals" name="type_person" domain="[('is_company', '=', False)]"/> is the correct filter for individuals.



Ảnh đại diện
Huỷ bỏ
Tác giả

sorry but could you provide a xpath example for this with any field name?

Bài viết liên quan Trả lời Lượt xem Hoạt động
5
thg 9 20
5423
2
thg 8 20
3758
1
thg 6 16
10437
1
thg 7 24
2569
0
thg 1 24
1898