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