IRC logs of #tryton for Wednesday, 2022-05-25

irc.libera.chat #tryton log beginning Wed May 25 12:00:01 AM CEST 2022
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:16
-!- ChanServ changed mode/#tryton -> +o cedk 06:16
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:26
-!- sharkcz_(~sharkcz@85-71-161-19.rce.o2.cz) has joined #tryton06:49
-!- Pilou`(~Pilou@user/pilou) has joined #tryton06:56
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:19
-!- rpit(~rpit@p4ffb7fdd.dip0.t-ipconnect.de) has joined #tryton07:22
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton07:47
rmuhi! I've got a curious problem with notification emails to recipients that contain non-ascii characters in their name. it seems the complete email address in the "To" header is escaped, including <, > and @. exim doesn't like that because it regards such addresses as not fully qualified08:11
rmuthe problem goes away if i change _formataddr to formataddr in https://hg.tryton.org/trytond/file/tip/trytond/ir/email_.py#l53908:13
acaubetrmu: I think you are talking about https://bugs.tryton.org/issue1065008:30
cedkrmu: indeed I think we should reformat the to and cc in get_email08:38
rmuacaubet: no it's not exactly issue10650. the email address per se is ascii, but the name contains UTF-808:46
rmuexample: Jöhn Döe <john.doe@somewhere.local>08:46
cedkrmu: https://bugs.tryton.org/issue11517 should fix it08:51
rmuthanks, gonna go test it09:02
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton10:46
mrichezhi, could the fields.depends on an "on_change_with" method be dynamically added ? 10:50
cedkmrichez: if you override the new decorator will append the new fields11:11
mrichezcedk: more complicated, i thought to use it in a mixin applied on different models but where field name is different... (supplier / customer) so wondering if depends could be filled using getattr11:14
mrichezcedk: indeed solving https://bugs.tryton.org/issue11512 is quite complicated11:14
mrichezcedk: the best solution working i found until now, is to pass supplier/customer in the context, and then set supplier_currency/customer_currency in default_currency method of the move. Not really sexy11:16
cedkmrichez: depends can not be dynamic11:18
mrichezcedk: ok11:41
pokolimrichez: I think the only way is to use a diferent depends method for each shipment where the currency must be filled.13:11
mrichezpokoli: yes that would be the solution, but i thought to reduce code using a mixin13:19
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton19:13

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