📜  odoo 组合域中的逻辑运算符 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:42.850000             🧑  作者: Mango

代码示例1
# ‘which are services OR have a unit price which is NOT between 1000 and 2000’:
['|',
    ('product_type', '=', 'service'),
    '!', '&',
        ('unit_price', '>=', 1000),
        ('unit_price', '<', 2000)]