IRC logs of #tryton for Tuesday, 2019-01-22

chat.freenode.net #tryton log beginning Tue Jan 22 00:00:01 CET 2019
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton23:22
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:21
-!- morfeokmg(~Mutter@fixed-187-190-38-30.totalplay.net) has joined #tryton02:20
-!- yangoon1(~mathiasb@i59F52F2D.versanet.de) has joined #tryton03:29
-!- udono(~udono@188.210.61.125) has joined #tryton04:14
-!- thaneor(~lenovo3@179.26.116.187) has joined #tryton05:44
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton06:38
-!- rpit(~rpit@p200300C88F2690000966D3D110E27369.dip0.t-ipconnect.de) has joined #tryton06:54
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton07:58
-!- Timitos(~kpreisler@tmo-086-167.customers.d1-online.com) has joined #tryton08:18
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton08:59
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:06
-!- marc0s(~marcos@unaffiliated/marc0s) has joined #tryton09:18
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:54
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton10:06
-!- mariomop(~quassel@host109.201-253-199.telecom.net.ar) has joined #tryton10:43
-!- rpit(~rpit@h-213.61.178.154.host.de.colt.net) has joined #tryton11:13
cedkpokoli: do you see how we could implement multiselection field?11:26
pokolicedk: like the multiselection widget but with some buttons to add/remove new values?11:33
cedkpokoli: the widget should be the multiselection widget11:38
cedkpokoli: it is more about storing11:38
cedkpokoli: for me the definition should be like Selection but with a storage model name to store the values11:39
cedkpokoli: like a Many2Many but the target is a char not a Many2One11:39
pokoliACTION bbl11:40
-!- t2arc(~t2arc@85.100.60.70) has joined #tryton12:15
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton12:20
-!- Timitos(~kpreisler@tmo-096-64.customers.d1-online.com) has joined #tryton12:36
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton13:09
-!- smorillo(8965d4d8@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.212.216) has joined #tryton14:26
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton14:57
andrespolitihi, i'm trying to do a search by name in country pool, but the name field is translatable. The user inputs a spanish name but the backend searches in english, so the search fails. How can i search in the proper language?14:59
cedkandrespoliti: the ORM always search in the language set in the context15:04
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton15:35
-!- smorillo(8965d4d8@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.212.216) has joined #tryton15:48
-!- Timitos(~kpreisler@tmo-096-64.customers.d1-online.com) has joined #tryton16:06
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton16:34
-!- smorillo(9effefda@gateway/web/cgi-irc/kiwiirc.com/ip.158.255.239.218) has joined #tryton16:44
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton16:49
-!- smorillo(9effefda@gateway/web/cgi-irc/kiwiirc.com/ip.158.255.239.218) has joined #tryton16:57
pokolicedk: for me what you propose is something similar to an EAV model17:03
pokolicedk: is not better to use Arrays when possible for storing Chars and Integer values?17:03
pokoliindeed I agree that for a list of Many2One is better to use a xxx2Many field17:04
-!- smorillo(8965d4d8@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.212.216) has joined #tryton17:10
cedkpokoli: not sure it is bad because the options are limited17:14
cedkpokoli: also this is indexable while array requires special indexes and operators17:14
-!- thaneor1(~lenovo3@r179-25-171-69.dialup.adsl.anteldata.net.uy) has joined #tryton17:46
pokolicedk: I see on benefit: using a separate table will be more flexible as the target field can have extra constraints (using a pyson domain for example). I imagine this will be harder to define using an Array field18:50
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton21:01
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton21:33
csotelohi all21:39
csotelois there a way to do automatic adjustment. I mean. I have an issue related to a sale on foreign currency, when I do a sale on foreign currency or payment on foreign currency, cause of change type, less than 0.10, then extra payment of 0.0x is required, is there a way to make a round and push difference to the adjustment? bests21:39
cedkcsotelo: you must use a write-off when doing reconciliation21:48
csotelocedk, sorry for this dumb question? is there a way to do it without the wizard?21:52
csoteloI mean, on payment registering ..21:53
cedkcsotelo: not for now21:53
csoteloI am looking the way on do that with out the wizrad :/21:53
csotelocedk, people... I have notice one think on date widgets related to year, as example, a birth date of some is '1980-01-01', if I write on a date widget '80/01/01', it gives me '2080/01/01' instead of '1980/01/01', is this a default behavior or is there a way to configure it?22:01
csotelothanks22:01
cedkcsotelo: see dateutil library22:02
cedkcsotelo: but people can not expect to have strict data when encoding fuzzy one22:02
csotelocedk, you are completely right22:04
cedkcsotelo: but I guess the parse use the current century to fill missing data22:04
cedkcsotelo: you can read https://discuss.tryton.org/t/best-practice-for-multi-currency-set-up/98922:06
csotelocedk, thanks!!22:09
-!- buxy(~rhertzog@mail.vm.ouaza.com) has joined #tryton22:34

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