IRC logs of #tryton for Tuesday, 2015-06-16

chat.freenode.net #tryton log beginning Tue Jun 16 00:00:02 CEST 2015
2015-06-16 00:17 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-06-16 00:30 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-06-16 00:47 -!- jcnorman_(~jcnorman@50.117.78.159) has joined #tryton
2015-06-16 01:25 -!- jcnorman(~jcnorman@72.13.87.204) has joined #tryton
2015-06-16 01:40 -!- alimon(~alimon@134.134.139.76) has joined #tryton
2015-06-16 03:10 -!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton
2015-06-16 05:45 -!- plantian(~ian@174-134-217-28.res.bhn.net) has joined #tryton
2015-06-16 05:46 -!- sunny_dealmeida(~quassel@210.89.41.169) has joined #tryton
2015-06-16 05:58 -!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton
2015-06-16 06:09 -!- digitalsatori1(~Thunderbi@114.92.196.106) has joined #tryton
2015-06-16 06:22 -!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton
2015-06-16 06:23 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-06-16 06:40 -!- frispete_(~frispete@p54A900F1.dip0.t-ipconnect.de) has joined #tryton
2015-06-16 06:52 -!- zeittunnel(~234234234@p5DD18253.dip0.t-ipconnect.de) has joined #tryton
2015-06-16 07:00 -!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton
2015-06-16 07:01 -!- yangoon(~mathiasb@p549F0E6B.dip0.t-ipconnect.de) has joined #tryton
2015-06-16 07:06 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-06-16 07:51 -!- zeittunnel(~234234234@p5DD1833D.dip0.t-ipconnect.de) has joined #tryton
2015-06-16 08:12 -!- rpit(~ralf@2a02:908:e670:6ac0:56ee:75ff:fe0d:d3c7) has joined #tryton
2015-06-16 08:15 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-06-16 08:32 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-06-16 09:33 -!- nicoe(~nicoe@87.215.31.146) has joined #tryton
2015-06-16 09:42 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-06-16 09:59 -!- Timitos(~kpreisler@77.47.6.170.dynamic.cablesurf.de) has joined #tryton
2015-06-16 10:53 <pokoli> anyone knows how to set the value of a Many2Many field using on_change
2015-06-16 10:53 <pokoli> i'm using the add method but when saving it triggers a create of the target method instead of a set
2015-06-16 10:56 -!- plantian(~ian@174-134-217-28.res.bhn.net) has joined #tryton
2015-06-16 10:57 <cedk> pokoli: which version?
2015-06-16 10:57 <pokoli> cedk: 3.4
2015-06-16 11:00 <cedk> pokoli: you must just set a list of ids
2015-06-16 11:02 -!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton
2015-06-16 11:02 <pokoli> cedk: on the add value? I get a int method is not iterable, cause in 3.4 you specify the index where you want it
2015-06-16 11:03 <pokoli> cedk: same using the index, it expects a dict, but setting the id on the dict has no effect
2015-06-16 11:09 <cedk> pokoli: don't understand
2015-06-16 11:10 -!- royallizard(~chris@62.83.224.254.dyn.user.ono.com) has joined #tryton
2015-06-16 11:12 <pokoli> cedk: http://pastebin.com/wic8iCkF
2015-06-16 11:13 <pokoli> cedk: the create method should recieve a set value instead of a create, because the employee already exists
2015-06-16 11:15 <cedk> pokoli: you can not create record in a m2m
2015-06-16 11:16 <royallizard> Hi. I'm trying to learn how to use on_change_ functions. My problem is that when I try to return {field_name: value} I get a error "assert result is None, func AssertionError: <unbound method library.book.on_change_renter>" I'm confused. Here is the code http://pastebin.com/qpVdvk5b
2015-06-16 11:16 <pokoli> cedk: I don't want to create it, but the client sends a create to the server instead of a set
2015-06-16 11:16 <pokoli> cedk: so it tryies to create a new employee instead of linking with the one that already exists
2015-06-16 11:17 <cedk> pokoli: you create because you send him an 'add'
2015-06-16 11:17 <pokoli> royallizard: on the 3.6 you should directly set the values to the instance (self) and return nothing
2015-06-16 11:17 <cedk> pokoli: as I said you must set the ids
2015-06-16 11:17 <pokoli> cedk: so how can I link it?
2015-06-16 11:18 <cedk> pokoli: first option: http://doc.tryton.org/3.4/trytond/doc/topics/models/fields_on_change.html#on-change-on-change-with-return-values
2015-06-16 11:21 <pokoli> royallizard: http://pastebin.com/7E3S2U2v
2015-06-16 11:21 <pokoli> cedk: ok, I understood, let me try
2015-06-16 11:24 <pokoli> cedk: worked! Thank you very much!
2015-06-16 11:27 <royallizard> pokoli: ok. no error now, but the client doesn't get updated. When I save the record the 'avalaible' field ins't changed either.
2015-06-16 11:28 <pokoli> royallizard: the record wont be changed when you save the record, the values will be updated when you change the other field
2015-06-16 11:29 -!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton
2015-06-16 11:32 <royallizard> ok. The avaialbe bool checkbox is getting updated but the behavior does not seem logical (yet). Thanks.
2015-06-16 11:33 <cedk> royallizard: it is always weird when 2 fields depends on each other when changing
2015-06-16 11:33 <cedk> royallizard: can't you just make one Selection field?
2015-06-16 11:34 <royallizard> I suppose so. Just that I'm following step by step a PDF howto I downloaded. I'm a beginner.
2015-06-16 11:53 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-06-16 13:04 -!- mariomop(~quassel@host183.186-125-119.telecom.net.ar) has joined #tryton
2015-06-16 13:09 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-06-16 13:40 -!- royallizard(~chris@62.83.224.254.dyn.user.ono.com) has left #tryton
2015-06-16 13:46 -!- kstenger(~karla@200.124.209.158) has joined #tryton
2015-06-16 13:47 -!- rpit(~ralf@2a02:908:e670:6ac0:56ee:75ff:fe0d:d3c7) has joined #tryton
2015-06-16 13:59 -!- zeittunnel(~234234234@p5DD1833D.dip0.t-ipconnect.de) has joined #tryton
2015-06-16 14:09 -!- jcnorman(~jcnorman@216.172.148.7) has joined #tryton
2015-06-16 14:13 -!- jcnorman_(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-06-16 14:32 -!- nicoe(~nicoe@87.215.31.146) has joined #tryton
2015-06-16 14:42 -!- juanfe(~juanfe@190.85.115.49) has joined #tryton
2015-06-16 14:46 -!- rpit(~ralf@2a02:908:e670:6ac0:56ee:75ff:fe0d:d3c7) has joined #tryton
2015-06-16 14:57 -!- prakashpandey(~prakashpa@180.188.248.202) has joined #tryton
2015-06-16 14:59 -!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton
2015-06-16 14:59 <prakashpandey> pokoli: I am getting import error while importing Transaction in 3.6
2015-06-16 14:59 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-06-16 15:00 <prakashpandey> pokoli: am I missing something in 3.6?
2015-06-16 15:02 <prakashpandey> pokoli: it looks like cyclic dependency
2015-06-16 15:03 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-06-16 15:03 <prakashpandey> pokoli: sorry to bother you, figured it
2015-06-16 15:03 <pokoli> prakashpandey: there is a solved issue for this
2015-06-16 15:04 <pokoli> prakashpandey: if i rembember correctly
2015-06-16 15:04 <pokoli> prakashpandey: or at least a issue with a path :)
2015-06-16 15:04 <prakashpandey> pokoli: its not released on pypi
2015-06-16 15:04 <prakashpandey> pokoli: yes fix commit is there
2015-06-16 15:31 -!- rpit(~ralf@2a02:908:e670:6ac0:56ee:75ff:fe0d:d3c7) has joined #tryton
2015-06-16 15:43 -!- prakashpandey(~prakashpa@180.188.248.202) has joined #tryton
2015-06-16 15:44 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-06-16 15:56 -!- zeittunnel(~234234234@p5DD19F93.dip0.t-ipconnect.de) has joined #tryton
2015-06-16 16:06 -!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton
2015-06-16 17:19 <cedk> bechamel: do you remember why you are doing a "WHERE CASE ... ELSE FALSE" in http://hg.tryton.org/trytond/rev/e2ccbb50288d
2015-06-16 17:25 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-06-16 17:42 <cedk> bechamel: because for me, we could just have the when clause and conditions directly as in when
2015-06-16 18:15 -!- prakashpandey(~prakashpa@180.188.248.202) has joined #tryton
2015-06-16 18:24 -!- prakashpandey(~prakashpa@180.188.248.202) has joined #tryton
2015-06-16 18:36 -!- mariomop(~quassel@host89.181-1-205.telecom.net.ar) has joined #tryton
2015-06-16 19:13 -!- sunny_dealmeida(~quassel@210.89.41.169) has joined #tryton
2015-06-16 19:31 -!- prakashpandey(~prakashpa@180.188.248.202) has joined #tryton
2015-06-16 19:56 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-06-16 20:14 -!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton
2015-06-16 20:18 -!- prakashpandey(~prakashpa@180.188.248.202) has left #tryton
2015-06-16 20:25 -!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton
2015-06-16 21:02 -!- rpit(~ralf@2a02:908:e670:6ac0:56ee:75ff:fe0d:d3c7) has joined #tryton
2015-06-16 21:25 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-06-16 21:35 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-06-16 21:48 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-06-16 21:50 -!- rpit(~ralf@aftr-37-201-212-119.unity-media.net) has joined #tryton
2015-06-16 22:29 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-06-16 23:03 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-06-16 23:23 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton

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