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 #tryton00:11
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:11
-!- thaneor1(~lenovo3@r179-25-101-170.dialup.adsl.anteldata.net.uy) has joined #tryton02:11
-!- yangoon1(~mathiasb@i59F4B6F6.versanet.de) has joined #tryton04:11
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton06:11
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:11
-!- rpit(~rpit@p200300C88F054700DCF59CAC4CAAA5B3.dip0.t-ipconnect.de) has joined #tryton08:11
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton08:11
-!- smorillo(8965d40d@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.212.13) has joined #tryton08:11
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton08:11
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:11
-!- smorillo(8965d40d@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.212.13) has joined #tryton08:11
-!- Timitos(~kpreisler@tmo-098-27.customers.d1-online.com) has joined #tryton09:11
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 ?09:11
-!- rpit(~rpit@p4FFB7EB5.dip0.t-ipconnect.de) has joined #tryton09:11
mrichezok, found this solution: https://bitbucket.org/nantic/trytond-purchase_request_pending/src/98a3a2744a4de2cda92b9799ed6566b3e4f16178/purchase_request.py?at=default#lines-2810:11
-!- yangoon(~mathiasb@i59F4BF68.versanet.de) has joined #tryton11:11
-!- mariomop(~quassel@host189.186-108-211.telecom.net.ar) has joined #tryton12:11
-!- yangoon(~mathiasb@mue-88-130-75-029.dsl.tropolys.de) has joined #tryton12:11
-!- smorillo(8965d40d@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.212.13) has joined #tryton13:11
-!- csotelo(~csotelo@2800:4b0:4409:cf02:9e0e:964c:3dc8:fe91) has joined #tryton13:11
-!- lucascastro(~lucascast@177-185-139-225.isotelco.net.br) has joined #tryton13:11
-!- thaneor(~lenovo3@r179-25-160-191.dialup.adsl.anteldata.net.uy) has joined #tryton14:11
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton15:11
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton16:11
-!- udono(~udono@188.210.56.229) has joined #tryton17:11
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton17:11
-!- k_valdivia(~k_valdivi@181.176.92.75) has joined #tryton18:11
-!- k_valdivia2(~k_valdivi@181.176.59.30) has joined #tryton18:11
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.18:11
pokolik_valdivia: you should override validate: http://docs.tryton.org/projects/server/en/latest/ref/models/models.html?highlight=validate#trytond.model.ModelStorage.validate18:11
cedkk_valdivia: you could use a domain but it will be hard to make a correct email check with domain operators18:11
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/18:11
-!- lucascastro(~lucascast@201.182.221.154) has joined #tryton19:11
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!19:11
cedkk_valdivia: I guess it will be great to have more operators like len, regexp etc.19:11
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-zgdaznqzxvmtkfgy) has joined #tryton20:11
-!- csotelo(~csotelo@2001:1388:b4b:e3c0:88bb:4861:9e11:fa6a) has joined #tryton20:11
-!- k_valdivia(~k_valdivi@181.176.92.75) has joined #tryton20:11
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-ifvjowxyrnzflchi) has joined #tryton21:11
csotelohello coders, some one has implemented on some module one2one relationship ?21:11
csoteloI have been checking that on the modules and I just seend that on tests21:11
-!- k_valdivia(~k_valdivi@181.176.92.75) has joined #tryton21:11
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:11
-!- k_valdivia(~k_valdivi@181.176.92.75) has joined #tryton22:11
k_valdiviacedk: that would be nice indeed =)22:11
-!- udono1(~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:11
-!- udono1(~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:11
-!- udono1(~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:11
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton22:11
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton22:11
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton22:11
-!- udono1(~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:11
-!- udono1(~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:11
-!- udono1(~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 #tryton23:11
-!- udono2(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton23:11
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton23:11
cedkcsotelo: one2one is a very rare usecase23:11
cedkcsotelo: it never occurs in standard module23:11
csoteloI see23:11

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