irc.libera.chat #tryton log beginning Wed May 25 12:00:01 AM CEST 2022 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:16 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 06:16 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:26 | |
-!- sharkcz_(~sharkcz@85-71-161-19.rce.o2.cz) has joined #tryton | 06:49 | |
-!- Pilou`(~Pilou@user/pilou) has joined #tryton | 06:56 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:19 | |
-!- rpit(~rpit@p4ffb7fdd.dip0.t-ipconnect.de) has joined #tryton | 07:22 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 07:47 | |
rmu | hi! 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 qualified | 08:11 |
---|---|---|
rmu | the problem goes away if i change _formataddr to formataddr in https://hg.tryton.org/trytond/file/tip/trytond/ir/email_.py#l539 | 08:13 |
acaubet | rmu: I think you are talking about https://bugs.tryton.org/issue10650 | 08:30 |
cedk | rmu: indeed I think we should reformat the to and cc in get_email | 08:38 |
rmu | acaubet: no it's not exactly issue10650. the email address per se is ascii, but the name contains UTF-8 | 08:46 |
rmu | example: Jöhn Döe <john.doe@somewhere.local> | 08:46 |
cedk | rmu: https://bugs.tryton.org/issue11517 should fix it | 08:51 |
rmu | thanks, gonna go test it | 09:02 |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 10:46 | |
mrichez | hi, could the fields.depends on an "on_change_with" method be dynamically added ? | 10:50 |
cedk | mrichez: if you override the new decorator will append the new fields | 11:11 |
mrichez | cedk: 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 getattr | 11:14 |
mrichez | cedk: indeed solving https://bugs.tryton.org/issue11512 is quite complicated | 11:14 |
mrichez | cedk: 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 sexy | 11:16 |
cedk | mrichez: depends can not be dynamic | 11:18 |
mrichez | cedk: ok | 11:41 |
pokoli | mrichez: I think the only way is to use a diferent depends method for each shipment where the currency must be filled. | 13:11 |
mrichez | pokoli: yes that would be the solution, but i thought to reduce code using a mixin | 13:19 |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 19:13 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!