We are looking to define a specific rule on a button (Models-> Models Access -> Buttons). Rule would be : 2 users needs to validate button if amount is greater than a specific value.
We try this expression : [["total_amount", ">", 500]]
This is not working. What should be the correct expression ?
Thanks !
Thanks but we are testing from the tryton client, and expression is not a valid Pyson expression. Is there a way to convert your expression in the gui client ?
We convert your expression with PYTHONEncoder and then we introduce the result in the GUI, and it's working whith this value:
{"s2": 500, "s1": {"d": 0, "k": "total_amount", "__class__": "Get", "v": {"d": {}, "__class__": "Eval", "v": "self"}}, "e": false, "__class__": "Greater"}
Is there a tool in the gui to convert expression to Pyson ?
Ok; tested ! Easier with the widget :-)