chat.freenode.net #tryton log beginning Sat 18 Apr 2020 12:00:01 AM CEST | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:44 | |
-!- rpit(~rpit@p200300C88F4C2B0012585E561CBA5A6D.dip0.t-ipconnect.de) has joined #tryton | 05:15 | |
-!- thaneor(~ldlc6@179.26.59.32) has joined #tryton | 05:31 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 05:37 | |
-!- Timitos(~kpreisler@2001:a61:400:901:762b:62ff:fe84:ed7e) has joined #tryton | 07:06 | |
-!- josesalvador(~josesalva@170.253.36.90) has joined #tryton | 07:07 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:54 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 09:38 | |
Timitos | cedk: why didn't you use a b2ck prefix for the twilio module as you recommend for third party modules? | 10:54 |
---|---|---|
pokoli | Timitos: it's not a third party module, but a Tryton addon like flask-tryton | 11:00 |
Timitos | ah ok. thx pokoli | 11:23 |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 11:39 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 11:59 | |
semarie | I am trying to query the database efficiently, to found records of AnalyticLine with 'date' != 'move_line.date'. I am trying to use pyson, but it seems to not work | 12:01 |
semarie | I tried with: AnalyticLine.search([('date', '!=', Eval('move_line.date'))]) | 12:01 |
semarie | the error is: TypeError: an integer is required (got type Eval) | 12:01 |
semarie | I have a workaround in python (query all records, and compare in python), but it is relatively inefficient :) | 12:02 |
pokoli | semarie: you can not use Eval on search | 12:16 |
pokoli | semarie: you should give a python value | 12:16 |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 12:17 | |
pokoli | semarie: but in your case you need to write an sql query to compare both values | 12:23 |
semarie | pokoli: so there is a documentation bug :) . search() (for ModelStorage or ModelSQL) are documented to take a domain as defined in topics-domain (which could be pyson value) | 12:36 |
semarie | but thanks for the tip | 12:38 |
pokoli | semarie: it is correct but pyson is only evaluated at client side | 13:03 |
-!- k-man(~jason@unaffiliated/k-man) has joined #tryton | 15:48 | |
-!- thaneor(~ldlc6@r186-54-252-187.dialup.adsl.anteldata.net.uy) has joined #tryton | 17:34 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 21:42 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!