Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3306 Visninger

Hello everybody:

PLease friends, i am working with a caracter which must be an 'A' or 'B' or 'C'.

I have tried this:

  if code_TVA not in ['A', 'B', 'C'] :

but i didnt get the result that i am waiting.

Can anyone help please.

Thanks a lot in advance.

Best regards.

Avatar
Kassér
Bedste svar

This is not related to odoo but python itself, you dont really need the list:

'o' in 'some' => True

'me' in 'something' => True

'to' in 'bottle' => False

'me' in ['some','other','medicine'] => False

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
aug. 25
2573
3
feb. 25
3846
0
maj 24
46
1
apr. 24
3547
4
sep. 23
5087