Skip to Content
Menu
This question has been flagged

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
Avatar
Discard
Related Posts Replies Views Activity
2
May 24
762
2
Apr 15
4735
1
Nov 24
175
1
Nov 22
1817
0
Jun 21
2846