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

chat.freenode.net #tryton log beginning Tue Jun 16 00:00:02 CEST 2015
-!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton00:17
-!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton00:30
-!- jcnorman_(~jcnorman@50.117.78.159) has joined #tryton00:47
-!- jcnorman(~jcnorman@72.13.87.204) has joined #tryton01:25
-!- alimon(~alimon@134.134.139.76) has joined #tryton01:40
-!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton03:10
-!- plantian(~ian@174-134-217-28.res.bhn.net) has joined #tryton05:45
-!- sunny_dealmeida(~quassel@210.89.41.169) has joined #tryton05:46
-!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton05:58
-!- digitalsatori1(~Thunderbi@114.92.196.106) has joined #tryton06:09
-!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton06:22
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton06:23
-!- frispete_(~frispete@p54A900F1.dip0.t-ipconnect.de) has joined #tryton06:40
-!- zeittunnel(~234234234@p5DD18253.dip0.t-ipconnect.de) has joined #tryton06:52
-!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton07:00
-!- yangoon(~mathiasb@p549F0E6B.dip0.t-ipconnect.de) has joined #tryton07:01
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton07:06
-!- zeittunnel(~234234234@p5DD1833D.dip0.t-ipconnect.de) has joined #tryton07:51
-!- rpit(~ralf@2a02:908:e670:6ac0:56ee:75ff:fe0d:d3c7) has joined #tryton08:12
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton08:15
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:32
-!- nicoe(~nicoe@87.215.31.146) has joined #tryton09:33
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton09:42
-!- Timitos(~kpreisler@77.47.6.170.dynamic.cablesurf.de) has joined #tryton09:59
pokolianyone knows how to set the value of a Many2Many field using on_change10:53
pokolii'm using the add method but when saving it triggers a create of the target method instead of a set10:53
-!- plantian(~ian@174-134-217-28.res.bhn.net) has joined #tryton10:56
cedkpokoli: which version?10:57
pokolicedk: 3.410:57
cedkpokoli: you must just set a list of ids11:00
-!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton11:02
pokolicedk: on the add value? I get a int method is not iterable, cause in 3.4 you specify the index where you want it11:02
pokolicedk: same using the index, it expects a dict, but setting the id on the dict has no effect11:03
cedkpokoli: don't understand11:09
-!- royallizard(~chris@62.83.224.254.dyn.user.ono.com) has joined #tryton11:10
pokolicedk: http://pastebin.com/wic8iCkF11:12
pokolicedk: the create method should recieve a set value instead of a create, because the employee already exists11:13
cedkpokoli: you can not create record in a m2m11:15
royallizardHi. 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/qpVdvk5b11:16
pokolicedk: I don't want to create it, but the client sends a create to the server instead of a set11:16
pokolicedk: so it tryies to create a new employee instead of linking with the one that already exists11:16
cedkpokoli: you create because you send him an 'add'11:17
pokoliroyallizard: on the 3.6 you should directly set the values to the instance (self) and return nothing11:17
cedkpokoli: as I said you must set the ids11:17
pokolicedk: so how can I link it?11:17
cedkpokoli: first option: http://doc.tryton.org/3.4/trytond/doc/topics/models/fields_on_change.html#on-change-on-change-with-return-values11:18
pokoliroyallizard: http://pastebin.com/7E3S2U2v11:21
pokolicedk: ok, I understood, let me try11:21
pokolicedk: worked! Thank you very much!11:24
royallizardpokoli: ok. no error now, but the client doesn't get updated. When I save the record the 'avalaible' field ins't changed either.11:27
pokoliroyallizard: the record wont be changed when you save the record, the values will be updated when you change the other field11:28
-!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton11:29
royallizardok. The avaialbe bool checkbox is getting updated but the behavior does not seem logical (yet). Thanks.11:32
cedkroyallizard: it is always weird when 2 fields depends on each other when changing11:33
cedkroyallizard: can't you just make one Selection field?11:33
royallizardI suppose so. Just that I'm following step by step a PDF howto I downloaded. I'm a beginner.11:34
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton11:53
-!- mariomop(~quassel@host183.186-125-119.telecom.net.ar) has joined #tryton13:04
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton13:09
-!- royallizard(~chris@62.83.224.254.dyn.user.ono.com) has left #tryton13:40
-!- kstenger(~karla@200.124.209.158) has joined #tryton13:46
-!- rpit(~ralf@2a02:908:e670:6ac0:56ee:75ff:fe0d:d3c7) has joined #tryton13:47
-!- zeittunnel(~234234234@p5DD1833D.dip0.t-ipconnect.de) has joined #tryton13:59
-!- jcnorman(~jcnorman@216.172.148.7) has joined #tryton14:09
-!- jcnorman_(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton14:13
-!- nicoe(~nicoe@87.215.31.146) has joined #tryton14:32
-!- juanfe(~juanfe@190.85.115.49) has joined #tryton14:42
-!- rpit(~ralf@2a02:908:e670:6ac0:56ee:75ff:fe0d:d3c7) has joined #tryton14:46
-!- prakashpandey(~prakashpa@180.188.248.202) has joined #tryton14:57
-!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton14:59
prakashpandeypokoli: I am getting import error while importing Transaction in 3.614:59
-!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton14:59
prakashpandeypokoli: am I missing something in 3.6?15:00
prakashpandeypokoli: it looks like cyclic dependency15:02
-!- smarro(~sebastian@190.105.93.196) has joined #tryton15:03
prakashpandeypokoli: sorry to bother you, figured it15:03
pokoliprakashpandey: there is a solved issue for this15:03
pokoliprakashpandey: if i rembember correctly15:04
pokoliprakashpandey: or at least a issue with a path :)15:04
prakashpandeypokoli: its not released on pypi15:04
prakashpandeypokoli: yes fix commit is there15:04
-!- rpit(~ralf@2a02:908:e670:6ac0:56ee:75ff:fe0d:d3c7) has joined #tryton15:31
-!- prakashpandey(~prakashpa@180.188.248.202) has joined #tryton15:43
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton15:44
-!- zeittunnel(~234234234@p5DD19F93.dip0.t-ipconnect.de) has joined #tryton15:56
-!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton16:06
cedkbechamel: do you remember why you are doing a "WHERE CASE ... ELSE FALSE" in http://hg.tryton.org/trytond/rev/e2ccbb50288d17:19
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton17:25
cedkbechamel: because for me, we could just have the when clause and conditions directly as in when17:42
-!- prakashpandey(~prakashpa@180.188.248.202) has joined #tryton18:15
-!- prakashpandey(~prakashpa@180.188.248.202) has joined #tryton18:24
-!- mariomop(~quassel@host89.181-1-205.telecom.net.ar) has joined #tryton18:36
-!- sunny_dealmeida(~quassel@210.89.41.169) has joined #tryton19:13
-!- prakashpandey(~prakashpa@180.188.248.202) has joined #tryton19:31
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton19:56
-!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton20:14
-!- prakashpandey(~prakashpa@180.188.248.202) has left #tryton20:18
-!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton20:25
-!- rpit(~ralf@2a02:908:e670:6ac0:56ee:75ff:fe0d:d3c7) has joined #tryton21:02
-!- smarro(~sebastian@190.105.93.196) has joined #tryton21:25
-!- smarro(~sebastian@190.105.93.196) has joined #tryton21:35
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton21:48
-!- rpit(~ralf@aftr-37-201-212-119.unity-media.net) has joined #tryton21:50
-!- smarro(~sebastian@190.105.93.196) has joined #tryton22:29
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton23:03
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:23

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