IRC logs of #tryton for Saturday, 2016-04-30

chat.freenode.net #tryton log beginning Sat Apr 30 00:00:01 CEST 2016
-!- jvblasco(~seba@185.39.42.129) has joined #tryton01:25
-!- shrox(shrox@nat/iiit/x-zgvmnfofhfzcjpjv) has joined #tryton01:45
-!- jvblasco(~seba@185.39.42.129) has joined #tryton01:53
-!- shrox(shrox@nat/iiit/x-byxaizltygjmyrrh) has joined #tryton02:21
-!- smarro(~sebastian@181.16.7.104) has joined #tryton02:37
-!- shrox(shrox@nat/iiit/x-dynthyjrojxoifig) has joined #tryton04:16
-!- smarro(~sebastian@181.16.7.104) has joined #tryton04:49
-!- jvblasco(~seba@185.39.42.129) has joined #tryton05:07
-!- kstenger1(~karla@r190-133-91-48.dialup.adsl.anteldata.net.uy) has joined #tryton05:49
-!- leio(~leio@gentoo/developer/leio) has joined #tryton06:41
-!- frispete_(~frispete@p54A90815.dip0.t-ipconnect.de) has joined #tryton07:40
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton09:22
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:40
-!- leio(~leio@gentoo/developer/leio) has joined #tryton10:20
-!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton11:05
-!- niki(~niki@0x3e2c8637.mobile.telia.dk) has joined #tryton11:21
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton12:50
-!- mariomop(~quassel@181.92.5.209) has joined #tryton14:54
-!- leio(~leio@gentoo/developer/leio) has joined #tryton15:49
-!- smarro(~sebastian@181.16.7.104) has joined #tryton15:52
-!- ChkDigit(~u388mw@74.3.144.66) has joined #tryton16:45
-!- leio_(~leio@gentoo/developer/leio) has joined #tryton17:34
-!- kstenger1(~karla@r179-24-185-72.dialup.adsl.anteldata.net.uy) has joined #tryton17:50
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:18
-!- JosDzG(~Thunderbi@201.157.45.34) has joined #tryton23:17
-!- csotelo(~csotelo@190.236.47.77) has joined #tryton23:21
csotelodear coders, I am tryton to do something like     @fields.depends('name.party_target') where name is a relationship field to a Many2One, and whe I access inside the method, with a self.name.party_target on a new item, I am getting AttributeError: 'NoneType' object has no attribute 'party_target'23:24
csoteloany suggesrt?23:24
csotelosuggest*23:25
cedkcsotelo: you must use the _parent_party_target tip23:38
csotelocedk, thanks, let me try23:38
cedkcsotelo: but this value if not always garantee to be set23:38
csotelois there another way?23:38
cedkcsotelo: if it is not enough, you have to create a function field that bring back to the model the target value23:39
cedkcsotelo: _parent only works for record inside a One2Many23:39
csotelosorry for this question.. any sample module with this solution?23:39
cedkcsotelo: I think sale has23:40
cedkcsotelo: but for sure invoice.py23:40
csotelothanks!23:40
-!- smarro(~sebastian@181.16.7.104) has joined #tryton23:45

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