Created
July 25, 2017 13:46
-
-
Save tienhieuD/0186d797d6446194d64e6e97892dd2a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Simple condition in programming: | |
if field1 = 5 or (field2 ! = 10 and field3 = 12) | |
#In OpenERP domain filter, it will be written as: | |
domain = ['|',('field1','=',5),('&',('field2','!=',10),('field3','=','12'))] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment