IRC logs of #tryton for Tuesday, 2010-06-15

chat.freenode.net #tryton log beginning Tue Jun 15 00:00:03 CEST 2010
2010-06-15 00:18 -!- tekoholic(~quassel@184-96-4-5.hlrn.qwest.net) has joined #tryton
2010-06-15 00:39 -!- zodman(43dfece7@gateway/web/freenode/ip.67.223.236.231) has joined #tryton
2010-06-15 01:45 -!- zodman(43dfece7@gateway/web/freenode/ip.67.223.236.231) has joined #tryton
2010-06-15 03:20 -!- gremly(~gremly@190.24.121.218) has joined #tryton
2010-06-15 04:08 -!- ebanders(~ebanders@c-66-41-121-0.hsd1.mn.comcast.net) has joined #tryton
2010-06-15 05:17 -!- gremly(~gremly@190.24.121.218) has joined #tryton
2010-06-15 05:18 -!- yangoon(~mathiasb@p549F6EF2.dip.t-dialin.net) has joined #tryton
2010-06-15 06:05 -!- gremly(~gremly@190.24.127.20) has joined #tryton
2010-06-15 06:58 -!- mr_amit(~amit@117.254.182.171) has joined #tryton
2010-06-15 07:20 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-06-15 07:37 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-06-15 08:34 -!- eLBati(~elbati@94.162.84.84) has joined #tryton
2010-06-15 09:09 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-06-15 09:47 -!- essich(~essich@p4FCF8C07.dip0.t-ipconnect.de) has joined #tryton
2010-06-15 09:59 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton
2010-06-15 10:07 -!- Timitos(~timitos@88.217.184.172) has joined #tryton
2010-06-15 10:28 -!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton
2010-06-15 10:54 -!- Shalabh_OL(~shalabh@122.176.50.143) has joined #tryton
2010-06-15 11:09 -!- wedo(~wedo@77.31.188.232) has joined #tryton
2010-06-15 11:09 <Shalabh_OL> Hi, i need to apply a domain on a field 'f1' (which is many2one from ir.model.field) of a model 'xyz'.
2010-06-15 11:09 <Shalabh_OL> This model 'xyz' also contains a many2one field 'f2' to another model 'abc'.
2010-06-15 11:09 <Shalabh_OL> This model 'abc' has a many2one field 'f3' to ir.model.
2010-06-15 11:09 <Shalabh_OL> So, the domain on field 'f1' should be such that it has only the fields of the model selected in field 'f3'.
2010-06-15 11:09 <Shalabh_OL> Please help how to go about this??
2010-06-15 11:10 <Shalabh_OL> or in simple words how can a domain be applied based on the value of a field in the parent form?
2010-06-15 11:13 <udono> Shalabh_OL: Hi, did you try (1.4 Syntax): globals().get('_parent_f3')
2010-06-15 11:15 <udono> Shalabh_OL: globals().get('_parent_abc.f3')
2010-06-15 11:18 <Shalabh_OL> udono: the abc in _parent_abc is model name or class name?
2010-06-15 11:19 <udono> Shalabh_OL: with PYSON something like this: ('f1', '=', Get(Eval('_parent_abc', {}), 'f3'))
2010-06-15 11:20 <udono> Shalabh_OL: abc, seems neither model nor class name. It is the name of the field in parent model, I guess. But Iam unsure. Try to grep -R _parent *
2010-06-15 11:25 <Shalabh_OL> udono: does the empty dictionary above has to left as it is or it must contain something?
2010-06-15 11:27 <udono> Shalabh_OL: http://doc.tryton.org/1.6/trytond/doc/ref/pyson.html#trytond.pyson.Eval
2010-06-15 11:30 <udono> Shalabh_OL: Iam unsure if I understand your example.
2010-06-15 11:34 <Shalabh_OL> udono: what dis parent implies?? Is it the name of class or model??
2010-06-15 11:37 <udono> Shalabh_OL: I do not exactly know. It is not documented. I can just guess and try and use grep. I don't like to tell you wrong things. Maybe better waiting for cedk?
2010-06-15 11:38 <Shalabh_OL> udono: ok no probs, can you tell me how to use the grep statement?
2010-06-15 11:38 <udono> Shalabh_OL: Have you Linux?
2010-06-15 11:38 <Shalabh_OL> udono: ya
2010-06-15 11:39 <udono> Shalabh_OL: then change into the trytond/trytond/modules folder
2010-06-15 11:39 <udono> Shalabh_OL: there you do:
2010-06-15 11:39 <Shalabh_OL> udono: ok then
2010-06-15 11:39 <udono> Shalabh_OL: grep -R "_parent" *
2010-06-15 11:40 <udono> then you can examine the modules where _parent is used.
2010-06-15 11:41 <Shalabh_OL> udono: what is this _parent, is it some model or class's name or it has to be left like this
2010-06-15 11:42 <Shalabh_OL> udono: ok, i got it , thnx
2010-06-15 11:44 -!- Timitos(~timitos@88.217.184.172) has joined #tryton
2010-06-15 11:46 <Shalabh_OL> udono: again thanks, i got the domain working. :)
2010-06-15 11:46 <udono> Shalabh_OL: it is a prefix for a field in a domain, which will be evaluated, AFAIK
2010-06-15 12:54 -!- Timitos(~timitos@88.217.184.172) has joined #tryton
2010-06-15 13:24 -!- pigster(~pavel@firma.tkc-as.cz) has joined #tryton
2010-06-15 13:26 <pigster> hi, small question, is it possible to get documents (sales/invoices/packing lists ...) through WebDAV grouped by analytical account they belongs to?
2010-06-15 13:27 <pigster> something like /Accounts/Account 1/Sales/sale-1/sale.odt
2010-06-15 13:27 -!- Timitos(~timitos@88.217.184.172) has joined #tryton
2010-06-15 14:04 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton
2010-06-15 14:36 -!- paepke(~paepke@p4FEB0158.dip0.t-ipconnect.de) has joined #tryton
2010-06-15 14:41 -!- ebanders(~ebanders@c-66-41-121-0.hsd1.mn.comcast.net) has joined #tryton
2010-06-15 14:45 -!- eLBati(~elbati@93.37.67.50) has joined #tryton
2010-06-15 14:57 -!- iiping(~iiping@119.94.202.201) has left #tryton
2010-06-15 15:32 -!- Timitos(~timitos@88.217.184.172) has joined #tryton
2010-06-15 15:39 -!- Shalabh_OL(~shalabh@122.176.50.143) has left #tryton
2010-06-15 15:46 -!- pepeu(~manuel@201.155.193.192) has joined #tryton
2010-06-15 15:54 <cedk> pigster: not yet
2010-06-15 16:32 -!- paepke(~paepke@p4FEB0158.dip0.t-ipconnect.de) has joined #tryton
2010-06-15 16:36 -!- Red15(~red15@unaffiliated/red15) has joined #tryton
2010-06-15 16:38 -!- paepke(~paepke@p4FEB0158.dip0.t-ipconnect.de) has left #tryton
2010-06-15 16:40 <yangoon> cedk: hi
2010-06-15 16:41 <yangoon> cedk: I am just looking at chnagesets for "searcher on Function fields take only one domain clause as argument "
2010-06-15 16:41 <yangoon> cedk: I don't see a chnage in purchase for search_supplier
2010-06-15 16:42 <yangoon> did you just miss it or does it have a special cause?
2010-06-15 16:43 <cedk> yangoon: it takes only one clause
2010-06-15 16:44 <yangoon> cedk: so you just didn't want to rename the argument?
2010-06-15 16:45 <cedk> yangoon: it is named clause
2010-06-15 16:46 <yangoon> cedk: ah yes, I see, I was on previous revision, thx
2010-06-15 18:04 -!- tekoholic(~quassel@184-96-4-5.hlrn.qwest.net) has joined #tryton
2010-06-15 19:08 -!- paepke(~paepke@p5B32CCC2.dip.t-dialin.net) has joined #tryton
2010-06-15 19:18 -!- zodman(43dfece7@gateway/web/freenode/ip.67.223.236.231) has joined #tryton
2010-06-15 19:25 -!- zodman(~Miranda@67.223.236.231) has joined #tryton
2010-06-15 19:34 -!- eLBati(~elbati@94.163.94.111) has joined #tryton
2010-06-15 19:38 -!- zodman(~Miranda@foresight/developer/zodman) has joined #tryton
2010-06-15 19:51 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-06-15 20:24 -!- Timitos(~timitos@88.217.184.172) has joined #tryton
2010-06-15 20:58 -!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton
2010-06-15 21:06 -!- enlightx(~enlightx@dynamic-adsl-84-220-84-199.clienti.tiscali.it) has joined #tryton
2010-06-15 22:06 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton
2010-06-15 22:33 -!- gremly(~gremly@190.24.127.20) has joined #tryton

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