Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3300 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
2
août 25
2551
3
févr. 25
3845
0
mai 24
46
1
avr. 24
3547
4
sept. 23
5083