IRC logs of #tryton for Saturday, 2020-04-18

chat.freenode.net #tryton log beginning Sat 18 Apr 2020 12:00:01 AM CEST
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:44
-!- rpit(~rpit@p200300C88F4C2B0012585E561CBA5A6D.dip0.t-ipconnect.de) has joined #tryton05:15
-!- thaneor(~ldlc6@179.26.59.32) has joined #tryton05:31
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton05:37
-!- Timitos(~kpreisler@2001:a61:400:901:762b:62ff:fe84:ed7e) has joined #tryton07:06
-!- josesalvador(~josesalva@170.253.36.90) has joined #tryton07:07
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:54
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:38
Timitoscedk: why didn't you use a b2ck prefix for the twilio module as you recommend for third party modules?10:54
pokoliTimitos: it's not a third party module, but a Tryton addon like flask-tryton11:00
Timitosah ok. thx pokoli11:23
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton11:39
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton11:59
semarieI 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 work12:01
semarieI tried with: AnalyticLine.search([('date', '!=', Eval('move_line.date'))])12:01
semariethe error is: TypeError: an integer is required (got type Eval)12:01
semarieI have a workaround in python (query all records, and compare in python), but it is relatively inefficient :)12:02
pokolisemarie: you can not use Eval on search12:16
pokolisemarie: you should give a python value12:16
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton12:17
pokolisemarie: but in your case you need to write an sql query to compare both values12:23
semariepokoli: 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
semariebut thanks for the tip12:38
pokolisemarie: it is correct but pyson is only evaluated at client side13:03
-!- k-man(~jason@unaffiliated/k-man) has joined #tryton15:48
-!- thaneor(~ldlc6@r186-54-252-187.dialup.adsl.anteldata.net.uy) has joined #tryton17:34
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:42

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!