chat.freenode.net #tryton log beginning Sat Aug 21 00:00:02 CEST 2010 | ||
2010-08-21 00:16 -!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton | ||
2010-08-21 00:25 -!- zodman(~Miranda@67.223.236.231) has joined #tryton | ||
2010-08-21 00:35 -!- zodman(43dfece7@gateway/web/freenode/ip.67.223.236.231) has joined #tryton | ||
2010-08-21 00:40 -!- zodman(43dfece7@foresight/developer/zodman) has joined #tryton | ||
2010-08-21 01:05 -!- digitalsatori(~tony@116.233.242.63) has joined #tryton | ||
2010-08-21 01:13 -!- eLBati(~elbati@94.160.80.159) has joined #tryton | ||
2010-08-21 04:09 -!- sharoon(~sharoon@vpn34.its.manchester.ac.uk) has joined #tryton | ||
2010-08-21 04:14 -!- gremly(~gremly@190.26.186.242) has joined #tryton | ||
2010-08-21 04:18 -!- digitalsatori(~tony@116.233.242.63) has joined #tryton | ||
2010-08-21 05:19 -!- yangoon(~mathiasb@p549F7548.dip.t-dialin.net) has joined #tryton | ||
2010-08-21 06:24 -!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton | ||
2010-08-21 07:31 -!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton | ||
2010-08-21 09:44 -!- eLBati(~elbati@94.163.109.105) has joined #tryton | ||
2010-08-21 10:35 -!- shalabh_OL(~shalabh@117.197.55.126) has joined #tryton | ||
2010-08-21 10:39 <shalabh_OL> i need to apply a domain on a field which should check value with a reference field's first part | ||
2010-08-21 10:39 <shalabh_OL> please help how to do it? | ||
2010-08-21 10:42 <cedk> shalabh_OL: [(<field name>, <operator>, <value>)] | ||
2010-08-21 10:43 <cedk> shalabh_OL: reference field behaves like a Char | ||
2010-08-21 10:53 <shalabh_OL> cedk: what will the Eval('<ref field>') return? | ||
2010-08-21 10:56 -!- sharkcz(~sharkcz@2001:15c0:6747:160::7) has joined #tryton | ||
2010-08-21 10:58 <cedk> shalabh_OL: '<model name>,<id>' | ||
2010-08-21 10:59 <shalabh_OL> cedk: but it seems to return an Eval object | ||
2010-08-21 11:05 <cedk> shalabh_OL: where do you look? | ||
2010-08-21 11:08 <shalabh_OL> cedk: if it returns a string then split(',') must work on it, but instead it says 'Eval' object has no attribute 'split' | ||
2010-08-21 11:08 <shalabh_OL> please pardon if i am asking something very stupid, i am still a newbie for python | ||
2010-08-21 11:08 <cedk> shalabh_OL: you can not use split in domain | ||
2010-08-21 11:12 <shalabh_OL> cedk: ok | ||
2010-08-21 11:12 <shalabh_OL> referring to the domain structure you wrote above | ||
2010-08-21 11:12 <shalabh_OL> in my case, my <field name> is 'product.product' | ||
2010-08-21 11:12 <shalabh_OL> and <value> from ref field should be something like 'product.product,1' | ||
2010-08-21 11:12 <shalabh_OL> will using 'ilike' in <operator> work? | ||
2010-08-21 11:14 <cedk> shalabh_OL: I think your <field name> is not 'product.product' | ||
2010-08-21 11:19 <cedk> shalabh_OL: copy/paste with pastebin your code | ||
2010-08-21 11:32 <shalabh_OL> cedk: sorry for late reply, i think this much code must do http://pastebin.com/3tw0RkdH | ||
2010-08-21 11:34 <cedk> shalabh_OL: it is not possible | ||
2010-08-21 11:35 <shalabh_OL> cedk: i think you understood what i intend to do, can you suggest some alternative? | ||
2010-08-21 11:36 <cedk> shalabh_OL: you can make a function field that will return the model name part of entity | ||
2010-08-21 11:36 <cedk> shalabh_OL: and you must keep it update with on_change_with | ||
2010-08-21 11:37 <cedk> shalabh_OL: but I don't understand why you create a model_int_name because you have already model | ||
2010-08-21 11:37 <cedk> ACTION bbl | ||
2010-08-21 11:38 <shalabh_OL> cedk: just experimenting something, i dint wanted to have that field | ||
2010-08-21 12:02 <cedk> ACTION back | ||
2010-08-21 12:10 -!- carlos(~carlos@84.120.37.193.dyn.user.ono.com) has joined #tryton | ||
2010-08-21 12:33 -!- sharoon(~sharoon@vpn98.its.manchester.ac.uk) has joined #tryton | ||
2010-08-21 12:40 <cedk> sharoon: hi | ||
2010-08-21 12:40 <sharoon> cedk: hi | ||
2010-08-21 12:40 <cedk> sharoon: I was thinking about your EAV module | ||
2010-08-21 12:40 <sharoon> cedk: what a coincidence | ||
2010-08-21 12:40 <sharoon> cedk: i am working on it | ||
2010-08-21 12:40 <sharoon> cedk: i have some idea change too | ||
2010-08-21 12:41 <cedk> sharoon: it could be more powerfull if it could work like analytic account then with a one2many list | ||
2010-08-21 12:41 <sharoon> cedk: i am building a new field called EAV inheriting function field | ||
2010-08-21 12:41 <cedk> sharoon: if property fields not good enough ? | ||
2010-08-21 12:41 <cedk> sharoon: is property fields not good enough ? | ||
2010-08-21 12:42 <sharoon> cedk: but property fields can just store values, not keys (Attributes?) | ||
2010-08-21 12:43 <cedk> sharoon: what do you name keys ? | ||
2010-08-21 12:43 <sharoon> cedk: the domain specifc attribute (like `color` but only for `product.product`) | ||
2010-08-21 12:44 <cedk> sharoon: that is an other part | ||
2010-08-21 12:44 <sharoon> cedk: ok | ||
2010-08-21 12:45 <sharoon> cedk: now listening to the idea you were coming up with | ||
2010-08-21 12:45 <sharoon> cedk: could you explain pls | ||
2010-08-21 12:46 <cedk> sharoon: did you already look at the analytic account? | ||
2010-08-21 12:46 <sharoon> cedk: checking (any reason why hg.tryton.org is too slow these days?) | ||
2010-08-21 12:48 <cedk> sharoon: don't know | ||
2010-08-21 12:49 <cedk> sharoon: it is not slow from browser | ||
2010-08-21 12:49 <cedk> sharoon: what is slow for you? | ||
2010-08-21 12:49 <sharoon> cedk: actually slow from browser | ||
2010-08-21 12:51 <cedk> sharoon: on http://hg.tryton.org/ ? | ||
2010-08-21 12:51 <sharoon> cedk: yes | ||
2010-08-21 12:51 <cedk> sharoon: could you try again? | ||
2010-08-21 12:51 <sharoon> cedk: tryting | ||
2010-08-21 12:52 <sharoon> cedk: the module page loaded, but still too slow | ||
2010-08-21 12:52 <sharoon> cedk: the file listing not loaded yet | ||
2010-08-21 12:52 <cedk> sharoon: what is the delay for a ping? | ||
2010-08-21 12:53 <sharoon> cedk: round-trip min/avg/max/stddev = 11.946/13.141/16.646/1.454 ms | ||
2010-08-21 12:54 <cedk> sharoon: strange | ||
2010-08-21 12:54 <cedk> sharoon: here I fetch index page in 1.5s | ||
2010-08-21 12:55 <sharoon> cedk: ok | ||
2010-08-21 12:55 <sharoon> finally opened account.py | ||
2010-08-21 12:57 <cedk> sharoon: the basis is fields are put in the view dynamicly | ||
2010-08-21 12:57 <sharoon> cedk: ok | ||
2010-08-21 12:57 <cedk> sharoon: this allow to have good GUI behavior like required etc. | ||
2010-08-21 12:57 <sharoon> cedk: ok | ||
2010-08-21 12:58 <cedk> sharoon: and user doesn't need to learn new GUI | ||
2010-08-21 12:58 <sharoon> cedk: ok | ||
2010-08-21 12:59 <sharoon> cedk: you are talking abt this rt? http://hg.tryton.org/hgwebdir.cgi/modules/analytic_account/file/f3b1854d8ea4/account.py#l248 | ||
2010-08-21 12:59 -!- digitalsatori(~tony@116.233.242.63) has joined #tryton | ||
2010-08-21 13:00 <cedk> sharoon: yes | ||
2010-08-21 13:00 <cedk> sharoon: and also analytic_accounts_fields_get | ||
2010-08-21 13:00 <sharoon> cedk: ok | ||
2010-08-21 13:01 <cedk> sharoon: I think you could develop it in trytond directly | ||
2010-08-21 13:01 <sharoon> cedk: ok | ||
2010-08-21 13:01 <cedk> sharoon: should ask on tryton-dev | ||
2010-08-21 13:01 <sharoon> cedk: could you explain a bit more? | ||
2010-08-21 13:01 <cedk> sharoon: what? | ||
2010-08-21 13:02 <sharoon> cedk: how this could be moved to trytond itself? | ||
2010-08-21 13:04 <cedk> sharoon: you could have an ir.attribute | ||
2010-08-21 13:04 <sharoon> cedk: ok | ||
2010-08-21 13:04 <cedk> sharoon: and ir.attribute.value | ||
2010-08-21 13:04 <sharoon> cedk: ok | ||
2010-08-21 13:05 <cedk> sharoon: we add a new tag in views: <attributes> | ||
2010-08-21 13:05 <sharoon> ok | ||
2010-08-21 13:05 <cedk> sharoon: this tag is expanded in fields_view_get | ||
2010-08-21 13:05 <sharoon> cedk: got it! | ||
2010-08-21 13:08 -!- shalabh_OL1(~shalabh@117.197.40.19) has joined #tryton | ||
2010-08-21 13:47 -!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton | ||
2010-08-21 14:08 -!- shalabh_OL2(~shalabh@122.176.50.143) has joined #tryton | ||
2010-08-21 14:19 <sharoon> cedk: ping | ||
2010-08-21 14:37 -!- digitalsatori(~tony@116.233.242.63) has joined #tryton | ||
2010-08-21 14:53 -!- digitalsatori(~tony@116.233.253.200) has joined #tryton | ||
2010-08-21 14:53 <cedk> sharoon: pong | ||
2010-08-21 14:54 <sharoon> cedk: http://piratepad.net/IN6WkBfkZN | ||
2010-08-21 14:56 <cedk> sharoon: options is only for selection | ||
2010-08-21 14:56 <cedk> sharoon: so I will call it selections | ||
2010-08-21 14:56 <sharoon> cedk: yes | ||
2010-08-21 14:56 <sharoon> ok | ||
2010-08-21 14:57 <sharoon> cedk: fixed | ||
2010-08-21 15:06 <sharoon> cedk: does it look ok? | ||
2010-08-21 15:18 <cedk> sharoon: what is ModelEAV ? | ||
2010-08-21 15:19 <sharoon> cedk: something models which need attributes could inherit or has to be merged into the code of ModelSQL | ||
2010-08-21 15:19 <cedk> sharoon: ok understod | ||
2010-08-21 15:19 <cedk> sharoon: don't know what is best | ||
2010-08-21 15:19 -!- Zoosky(~rooms@doc176-eva113.evard.ch) has joined #tryton | ||
2010-08-21 15:20 <sharoon> cedk: i thought it might be better to have EAV at an abstraction model since it may not be required for most objects/models | ||
2010-08-21 15:22 -!- carlos(~carlos@84.120.37.193.dyn.user.ono.com) has joined #tryton | ||
2010-08-21 15:52 -!- digitalsatori(~tony@116.233.253.200) has joined #tryton | ||
2010-08-21 15:53 <cedk> sharoon: ok | ||
2010-08-21 15:53 <cedk> sharoon: and it makes the code cleaner | ||
2010-08-21 15:54 <sharoon> cedk: yep, so if you are happy i can mail to the tryton-dev group? | ||
2010-08-21 15:55 <cedk> sharoon: ok | ||
2010-08-21 16:28 -!- shalabh_OL2(~shalabh@122.176.50.143) has left #tryton | ||
2010-08-21 16:56 -!- digitalsatori(~tony@116.233.253.200) has joined #tryton | ||
2010-08-21 18:08 -!- enlightx(~enlightx@dynamic-adsl-94-34-207-30.clienti.tiscali.it) has joined #tryton | ||
2010-08-21 18:14 -!- sharoon(~sharoon@vpn80.its.manchester.ac.uk) has joined #tryton | ||
2010-08-21 18:14 -!- sharoon(~sharoon@vpn80.its.manchester.ac.uk) has left #tryton | ||
2010-08-21 18:21 -!- udono(~udono@dynamic-unidsl-85-197-17-55.westend.de) has joined #tryton | ||
2010-08-21 19:39 -!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton | ||
2010-08-21 20:28 -!- gremly(~gremly@190.26.186.242) has joined #tryton | ||
2010-08-21 20:34 -!- ikks(~ikks@190.158.116.172) has joined #tryton | ||
2010-08-21 21:40 -!- sharoon(~sharoon@vpn31.its.manchester.ac.uk) has joined #tryton | ||
2010-08-21 22:35 -!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton | ||
2010-08-21 23:34 -!- sharoon(~sharoon@vpn31.its.manchester.ac.uk) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!