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

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.

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
2
8月 25
2578
3
2月 25
3850
0
5月 24
46
1
4月 24
3551
4
9月 23
5093