IRC logs of #tryton for Thursday, 2014-07-31

chat.freenode.net #tryton log beginning Thu Jul 31 00:00:02 CEST 2014
-!- digitalsatori(~Thunderbi@101.87.130.104) has joined #tryton04:25
-!- smarro(~sebastian@201.251.135.150) has joined #tryton05:09
-!- VaticanCameos(~pritishc@182.68.76.172) has joined #tryton06:38
VaticanCameoshttp://doc.tryton.org/1.0/trytond/doc/models.html are these instance attributes of Model classes from tryton 1.0 still around in 3.2?06:38
-!- frispete(~frispete@p54A91C94.dip0.t-ipconnect.de) has joined #tryton06:40
VaticanCameosHmm, it seems that they are, but split into different classes.06:45
-!- VaticanCameos(~pritishc@182.69.47.223) has joined #tryton07:11
-!- digitalsatori(~Thunderbi@101.87.130.104) has joined #tryton07:43
-!- grasbauer(~jan@dslb-092-078-071-134.092.078.pools.vodafone-ip.de) has joined #tryton07:56
-!- pobsteta(~Thunderbi@37.160.58.63) has joined #tryton08:15
-!- pjstevns(~Thunderbi@2001:981:7170:1:681a:72a8:67c5:9544) has joined #tryton08:54
-!- nicoe(~nicoe@85.26.36.239) has joined #tryton09:02
-!- jeancavallo(~giovanni@LPuteaux-656-01-230-52.w80-12.abo.wanadoo.fr) has joined #tryton09:11
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton09:28
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:40
-!- pobsteta(~Thunderbi@37.161.238.107) has joined #tryton09:51
-!- hiaselhans(~Thunderbi@chello084113193201.6.14.vie.surfer.at) has joined #tryton10:02
-!- mar(~marius@v100.nfq.lt) has joined #tryton10:21
-!- VaticanCameos(~pritishc@182.68.199.205) has joined #tryton11:04
-!- lfm(~meanmicio@18.Red-83-42-32.dynamicIP.rima-tde.net) has joined #tryton11:20
-!- pobsteta(~Thunderbi@37.161.238.107) has joined #tryton11:39
-!- pobsteta(~Thunderbi@37.161.238.107) has joined #tryton11:49
-!- pobsteta(~Thunderbi@37.161.238.107) has joined #tryton12:07
-!- mariomop(~quassel@host212.186-109-105.telecom.net.ar) has joined #tryton12:48
-!- pobsteta(~Thunderbi@37.162.243.23) has joined #tryton13:43
-!- kstenger(~karla@200.124.209.158) has joined #tryton13:49
-!- jeancavallo(~giovanni@LPuteaux-656-01-230-52.w80-12.abo.wanadoo.fr) has joined #tryton13:57
marhow do I make field required to fill only in some state?14:06
marstateA -> stateB -> stateC, and I want that field would be required in stateB+14:06
marbut if I set required: Eval('state') == stateB, I'm unable to transition into stateB?14:07
cedkmar: you must use the states attribute14:09
cedkmar: http://doc.tryton.org/3.2/trytond/doc/ref/models/fields.html?highlight=states#trytond.model.fields.Field.states14:09
cedkrequired is only boolean: http://doc.tryton.org/3.2/trytond/doc/ref/models/fields.html?highlight=required#trytond.model.fields.Field.required14:10
marcedk, so I use states, but I still get required err14:16
maron transition into stateB14:16
cedkmar: of course if the field is not set prior to the transition14:17
-!- smarro(~sebastian@200.107.230.29) has joined #tryton14:23
cedkI'm thinking about a kind of prevalidation on the button for this kind of design14:31
marI believe invoice_date uses such design14:45
marhttp://hg.tryton.org/trytond/trytond/modules/account_invoice/file/28ca68f43666/invoice.py#l7514:45
cedkmar: except it is always set14:56
cedkduring the transition14:56
-!- frispete_(~frispete@p54A91C94.dip0.t-ipconnect.de) has joined #tryton15:14
-!- leio_(~leio@gentoo/developer/leio) has joined #tryton15:14
-!- pilou(~pilou@181.204.19.93.rev.sfr.net) has joined #tryton15:15
-!- pilou(~pilou@pdpc/supporter/active/pilou) has joined #tryton15:15
-!- cthuluh(jca@chomsky.autogeree.net) has joined #tryton15:15
-!- zultron(~zultron@99-190-134-148.lightspeed.austtx.sbcglobal.net) has joined #tryton15:16
-!- VaticanCameos(~pritishc@182.68.187.4) has joined #tryton15:33
-!- pjstevns(~Thunderbi@2001:981:7170:1:681a:72a8:67c5:9544) has joined #tryton15:44
-!- newzen(~newzen@190.205.244.127) has joined #tryton16:00
-!- gremly(~gremly@190.85.36.58) has joined #tryton16:20
-!- jeancavallo(~giovanni@bob75-9-88-181-2-176.fbx.proxad.net) has joined #tryton16:42
kstengerHello all, in this domain clause ('company', '=', Eval('context', {}).get('company', -1)), if 'company' is not set in 'context', then the current domain will look for ('company', '=', -1), does this mean all existing companies will match or that none will?16:43
pokolikstenger: none16:58
kstengerthanks pokoli16:59
pokolikstenger: sorry, not sure know... xD16:59
kstengerhaha ok :D17:00
pokolikstenger: none, none, as will search for company = -1, and all ids are positives on the database17:00
kstengerok, I wasn't sure, because on some cases into the xml -1 means "all"17:01
kstengerso I guess it's just a short for None :)17:02
-!- alisonken1lap3(~alisonken@18.18.ultimate-int.uia.net) has joined #tryton17:32
-!- digitalsatori(~Thunderbi@116.234.181.110) has joined #tryton17:35
-!- ronaldm(~ronaldm@197.221.242.13) has joined #tryton17:50
-!- prksh(~prksh@180.188.247.63) has joined #tryton18:09
prkshhello, I was trying to make integer property field and I got “Not Implemented” error. why so? Why only char, selection, numeric and m2o accepted?18:14
pokoliprksh: why you need a property?18:16
prkshpokoli: to save company specific data, thats what  it does right?18:18
pokoliprksh: yes currently, but properties will be removed in the future18:18
pokoliprksh: have a look at https://groups.google.com/forum/#!topic/tryton-dev/J3sAHStDC_w18:19
-!- aasnan(~angel@6.Red-83-56-189.dynamicIP.rima-tde.net) has joined #tryton18:22
-!- angelnan(~angel@6.Red-83-56-189.dynamicIP.rima-tde.net) has joined #tryton18:26
prkshpokoli: Aah! got the idea. So I can implement this even without property.18:27
prkshpokoli: many thanks18:27
pokoliprksh: yes you can, you're welcome18:28
-!- aasnan(~angel@6.Red-83-56-189.dynamicIP.rima-tde.net) has joined #tryton18:38
-!- angelnan(~angel@6.Red-83-56-189.dynamicIP.rima-tde.net) has joined #tryton18:40
-!- aasnan(~angel@6.Red-83-56-189.dynamicIP.rima-tde.net) has joined #tryton18:40
-!- aasnan(~angel@6.Red-83-56-189.dynamicIP.rima-tde.net) has joined #tryton18:42
-!- meanmicio(~meanmicio@fsf/member/meanmicio) has joined #tryton18:58
-!- pjstevns(~Thunderbi@2001:981:7170:1:681a:72a8:67c5:9544) has joined #tryton20:07
-!- aasnan(~angel@6.Red-83-56-189.dynamicIP.rima-tde.net) has joined #tryton21:38
-!- aasnan(~angel@6.Red-83-56-189.dynamicIP.rima-tde.net) has left #tryton21:39
-!- Telesight(~anthony@77-175-159-159.FTTH.ispfabriek.nl) has joined #tryton21:54
-!- xulfi(~quassel@mbl-109-59-126.dsl.net.pk) has joined #tryton22:06
grasbauerin whats new in 3.2 is statet that I can write "different values to many sets of records" - but I'm to dumb to pass the right parameters22:18
grasbauerwrite([list_of_records], {dictionary_with_values}) writes the values of the dictionary to all records of the list22:19
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:20
grasbauerhow to pass diffent records with different values?22:20
kstengergrasbauer: from this http://doc.tryton.org/3.2/trytond/doc/ref/models/models.html?highlight=write#trytond.model.ModelStorage.write it seems you can pass reconds and values several times22:25
kstengerrecords*22:25
grasbauerkstenger: thats right - stupid question ;)22:26
kstengernot stupid to me, still learning about tryton here :)22:27
kstengergood luck with it22:27

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