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

chat.freenode.net #tryton log beginning Tue May 10 00:00:01 CEST 2016
2016-05-10 00:11 -!- shrox(~shrox@182.56.121.106) has joined #tryton
2016-05-10 01:01 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-05-10 02:48 -!- smarro(~sebastian@190.14.157.18) has joined #tryton
2016-05-10 03:15 -!- shrox(~shrox@182.56.72.217) has joined #tryton
2016-05-10 03:48 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton
2016-05-10 04:00 -!- shrox(~shrox@182.56.105.106) has joined #tryton
2016-05-10 04:56 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-05-10 05:27 -!- shrox(~shrox@182.56.96.11) has joined #tryton
2016-05-10 06:16 -!- shrox(~shrox@182.56.124.241) has joined #tryton
2016-05-10 06:47 -!- shrox(~shrox@182.56.91.111) has joined #tryton
2016-05-10 07:04 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton
2016-05-10 07:06 <prayashm> need 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?
2016-05-10 07:21 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton
2016-05-10 07:24 -!- shrox(~shrox@182.56.98.119) has joined #tryton
2016-05-10 07:32 -!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton
2016-05-10 07:40 -!- frispete(~frispete@p54A90CE5.dip0.t-ipconnect.de) has joined #tryton
2016-05-10 07:47 <prayashm> Oops. demo4.1.tryton.org doesn't exist maybe. Switched branch. Works fine.
2016-05-10 07:49 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-05-10 07:54 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-05-10 08:20 <cedk> prayashm: no odds number releases are developement so there is no demo
2016-05-10 08:36 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2016-05-10 08:47 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-05-10 09:09 -!- shrox(~shrox@182.56.95.140) has joined #tryton
2016-05-10 09:31 -!- prayashm(~prayashm@27.49.129.23) has joined #tryton
2016-05-10 09:31 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton
2016-05-10 09:55 -!- shrox(~shrox@182.56.112.252) has joined #tryton
2016-05-10 10:39 -!- jcros(6d123716@gateway/web/cgi-irc/kiwiirc.com/ip.109.18.55.22) has joined #tryton
2016-05-10 12:14 -!- nicoe(~nicoe@2a02:a03f:3005:6c00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2016-05-10 12:23 -!- shrox(~shrox@182.56.75.15) has joined #tryton
2016-05-10 12:56 -!- shrox(~shrox@182.56.68.110) has joined #tryton
2016-05-10 13:05 -!- mariomop(~quassel@181.90.131.196) has joined #tryton
2016-05-10 13:35 -!- mariomop(~quassel@181.90.131.196) has joined #tryton
2016-05-10 15:15 -!- kstenger(~karla@r186-54-29-32.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-05-10 15:50 -!- bvillasanti(~bvillasan@190.105.75.139) has joined #tryton
2016-05-10 16:12 <mrichez> hi, 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 ?
2016-05-10 16:15 <cedk> mrichez: maybe you have override the create or write method?
2016-05-10 16:19 <mrichez> no, i don't override those methods
2016-05-10 16:21 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2016-05-10 16:22 <cedk> mrichez: are you sure the default value is exactly the same as one of the selecion value?
2016-05-10 16:23 <mrichez> yes exactly the same. My code is quite simple, i don't understand this strange behaviour... it was working before (but before what...)
2016-05-10 16:23 <mrichez> should a function used by a cron defined as @classmethod ?
2016-05-10 16:25 <cedk> mrichez: yes
2016-05-10 16:27 <cedk> mrichez: did you define a trigger?
2016-05-10 16:28 <mrichez> only a cron
2016-05-10 16:30 <mrichez> i'm still searching, i'll retry to recode my module step by step until it will reproduce this behaviour
2016-05-10 16:32 <cedk> mrichez: maybe you can put a link?
2016-05-10 16:38 <mrichez> on bitbucket ?
2016-05-10 16:40 <cedk> mrichez: where ever you want
2016-05-10 16:41 <mrichez> https://bitbucket.org/saluc/mies
2016-05-10 16:41 -!- kstenger1(~karla@r186-48-245-198.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-05-10 16:45 <cedk> mrichez: which model?
2016-05-10 16:45 <mrichez> mies.py
2016-05-10 16:46 <mrichez> Mies
2016-05-10 16:46 <cedk> mrichez: it is because you defined a button 'validate'
2016-05-10 16:46 <cedk> mrichez: 'validate' is a reserved function for Model integrity check
2016-05-10 16:47 <mrichez> it's a keyword ?
2016-05-10 16:47 <cedk> mrichez: so it is called by create and write
2016-05-10 16:47 <cedk> mrichez: not really a keyword but an existing method from ModelStorage
2016-05-10 16:48 <cedk> mrichez: usually in such case we name the button: validate_mies
2016-05-10 16:48 <mrichez> wow, i don't knew
2016-05-10 16:48 <mrichez> step by step, i'll learn :-)
2016-05-10 16:49 <mrichez> thank you for help!
2016-05-10 16:51 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton
2016-05-10 16:56 -!- sisalp(~sisalpuse@boxoo.sisalp.net) has joined #tryton
2016-05-10 17:43 -!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton
2016-05-10 17:44 <andrespoliti> hi, 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?
2016-05-10 17:45 <cedk> andrespoliti: you can not
2016-05-10 17:45 <cedk> andrespoliti: it is a mistake in the doc
2016-05-10 17:50 <andrespoliti> i have fields in class A inherited from another class. How can i make them required only in class A?
2016-05-10 17:54 <cedk> andrespoliti: you can not
2016-05-10 17:54 <cedk> andrespoliti: there is no inheritage in Tryton, it is extention
2016-05-10 18:39 -!- smarro(~sebastian@186.135.133.210) has joined #tryton
2016-05-10 19:07 -!- smarro(~sebastian@186.135.133.210) has joined #tryton
2016-05-10 19:26 -!- lucasSlam(beb0eb74@gateway/web/freenode/session) has joined #tryton
2016-05-10 19:27 <lucasSlam> Hellow, i have a question?
2016-05-10 19:28 <lucasSlam> about Product unique ?
2016-05-10 19:30 <lucasSlam> in Tryton version 3.8 module product , code and description are not unique ?
2016-05-10 19:31 <cedk> lucasSlam: no, it is done on purpose
2016-05-10 19:32 <cedk> lucasSlam: most of the time unique constraints are blockers so we create one only when it is strictly needed
2016-05-10 19:34 -!- bvillasanti(~bvillasan@190.105.75.139) has joined #tryton
2016-05-10 19:35 <cedk> lucasSlam: but you can add one if you want with a custom module
2016-05-10 19:35 <lucasSlam> ok. i need to crate one. how can i do
2016-05-10 19:35 <lucasSlam> ?
2016-05-10 19:36 <cedk> lucasSlam: you can look at how it is done in party module for the party code
2016-05-10 19:37 <cedk> lucasSlam: but I suggest you to first think if you really need such constraints
2016-05-10 19:37 <lucasSlam> ok it is what I imagined
2016-05-10 19:38 -!- bvillasanti(~bvillasan@190.105.75.139) has joined #tryton
2016-05-10 19:40 <lucasSlam> yes, 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 registered
2016-05-10 19:41 <cedk> lucasSlam: I think there is a process issue here if people don't know if a product is already created or not
2016-05-10 19:44 <lucasSlam> yes, of course. the mistake is produced for their own way working.
2016-05-10 19:45 <lucasSlam> and Tryton is the solution to their product registration process
2016-05-10 19:47 <lucasSlam> thanks Cedrik
2016-05-10 19:48 <cedk> lucasSlam: probably a initial search is better than a constraint
2016-05-10 19:48 <cedk> lucasSlam: because the constraint is raised after filled the form so the work is already spent
2016-05-10 19:54 <lucasSlam> Good point but you have to add a new process. donkey user
2016-05-10 19:54 -!- lukio(~lukio@88-38-16-190.fibertel.com.ar) has joined #tryton
2016-05-10 19:55 <lucasSlam> user Supermarket ;)
2016-05-10 19:56 <cedk> lucasSlam: usually it is advanced users who create products because it requires full knowledge of the company
2016-05-10 19:58 <lucasSlam> We live in South America. Welcome to the third world
2016-05-10 19:59 <cedk> lucasSlam: don't see the link
2016-05-10 20:05 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-05-10 20:11 <lukio> hi cedk! i
2016-05-10 20:13 <lukio> i'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.
2016-05-10 20:15 <lukio> I see that it was incorporated the KEEPALIVE on socket at tryton client since dicember 2014.
2016-05-10 20:16 <lukio> http://hg.tryton.org/tryton/rev/a7b7d0f30fe0
2016-05-10 20:16 <cedk> lukio: it looks like the connection is dropped without notification
2016-05-10 20:17 <lukio> We 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.
2016-05-10 20:18 <lukio> We set the timeout of the server to 3600.
2016-05-10 20:20 <cedk> lukio: it is the OS who is responsible to send keep-alive packets
2016-05-10 20:22 <cedk> lukio: see http://www.tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/#usingkeepalive
2016-05-10 20:24 <cedk> ACTION bbl
2016-05-10 20:26 <lukio> cedk: 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 seconds
2016-05-10 20:26 <lukio> cedk: http://stackoverflow.com/questions/12248132/how-to-change-tcp-keepalive-timer-using-python-script
2016-05-10 20:28 <lukio> cedk: perhaps, at the tryton client we can implement something like this:
2016-05-10 20:28 <lukio> It activates after 1 second (after_idle_sec) of idleness,
2016-05-10 20:28 <lukio> then sends a keepalive ping once every 3 seconds (interval_sec),
2016-05-10 20:28 <lukio> and closes the connection after 5 failed ping (max_fails), or 15 seconds
2016-05-10 20:28 <lukio> """
2016-05-10 20:28 <lukio> sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
2016-05-10 20:28 <lukio> sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, after_idle_sec)
2016-05-10 20:28 <lukio> sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, interval_sec)
2016-05-10 20:28 <lukio> sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, max_fails)
2016-05-10 20:29 <lukio> so we do not depend on the implementation of the OS.
2016-05-10 21:12 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-05-10 21:51 -!- perilla(~perilla@corp-190-57-169-210-cue.puntonet.ec) has joined #tryton
2016-05-10 22:16 <cedk> lukio: I don't see why the client should be customized, those parameters depend on the network of the OS
2016-05-10 22:38 <lukio> cedk: are you talking about of the OS of the client or OS of the server?
2016-05-10 22:43 -!- lukio(~lukio@88-38-16-190.fibertel.com.ar) has left #tryton
2016-05-10 22:51 -!- bvillasanti(~bvillasan@190.105.75.139) has joined #tryton

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