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 #tryton01:04
-!- rpit(~rpit@p200300C88F4C2B0012585E561CBA5A6D.dip0.t-ipconnect.de) has joined #tryton07:04
-!- thaneor(~ldlc6@179.26.59.32) has joined #tryton07:04
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton07:04
-!- Timitos(~kpreisler@2001:a61:400:901:762b:62ff:fe84:ed7e) has joined #tryton09:04
-!- josesalvador(~josesalva@170.253.36.90) has joined #tryton09:04
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:04
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton11:04
Timitoscedk: why didn't you use a b2ck prefix for the twilio module as you recommend for third party modules?12:04
pokoliTimitos: it's not a third party module, but a Tryton addon like flask-tryton13:04
Timitosah ok. thx pokoli13:04
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton13:04
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton13:04
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 work14:04
semarieI tried with: AnalyticLine.search([('date', '!=', Eval('move_line.date'))])14:04
semariethe error is: TypeError: an integer is required (got type Eval)14:04
semarieI have a workaround in python (query all records, and compare in python), but it is relatively inefficient :)14:04
pokolisemarie: you can not use Eval on search14:04
pokolisemarie: you should give a python value14:04
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton14:04
pokolisemarie: but in your case you need to write an sql query to compare both values14:04
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)14:04
semariebut thanks for the tip14:04
pokolisemarie: it is correct but pyson is only evaluated at client side15:04
-!- k-man(~jason@unaffiliated/k-man) has joined #tryton17:04
-!- thaneor(~ldlc6@r186-54-252-187.dialup.adsl.anteldata.net.uy) has joined #tryton19:04
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:04

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