跳至內容
選單
此問題已被標幟

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
2858
2
4月 15
5472
1
11月 24
2381
1
11月 22
3536
0
6月 21
6113