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 #tryton | 23:15 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:42 | |
-!- thaneor1(~lenovo3@r179-25-101-170.dialup.adsl.anteldata.net.uy) has joined #tryton | 01:34 | |
-!- yangoon1(~mathiasb@i59F4B6F6.versanet.de) has joined #tryton | 03:16 | |
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton | 05:55 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:05 | |
-!- rpit(~rpit@p200300C88F054700DCF59CAC4CAAA5B3.dip0.t-ipconnect.de) has joined #tryton | 07:47 | |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 07:48 | |
-!- smorillo(8965d40d@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.212.13) has joined #tryton | 07:51 | |
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton | 07:55 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 07:59 | |
-!- smorillo(8965d40d@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.212.13) has joined #tryton | 07:59 | |
-!- Timitos(~kpreisler@tmo-098-27.customers.d1-online.com) has joined #tryton | 08:29 | |
mrichez | hi, 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 #tryton | 08:55 | |
mrichez | ok, found this solution: https://bitbucket.org/nantic/trytond-purchase_request_pending/src/98a3a2744a4de2cda92b9799ed6566b3e4f16178/purchase_request.py?at=default#lines-28 | 09:16 |
-!- yangoon(~mathiasb@i59F4BF68.versanet.de) has joined #tryton | 10:27 | |
-!- mariomop(~quassel@host189.186-108-211.telecom.net.ar) has joined #tryton | 11:16 | |
-!- yangoon(~mathiasb@mue-88-130-75-029.dsl.tropolys.de) has joined #tryton | 11:53 | |
-!- smorillo(8965d40d@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.212.13) has joined #tryton | 12:10 | |
-!- csotelo(~csotelo@2800:4b0:4409:cf02:9e0e:964c:3dc8:fe91) has joined #tryton | 12:25 | |
-!- lucascastro(~lucascast@177-185-139-225.isotelco.net.br) has joined #tryton | 12:35 | |
-!- thaneor(~lenovo3@r179-25-160-191.dialup.adsl.anteldata.net.uy) has joined #tryton | 13:36 | |
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton | 14:51 | |
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton | 15:56 | |
-!- udono(~udono@188.210.56.229) has joined #tryton | 16:00 | |
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton | 16:12 | |
-!- k_valdivia(~k_valdivi@181.176.92.75) has joined #tryton | 17:20 | |
-!- k_valdivia2(~k_valdivi@181.176.59.30) has joined #tryton | 17:30 | |
k_valdivia | Hello 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 |
pokoli | k_valdivia: you should override validate: http://docs.tryton.org/projects/server/en/latest/ref/models/models.html?highlight=validate#trytond.model.ModelStorage.validate | 17:37 |
cedk | k_valdivia: you could use a domain but it will be hard to make a correct email check with domain operators | 17:42 |
cedk | also 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 #tryton | 18:06 | |
k_valdivia | cedk: 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 |
cedk | k_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 #tryton | 19:15 | |
-!- csotelo(~csotelo@2001:1388:b4b:e3c0:88bb:4861:9e11:fa6a) has joined #tryton | 19:17 | |
-!- k_valdivia(~k_valdivi@181.176.92.75) has joined #tryton | 19:48 | |
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-ifvjowxyrnzflchi) has joined #tryton | 20:06 | |
csotelo | hello coders, some one has implemented on some module one2one relationship ? | 20:52 |
csotelo | I have been checking that on the modules and I just seend that on tests | 20:52 |
-!- k_valdivia(~k_valdivi@181.176.92.75) has joined #tryton | 20:54 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 21:01 | |
-!- k_valdivia(~k_valdivi@181.176.92.75) has joined #tryton | 21:02 | |
k_valdivia | cedk: that would be nice indeed =) | 21:03 |
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 21:04 | |
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 21:07 | |
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 21:09 | |
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 21:13 | |
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 21:15 | |
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 21:18 | |
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 21:20 | |
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton | 21:22 | |
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 21:23 | |
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 21:41 | |
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 21:44 | |
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 21:46 | |
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 21:49 | |
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 21:52 | |
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 22:08 | |
-!- udono2(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 22:11 | |
-!- udono(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 22:14 | |
cedk | csotelo: one2one is a very rare usecase | 22:19 |
cedk | csotelo: it never occurs in standard module | 22:19 |
csotelo | I see | 22:26 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!