IRC logs of #tryton for Wednesday, 2011-08-24

chat.freenode.net #tryton log beginning Wed Aug 24 00:00:02 CEST 2011
2011-08-24 00:12 -!- okko1(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2011-08-24 00:24 <version2beta> cedk: Here's a preview of the updated post. I'm going out for coffee with Barbara (@lageekitude) but I thought you might like to review, possibly comment. Please feel free - I'll be back in an hour or so. http://version2beta.com/blog/2011/a-new-openerp-product-and-license.html
2011-08-24 00:40 <cedk> version2beta: looks good, except for the point where all OE module shoulb be (A)GPL
2011-08-24 00:41 <cedk> version2beta: For me it is not sure that any module will be a derivative work
2011-08-24 00:42 <cedk> version2beta: but it is perhaps nitpicking
2011-08-24 00:44 <bechamel> cedk: but it's a crucial point
2011-08-24 00:44 <cedk> bechamel: not for the post
2011-08-24 01:08 -!- ccomb(~ccomb@vau75-2-81-57-244-84.fbx.proxad.net) has joined #tryton
2011-08-24 01:37 -!- cheche(cheche@46.25.80.67) has joined #tryton
2011-08-24 01:37 -!- ciupicri(~ciupicri@81.180.234.249) has joined #tryton
2011-08-24 02:30 <version2beta> cedk: Thank you. I'd like to hear more about that sometime and will add it to my list of potential blog posts. I agree it's not crucial to the post, except perhaps to acknowledge that my statement that all oerp modules must be licensed agpl is a debatable, and something I'd like to explore in more detail later.
2011-08-24 04:31 -!- sharoon(~sharoon@c-75-74-126-176.hsd1.fl.comcast.net) has joined #tryton
2011-08-24 04:31 -!- sharoon_(~sharoon@204-232-205-248.static.cloud-ips.com) has joined #tryton
2011-08-24 04:36 -!- sharoon(~sharoon@204-232-205-248.static.cloud-ips.com) has left #tryton
2011-08-24 08:04 -!- okko1(~okko@62.58.29.41) has joined #tryton
2011-08-24 08:07 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has joined #tryton
2011-08-24 08:08 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has left #tryton
2011-08-24 08:12 -!- vladimirek(~vladimire@adsl-dyn18.91-127-76.t-com.sk) has joined #tryton
2011-08-24 08:13 -!- lem0na(~lem0na@95.87.233.210) has joined #tryton
2011-08-24 08:17 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2011-08-24 08:20 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2011-08-24 08:47 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton
2011-08-24 09:04 -!- elbenfreund(~elbenfreu@f055241037.adsl.alicedsl.de) has joined #tryton
2011-08-24 09:27 -!- nicoe(~nicoe@ced.homedns.org) has joined #tryton
2011-08-24 09:41 -!- ndn_pit(~ndn_pit@95.56.115.213) has joined #tryton
2011-08-24 09:41 <ndn_pit> hello!
2011-08-24 09:42 <ndn_pit> how can I set date value from xml? i mean when i create static data from xml file...
2011-08-24 09:46 <cedk> ndn_pit: it is a little bit strange but there is time module in the eval
2011-08-24 09:46 <cedk> ndn_pit: see in modules/currency/currency.xml
2011-08-24 09:46 <ndn_pit> why is it strange?
2011-08-24 09:47 <cedk> ndn_pit: because time change
2011-08-24 09:48 <ndn_pit> oh no, it's for test ))
2011-08-24 09:52 <ndn_pit> is that time equal to datetime.datetime?
2011-08-24 09:57 <ndn_pit> <field name="date" eval="time.strptime('01.01.2011', '%d.%m.%Y')"/> - it's wrong...
2011-08-24 09:57 <ndn_pit> can you give me example?
2011-08-24 09:57 <cedk> ndn_pit: indeed you just have to pass a string
2011-08-24 09:58 <cedk> in modules/currency/currency.xml
2011-08-24 09:58 <ndn_pit> there is <field name="date" eval="time.strftime('%Y-01-01')"/> in modules/currency/currency.xml
2011-08-24 09:58 <cedk> ndn_pit: yes it is the example
2011-08-24 09:59 <ndn_pit> understood thaanks
2011-08-24 10:02 <ndn_pit> so I am forced to use %Y-%m-%d format, but if I want to use another format?
2011-08-24 10:02 <cedk> ndn_pit: but it is internal
2011-08-24 10:03 <ndn_pit> ok
2011-08-24 10:09 <ndn_pit> is there way to create model without creating table in db?
2011-08-24 10:09 <ndn_pit> just to visualisation
2011-08-24 10:12 <cedk> ndn_pit: ModelView
2011-08-24 10:13 <ndn_pit> have you example?
2011-08-24 10:15 <cedk> ndn_pit: in almost every Wizard
2011-08-24 10:21 <ndn_pit> if fount what i want in product_cost_history/product.py -> class ProductCostHistory(ModelSQL, ModelView)
2011-08-24 10:21 <ndn_pit> but if i want to have fields.One2Many in that model?
2011-08-24 10:23 <cedk> ndn_pit: you must use a Function fields or if it is possible have the right id in the target Model
2011-08-24 10:26 <ndn_pit> of course, but how must look my query in table_query method?
2011-08-24 10:27 -!- okko1(~okko@62.58.29.41) has joined #tryton
2011-08-24 10:27 <cedk> ndn_pit: for One2Many you have nothing to do in the table_query
2011-08-24 10:30 <ndn_pit> so solution is to use Function field, right?
2011-08-24 10:32 <cedk> ndn_pit: most of the time
2011-08-24 10:33 <ndn_pit> thank you!
2011-08-24 10:33 -!- ndn_pit(~ndn_pit@95.56.115.213) has left #tryton
2011-08-24 10:33 -!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton
2011-08-24 10:34 -!- ccomb(~ccomb@anj75-1-82-226-210-96.fbx.proxad.net) has joined #tryton
2011-08-24 10:35 -!- ndn_pit(~ndn_pit@95.56.115.213) has joined #tryton
2011-08-24 10:53 <ndn_pit> I have the opinion that only I am interested in Tryton... why is there so silent?
2011-08-24 10:54 <bechamel> ndn_pit: by definition every person on this chan is interested in tryton :)
2011-08-24 10:55 <ndn_pit> but why is there so silent?
2011-08-24 10:55 <ndn_pit> just be here is nothing, i think...
2011-08-24 10:56 <bechamel> ndn_pit: I have nothing to say, but I try to answer people questions when I have time
2011-08-24 10:58 <cedk> ndn_pit: I guess almost everybody works for their customers
2011-08-24 10:59 <cedk> most of the time people speak only when they have troubles
2011-08-24 11:00 <ndn_pit> that mean that i am trouble-man :)
2011-08-24 11:01 <nicoe> ndn_pit: you're only starting with tryton
2011-08-24 11:01 -!- okko1(~okko@62.58.29.41) has joined #tryton
2011-08-24 11:02 <cedk> ndn_pit: like any new comers
2011-08-24 11:03 <ndn_pit> understood...
2011-08-24 11:04 -!- okko2(~okko@62.58.29.41) has joined #tryton
2011-08-24 11:04 -!- reichlich(~reichlich@p578E952B.dip.t-dialin.net) has joined #tryton
2011-08-24 11:13 -!- reichlich_(~reichlich@p5793DCBB.dip.t-dialin.net) has joined #tryton
2011-08-24 11:35 <ndn_pit> should i set "X" in "fields.Function(One2Many('tmodel', X, 'TModel'), getter, setter, searcher)"?
2011-08-24 11:37 <cedk> ndn_pit: put None
2011-08-24 12:28 -!- sharkcz(~sharkcz@2001:15c0:6747:160::7) has joined #tryton
2011-08-24 12:39 -!- okko1(~okko@62.58.29.41) has joined #tryton
2011-08-24 12:41 -!- okko2(~okko@62.58.29.41) has joined #tryton
2011-08-24 13:43 -!- sharoon(~sharoon@204-232-205-248.static.cloud-ips.com) has joined #tryton
2011-08-24 14:16 -!- sharkcz(~sharkcz@2001:15c0:6747:160::7) has joined #tryton
2011-08-24 15:08 -!- sharoon(~sharoon@173-9-190-185-miami.txt.hfc.comcastbusiness.net) has joined #tryton
2011-08-24 15:09 -!- sharoon_(~sharoon@204-232-205-248.static.cloud-ips.com) has joined #tryton
2011-08-24 15:13 -!- smarro(~sebastian@host12.190-136-181.telecom.net.ar) has joined #tryton
2011-08-24 15:32 -!- bvillasanti(~bvillasan@190.105.89.122) has joined #tryton
2011-08-24 15:34 <sharoon> cedk: ping
2011-08-24 15:36 <cedk> sharoon: pong
2011-08-24 15:37 <sharoon> cedk: what would be a possible workflow for canceling purchase orders (which are confirmed)
2011-08-24 15:37 <sharoon> cedk: at the moment this aint possible
2011-08-24 15:38 <cedk> sharoon: none :-)
2011-08-24 15:38 <sharoon> cedk: really ? can we not cancel the PO itself and also the moves to `cancel` state ?
2011-08-24 15:38 <cedk> sharoon: you must cancel or invert shipments, cancel or credit invoices
2011-08-24 15:38 -!- saxa(~sasa@189.26.255.43) has joined #tryton
2011-08-24 15:39 <cedk> sharoon: I think it is bad to consider in the system that anything can be cancelled
2011-08-24 15:39 <cedk> sharoon: the best is just to do the opposite operation
2011-08-24 15:39 -!- alimon(alimon@189.154.55.187) has joined #tryton
2011-08-24 15:39 <cedk> sharoon: if you received products, you must send it back
2011-08-24 15:40 <sharoon> cedk: got it
2011-08-24 15:42 <cedk> sharoon: indeed purchase manage this, if you cancel shipments and invoice it will go in exception state
2011-08-24 15:42 <cedk> sharoon: where you can just stop it there
2011-08-24 15:49 <sharoon> cedk: cancel shipment ?
2011-08-24 15:49 <cedk> sharoon: yes
2011-08-24 15:50 <sharoon> cedk: it doesn't create draft shipment, only supplier -> inout moves
2011-08-24 15:51 <cedk> sharoon: create the shipment to cancel :-)
2011-08-24 15:52 <sharoon> cedk: got it
2011-08-24 16:54 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton
2011-08-24 16:58 -!- smarro(~sebastian@200.81.250.221) has joined #tryton
2011-08-24 17:15 -!- sharoon(~sharoon@204-232-205-248.static.cloud-ips.com) has joined #tryton
2011-08-24 17:57 -!- gremly(~gremly@200.106.218.64) has joined #tryton
2011-08-24 18:29 -!- bvillasanti(~bvillasan@186-129-248-247.static.speedy.com.ar) has joined #tryton
2011-08-24 19:30 -!- sharoon(~sharoon@173-9-190-185-miami.txt.hfc.comcastbusiness.net) has joined #tryton
2011-08-24 19:31 -!- sharoon_(~sharoon@2001:470:5:630:313e:5a42:13bc:3d8d) has joined #tryton
2011-08-24 19:44 -!- smarro(~sebastian@host100.190-136-175.telecom.net.ar) has joined #tryton
2011-08-24 20:17 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has joined #tryton
2011-08-24 20:17 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has left #tryton
2011-08-24 20:27 -!- vladimirek(~vladimire@adsl-dyn18.91-127-76.t-com.sk) has joined #tryton
2011-08-24 20:32 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton
2011-08-24 20:32 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has joined #tryton
2011-08-24 20:33 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has left #tryton
2011-08-24 21:10 -!- okko1(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2011-08-24 21:16 -!- elbenfreund(~elbenfreu@p54B92717.dip.t-dialin.net) has joined #tryton
2011-08-24 21:22 -!- ccomb(~ccomb@vau75-2-81-57-244-84.fbx.proxad.net) has joined #tryton
2011-08-24 21:31 <meanmicio> Hello there. I'm about to create some demo data in xml format for gnu health... should I include it as part of the xml in __tryton__.py or is there something specific for demo ?
2011-08-24 21:33 <cedk> meanmicio: for us, the demo data should not be in the modules
2011-08-24 21:33 <cedk> meanmicio: but filled from an external script using tools like proteus
2011-08-24 21:34 <cedk> meanmicio: if you put in __tryton__.py then it will always be imported
2011-08-24 21:37 <cedk> meanmicio: and more over with a script you can run wizards, workflow etc.
2011-08-24 21:37 <meanmicio> cedk: yes, you're right. Probably using a variable demo, and specifying, per module, whether I want to include demo data ?
2011-08-24 21:38 <meanmicio> cedk: some concept from OE, but optimized
2011-08-24 21:38 <cedk> meanmicio: it is not logical to put demo data in the module
2011-08-24 21:38 <cedk> meanmicio: and also it is not KISS
2011-08-24 21:39 <meanmicio> cedk: because in OE, we didn't have the choice to enable demo data from one specific module... has all or nothing.
2011-08-24 21:39 <cedk> it generates a lot of issues in OE because sometimes demo data are loaded for production server etc.
2011-08-24 21:39 <meanmicio> cedk : then I will probably work on the basis of having a demo sql
2011-08-24 21:40 <cedk> meanmicio: I don't understand, what is the issue with proteus script?
2011-08-24 21:40 <meanmicio> cedk : or just an internet demo server. The issue here is that it should be able to update easily
2011-08-24 21:41 <cedk> meanmicio: update what?
2011-08-24 21:42 <meanmicio> cedk : update the demo server. When info is in xml format, you can just copy the files from one version to the other.
2011-08-24 21:43 <meanmicio> cedk : when the info resides on the pg database, we work on the basis of upgrading the trytond
2011-08-24 21:44 <cedk> meanmicio: don't understand
2011-08-24 21:45 <meanmicio> cedk : ok. Two scenarios . A) I have a bunch of xml encoded data for demo, that I could feed to the __tryton__ . Option B) I have a pg_dump sql file, that is tryton version dependant
2011-08-24 21:47 -!- jcm(~jcm@cxr69-10-88-172-230-130.fbx.proxad.net) has joined #tryton
2011-08-24 21:47 <cedk> meanmicio: C) you have a proteus script
2011-08-24 21:48 <meanmicio> cedk: Will look into it then
2011-08-24 21:48 <cedk> meanmicio: you could also hack trytond/convert.py to use it from a simple script
2011-08-24 21:49 <cedk> meanmicio: the good point with proteus is that it will also provide scenario testing
2011-08-24 21:49 <cedk> meanmicio: because it simulate the client
2011-08-24 21:50 <cedk> meanmicio: so you have the on_change calls etc.
2011-08-24 21:50 -!- sharoon(~sharoon@173-9-190-185-miami.txt.hfc.comcastbusiness.net) has joined #tryton
2011-08-24 21:51 <meanmicio> cedk : yes. it seems that is the best way to go. Then I can update both the demo servers and the individual version packages. I need something that can deal with the 12+ modules of gnuhealth...
2011-08-24 21:51 -!- sharoon_(~sharoon@2001:470:5:630:7547:daa1:3c18:9476) has joined #tryton
2011-08-24 21:51 <meanmicio> cedk : so it needs to be automated.
2011-08-24 21:51 <meanmicio> cedk : I will look into the proteus option now
2011-08-24 21:52 <cedk> meanmicio: if you want also we (Nicolas and me) have developped almost the same tools as proteus for OE
2011-08-24 21:53 <cedk> meanmicio: http://pypi.python.org/pypi/oersted
2011-08-24 21:53 <meanmicio> cedk : great ! I'll play around with it now. Looks cool
2011-08-24 21:54 -!- nicoe(~nicoe@11.193-247-81.adsl-dyn.isp.belgacom.be) has joined #tryton
2011-08-24 21:55 <meanmicio> cedk: so it probably could also work as a stress test tool ?
2011-08-24 21:56 <meanmicio> cedk : since that's another thing I want to check one of this days... concurrency and scalability with __many__ records and concurrent users
2011-08-24 21:56 <meanmicio> cedk : but one step at a time ... first I'll finish the demo data :-)
2011-08-24 21:58 -!- gremly(~gremly@200.106.218.64) has joined #tryton
2011-08-24 22:02 <cedk> meanmicio: proteus doesn't have the smart way to handle large list of records as there is in the client
2011-08-24 22:05 <meanmicio> cedk : changing subject .... someone filled a bug today about the tabs orientation. By default they shoud be on top, but they don't, so I have to specify in the client the tab orientation to "Top"
2011-08-24 22:06 <meanmicio> cedk : http://imgur.com/eCyw6
2011-08-24 22:07 <meanmicio> cedk : this is the screenshot of the guy complaining about the look .
2011-08-24 22:08 -!- saxa(~sasa@189.26.255.43) has joined #tryton
2011-08-24 22:39 -!- bechamel(~user@host-85-201-144-79.brutele.be) has joined #tryton
2011-08-24 23:16 <meanmicio> cedk: when I started porting to tryton, I had that issue, and by that time it didn't change by putting the tab position in the notebook.
2011-08-24 23:16 <meanmicio> cedk : the value set on the client overrides what you have set on the view ?
2011-08-24 23:23 -!- gremly(~gremly@200.106.218.64) has joined #tryton
2011-08-24 23:43 <cedk> meanmicio: don't know
2011-08-24 23:45 <cedk> meanmicio: fill a bug in roundup
2011-08-24 23:47 -!- gremly(~gremly@200.106.218.64) has joined #tryton
2011-08-24 23:51 <meanmicio> cedk : the default notebook position is left ?
2011-08-24 23:52 <meanmicio> cedk : for the tabs ?

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