IRC logs of #tryton for Tuesday, 2016-05-10

chat.freenode.net #tryton log beginning Tue May 10 00:00:01 CEST 2016
-!- shrox(~shrox@182.56.121.106) has joined #tryton00:11
-!- smarro(~sebastian@181.16.7.104) has joined #tryton01:01
-!- smarro(~sebastian@190.14.157.18) has joined #tryton02:48
-!- shrox(~shrox@182.56.72.217) has joined #tryton03:15
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton03:48
-!- shrox(~shrox@182.56.105.106) has joined #tryton04:00
-!- smarro(~sebastian@181.16.7.104) has joined #tryton04:56
-!- shrox(~shrox@182.56.96.11) has joined #tryton05:27
-!- shrox(~shrox@182.56.124.241) has joined #tryton06:16
-!- shrox(~shrox@182.56.91.111) has joined #tryton06:47
-!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton07:04
prayashmneed some help. I cloned the latest version of the tryton client source (4.1.0). Running it. But its unable to connect to the server demo4.1.tryton.org. why is that?07:06
-!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton07:21
-!- shrox(~shrox@182.56.98.119) has joined #tryton07:24
-!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton07:32
-!- frispete(~frispete@p54A90CE5.dip0.t-ipconnect.de) has joined #tryton07:40
prayashmOops. demo4.1.tryton.org doesn't exist maybe. Switched branch. Works fine.07:47
-!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton07:49
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:54
cedkprayashm: no odds number releases are developement so there is no demo08:20
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton08:36
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:47
-!- shrox(~shrox@182.56.95.140) has joined #tryton09:09
-!- prayashm(~prayashm@27.49.129.23) has joined #tryton09:31
-!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton09:31
-!- shrox(~shrox@182.56.112.252) has joined #tryton09:55
-!- jcros(6d123716@gateway/web/cgi-irc/kiwiirc.com/ip.109.18.55.22) has joined #tryton10:39
-!- nicoe(~nicoe@2a02:a03f:3005:6c00:ee55:f9ff:fe7b:f7ac) has joined #tryton12:14
-!- shrox(~shrox@182.56.75.15) has joined #tryton12:23
-!- shrox(~shrox@182.56.68.110) has joined #tryton12:56
-!- mariomop(~quassel@181.90.131.196) has joined #tryton13:05
-!- mariomop(~quassel@181.90.131.196) has joined #tryton13:35
-!- kstenger(~karla@r186-54-29-32.dialup.adsl.anteldata.net.uy) has joined #tryton15:15
-!- bvillasanti(~bvillasan@190.105.75.139) has joined #tryton15:50
mrichezhi, i'm trying to understand why my new module is automatically changing state (workflow) from draft to validated when i'm saving my record...There's a default_state = draft. Any suggestion about this behaviour ?16:12
cedkmrichez: maybe you have override the create or write method?16:15
mrichezno, i don't override those methods16:19
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton16:21
cedkmrichez: are you sure the default value is exactly the same as one of the selecion value?16:22
mrichezyes exactly the same. My code is quite simple, i don't understand this strange behaviour... it was working before (but before what...)16:23
mrichezshould a function used by a cron defined as @classmethod ?16:23
cedkmrichez: yes16:25
cedkmrichez: did you define a trigger?16:27
mrichezonly a cron16:28
mrichezi'm still searching, i'll retry to recode my module step by step until it will reproduce this behaviour16:30
cedkmrichez: maybe you can put a link?16:32
mrichezon bitbucket ?16:38
cedkmrichez: where ever you want16:40
mrichezhttps://bitbucket.org/saluc/mies16:41
-!- kstenger1(~karla@r186-48-245-198.dialup.adsl.anteldata.net.uy) has joined #tryton16:41
cedkmrichez: which model?16:45
mrichezmies.py16:45
mrichezMies16:46
cedkmrichez: it is because you defined a button 'validate'16:46
cedkmrichez: 'validate' is a reserved function for Model integrity check16:46
mrichezit's a keyword ?16:47
cedkmrichez: so it is called by create and write16:47
cedkmrichez: not really a keyword but an existing method from ModelStorage16:47
cedkmrichez: usually in such case we name the button: validate_mies16:48
mrichezwow, i don't knew16:48
mrichezstep by step, i'll learn :-)16:48
mrichezthank you for help!16:49
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton16:51
-!- sisalp(~sisalpuse@boxoo.sisalp.net) has joined #tryton16:56
-!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton17:43
andrespolitihi, in the docs for 3.8 it says you can define a field as required in the xml of the view. How can I do this?17:44
cedkandrespoliti: you can not17:45
cedkandrespoliti: it is a mistake in the doc17:45
andrespolitii have fields in class A inherited from another class. How can i make them required only in class A?17:50
cedkandrespoliti: you can not17:54
cedkandrespoliti: there is no inheritage in Tryton, it is extention17:54
-!- smarro(~sebastian@186.135.133.210) has joined #tryton18:39
-!- smarro(~sebastian@186.135.133.210) has joined #tryton19:07
-!- lucasSlam(beb0eb74@gateway/web/freenode/session) has joined #tryton19:26
lucasSlamHellow, i have a question?19:27
lucasSlamabout Product unique ?19:28
lucasSlamin Tryton version 3.8 module product , code and description  are not unique ?19:30
cedklucasSlam: no, it is done on purpose19:31
cedklucasSlam: most of the time unique constraints are blockers so we create one only when it is strictly needed19:32
-!- bvillasanti(~bvillasan@190.105.75.139) has joined #tryton19:34
cedklucasSlam: but you can add one if you want with a custom module19:35
lucasSlamok. i need to crate one. how can i do19:35
lucasSlam?19:35
cedklucasSlam: you can look at how it is done in party module for the party code19:36
cedklucasSlam: but I suggest you to first think if you really need such constraints19:37
lucasSlamok it is what I imagined19:37
-!- bvillasanti(~bvillasan@190.105.75.139) has joined #tryton19:38
lucasSlamyes, y really think so, because the user needs to add more than a thousend products, with a barcode pistol and she dose not know if the product has been already registered19:40
cedklucasSlam: I think there is a process issue here if people don't know if a product is already created or not19:41
lucasSlamyes, of course. the mistake is produced for their own way working.19:44
lucasSlamand Tryton is the solution to their product registration process19:45
lucasSlamthanks Cedrik19:47
cedklucasSlam: probably a initial search is better than a constraint19:48
cedklucasSlam: because the constraint is raised after filled the form so the work is already spent19:48
lucasSlamGood point but you have to add a new process. donkey user19:54
-!- lukio(~lukio@88-38-16-190.fibertel.com.ar) has joined #tryton19:54
lucasSlamuser Supermarket ;)19:55
cedklucasSlam: usually it is advanced users who create products because it requires full knowledge of the company19:56
lucasSlamWe live in South America. Welcome to the third world19:58
cedklucasSlam: don't see the link19:59
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton20:05
lukiohi cedk! i20:11
lukioi'm implementing a tryton server 3.8 in a server that i have at the internet. I do not know why, but the client (debian/ubuntu) if the user dont do anything for 5 minutes (for example) the client freeze.20:13
lukioI see that it was incorporated the KEEPALIVE on socket at tryton client since dicember 2014.20:15
lukiohttp://hg.tryton.org/tryton/rev/a7b7d0f30fe020:16
cedklukio: it looks like the connection is dropped without notification20:16
lukioWe capture traffic with tcpdump and saw that the client it's not sending anything to the server when the user it's not using the application. I can see the keepalive only when the user double click on item menu for example.20:17
lukioWe set the timeout of the server to 3600.20:18
cedklukio: it is the OS who is responsible to send keep-alive packets20:20
cedklukio: see http://www.tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/#usingkeepalive20:22
cedkACTION bbl20:24
lukiocedk: The first two parameters are expressed in seconds, and the last is the pure number. This means that the keepalive routines wait for two hours (7200 secs) before sending the first keepalive probe, and then resend it every 75 seconds20:26
lukiocedk: http://stackoverflow.com/questions/12248132/how-to-change-tcp-keepalive-timer-using-python-script20:26
lukiocedk: perhaps, at the tryton client we can implement something like this:20:28
lukio    It activates after 1 second (after_idle_sec) of idleness,20:28
lukio    then sends a keepalive ping once every 3 seconds (interval_sec),20:28
lukio    and closes the connection after 5 failed ping (max_fails), or 15 seconds20:28
lukio    """20:28
lukio    sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)20:28
lukio    sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, after_idle_sec)20:28
lukio    sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, interval_sec)20:28
lukio    sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, max_fails)20:28
lukioso we do not depend on the implementation of the OS.20:29
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:12
-!- perilla(~perilla@corp-190-57-169-210-cue.puntonet.ec) has joined #tryton21:51
cedklukio: I don't see why the client should be customized, those parameters depend on the network of the OS22:16
lukiocedk: are you talking about of the OS of the client or OS of the server?22:38
-!- lukio(~lukio@88-38-16-190.fibertel.com.ar) has left #tryton22:43
-!- bvillasanti(~bvillasan@190.105.75.139) has joined #tryton22:51

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!