IRC logs of #tryton for Tuesday, 2018-11-27

chat.freenode.net #tryton log beginning Tue Nov 27 00:00:01 CET 2018
-!- k_valdivia(~k_valdivi@2800:200:f400:1d68:38a1:62d9:ca8:b2f9) has joined #tryton23:15
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:42
-!- thaneor1(~lenovo3@r179-25-101-170.dialup.adsl.anteldata.net.uy) has joined #tryton01:34
-!- yangoon1(~mathiasb@i59F4B6F6.versanet.de) has joined #tryton03:16
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton05:55
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:05
-!- rpit(~rpit@p200300C88F054700DCF59CAC4CAAA5B3.dip0.t-ipconnect.de) has joined #tryton07:47
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton07:48
-!- smorillo(8965d40d@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.212.13) has joined #tryton07:51
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton07:55
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton07:59
-!- smorillo(8965d40d@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.212.13) has joined #tryton07:59
-!- Timitos(~kpreisler@tmo-098-27.customers.d1-online.com) has joined #tryton08:29
mrichezhi, i'm customizing a module adding a workflow transition.Is there an easy way to update the original model to add this transition in the 'readonly' state of each field ?08:33
-!- rpit(~rpit@p4FFB7EB5.dip0.t-ipconnect.de) has joined #tryton08:55
mrichezok, found this solution: https://bitbucket.org/nantic/trytond-purchase_request_pending/src/98a3a2744a4de2cda92b9799ed6566b3e4f16178/purchase_request.py?at=default#lines-2809:16
-!- yangoon(~mathiasb@i59F4BF68.versanet.de) has joined #tryton10:27
-!- mariomop(~quassel@host189.186-108-211.telecom.net.ar) has joined #tryton11:16
-!- yangoon(~mathiasb@mue-88-130-75-029.dsl.tropolys.de) has joined #tryton11:53
-!- smorillo(8965d40d@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.212.13) has joined #tryton12:10
-!- csotelo(~csotelo@2800:4b0:4409:cf02:9e0e:964c:3dc8:fe91) has joined #tryton12:25
-!- lucascastro(~lucascast@177-185-139-225.isotelco.net.br) has joined #tryton12:35
-!- thaneor(~lenovo3@r179-25-160-191.dialup.adsl.anteldata.net.uy) has joined #tryton13:36
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton14:51
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton15:56
-!- udono(~udono@188.210.56.229) has joined #tryton16:00
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton16:12
-!- k_valdivia(~k_valdivi@181.176.92.75) has joined #tryton17:20
-!- k_valdivia2(~k_valdivi@181.176.59.30) has joined #tryton17:30
k_valdiviaHello community, I'm working with trytond==4.2, is there any way to restrict the input for a particular field? (i.e. make sure the input text is a valid email address). I'm thinking I could overwrite the model's write method and check there, is there a better option? Help me out please. Thanks in advance.17:35
pokolik_valdivia: you should override validate: http://docs.tryton.org/projects/server/en/latest/ref/models/models.html?highlight=validate#trytond.model.ModelStorage.validate17:37
cedkk_valdivia: you could use a domain but it will be hard to make a correct email check with domain operators17:42
cedkalso it is very hard to make email validation: https://haacked.com/archive/2007/08/21/i-knew-how-to-validate-an-email-address-until-i.aspx/17:43
-!- lucascastro(~lucascast@201.182.221.154) has joined #tryton18:06
k_valdiviacedk: it is! Also I made up that whole email validation case. The case I'm dealing with is far more simple than that, Just checking for input length. Pokoli's suggestion sounds more convenient, thank you guys!18:19
cedkk_valdivia: I guess it will be great to have more operators like len, regexp etc.18:29
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-zgdaznqzxvmtkfgy) has joined #tryton19:15
-!- csotelo(~csotelo@2001:1388:b4b:e3c0:88bb:4861:9e11:fa6a) has joined #tryton19:17
-!- k_valdivia(~k_valdivi@181.176.92.75) has joined #tryton19:48
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-ifvjowxyrnzflchi) has joined #tryton20:06
csotelohello coders, some one has implemented on some module one2one relationship ?20:52
csoteloI have been checking that on the modules and I just seend that on tests20:52
-!- k_valdivia(~k_valdivi@181.176.92.75) has joined #tryton20:54
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton21:01
-!- k_valdivia(~k_valdivi@181.176.92.75) has joined #tryton21:02
k_valdiviacedk: that would be nice indeed =)21:03
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton21:04
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton21:07
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton21:09
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton21:13
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton21:15
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton21:18
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton21:20
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton21:22
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton21:23
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton21:41
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton21:44
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton21:46
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton21:49
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton21:52
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton22:08
-!- udono2(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton22:11
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton22:14
cedkcsotelo: one2one is a very rare usecase22:19
cedkcsotelo: it never occurs in standard module22:19
csoteloI see22:26

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