Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5 Ответы
5349 Представления

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?

Related Posts Ответы Просмотры Активность
5
сент. 20
5417
2
авг. 20
3751
1
июн. 16
10435
1
июл. 24
2562
0
янв. 24
1893