コンテンツへスキップ
メニュー
この質問にフラグが付けられました
5 返信
5358 ビュー

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


アバター
破棄

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

著作者

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

because I did not try that

著作者

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)]}"/>

最善の回答

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



アバター
破棄
著作者

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

関連投稿 返信 ビュー 活動
5
9月 20
5417
2
8月 20
3753
1
6月 16
10435
1
7月 24
2565
0
1月 24
1896