Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5 Risposte
5334 Visualizzazioni

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


Avatar
Abbandona

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

Autore

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

because I did not try that

Autore

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

Risposta migliore

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



Avatar
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
5
set 20
5406
2
ago 20
3735
1
giu 16
10425
1
lug 24
2554
0
gen 24
1884