跳至内容
菜单
此问题已终结

i am trying to modify a domain but i have first to understand the logic of this prefix expression :

                [('state', '=', 'validate'),
                                            '|', '|',
                                                '&',
                                                    ('supplier', '=', to_supplier), ('customer', '=', to_customer),
                                                '&',
                                                    ('supplier', '=', True), ('customer', '=', True),
                                                ('is_project', '=', True)]
                
i tried to convert it into infix expression (for my own understanding) so i got this :

('state', '=', 'validate'),[[('supplier', '=', to_supplier),'&' ('customer', '=', to_customer)],'|',[('supplier', '=', True),'&', ('customer', '=', True)], '|',
                                                ('is_project', '=', True)]
in a more simple way : prefix : A,|,|,&,B,C,&,D,E,F infix : A,(B&C | D&E| F) i don't know if this is right or no
形象
丢弃
相关帖文 回复 查看 活动
2
5月 24
2860
2
4月 15
5474
1
11月 24
2388
1
11月 22
3537
0
6月 21
6113