chat.freenode.net #tryton log beginning Tue Nov 30 00:00:02 CET 2010 | ||
2010-11-30 00:13 -!- GasbaKid(~GasbaKid@41.96.29.91) has joined #tryton | ||
2010-11-30 00:36 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton | ||
2010-11-30 00:38 -!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has left #tryton | ||
2010-11-30 01:00 -!- zodman(~andres-va@200.67.176.253) has joined #tryton | ||
2010-11-30 01:10 -!- jcm(~jcm@cxr69-10-88-172-230-130.fbx.proxad.net) has joined #tryton | ||
2010-11-30 01:28 -!- ready(~ready@tiu.ligno.com) has joined #tryton | ||
2010-11-30 02:42 -!- ikks(~ikks@190.158.122.179) has joined #tryton | ||
2010-11-30 03:10 -!- jcm(~jcm@cxr69-10-88-172-230-130.fbx.proxad.net) has joined #tryton | ||
2010-11-30 05:18 -!- yangoon(~mathiasb@p549F6B0E.dip.t-dialin.net) has joined #tryton | ||
2010-11-30 06:20 -!- johbo_(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton | ||
2010-11-30 07:22 -!- Timitos(~kp@88.217.184.172) has joined #tryton | ||
2010-11-30 07:54 -!- vladimir_(~vladimir@213.151.246.136) has joined #tryton | ||
2010-11-30 08:04 -!- paepke(~paepke@p4FEB2ACA.dip.t-dialin.net) has joined #tryton | ||
2010-11-30 08:29 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2010-11-30 08:39 -!- GasbaKid(~GasbaKid@41.96.29.91) has joined #tryton | ||
2010-11-30 09:14 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton | ||
2010-11-30 09:24 -!- jcm(~jcm@symetrie.net) has joined #tryton | ||
2010-11-30 09:27 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2010-11-30 09:30 -!- JoePass(~gasbakid@41.96.29.91) has joined #tryton | ||
2010-11-30 09:32 -!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton | ||
2010-11-30 09:38 -!- paepke(~paepke@p4FEB25B5.dip0.t-ipconnect.de) has joined #tryton | ||
2010-11-30 10:03 -!- vincentvdl(~vincent@62.58.29.41) has joined #tryton | ||
2010-11-30 10:14 <cedk> vincentvdl: did you check with this http://codereview.appspot.com/3347041/ | ||
2010-11-30 10:17 <cedk> vincentvdl: for the d&d | ||
2010-11-30 10:19 <vincentvdl> cedk: Hi! I am loading it now... will let you know in a minute if it fixed. Thanks! | ||
2010-11-30 10:36 -!- paepke(~paepke@p4FEB25B5.dip0.t-ipconnect.de) has left #tryton | ||
2010-11-30 10:37 <cedk> yangoon: could you give an example for issue1775? | ||
2010-11-30 10:38 <yangoon> cedk: one in in the issue, but I can you give several examples | ||
2010-11-30 10:39 <cedk> yangoon: but I don't see where is the issue | ||
2010-11-30 10:39 <cedk> yangoon: we already talked about that and it was ok | ||
2010-11-30 10:40 <yangoon> cedk: the sum calculated by addition of rounded values does not match the sum calculated directly with sum / rate | ||
2010-11-30 10:40 <yangoon> it is not an issue of rounding method, rather an issue of accounting reality | ||
2010-11-30 10:41 <yangoon> either we do rounding at the end or we have to provide some correction to match correct sums | ||
2010-11-30 10:41 <yangoon> caused by addition of rounding errors | ||
2010-11-30 10:42 <cedk> yangoon: there will never be a solution | ||
2010-11-30 10:43 <yangoon> cedk: we use already a solution to be correct on the side of accounting | ||
2010-11-30 10:44 <yangoon> which for us is more important than to be correct mathematically on single values | ||
2010-11-30 10:45 -!- paepke(~paepke@p4FEB25B5.dip0.t-ipconnect.de) has joined #tryton | ||
2010-11-30 10:45 <cedk> yangoon: the current behavior is correct | ||
2010-11-30 10:47 <cedk> yangoon: did you re-read this http://groups.google.com/group/tryton/browse_thread/thread/7722292e1bf3a579 | ||
2010-11-30 10:47 <yangoon> cedk: no, a total of 63.07 divided by a rate of 1.8 results to 35.04 rounded, not 35.03 as in tryton | ||
2010-11-30 10:47 <cedk> yangoon: but it is impossible to do in a different way | ||
2010-11-30 10:49 <yangoon> cedk I think there are different methods, will to have dig in before doing the blue print (in case you are interested) | ||
2010-11-30 10:49 <cedk> yangoon: you can not have one calculus based on one currency and having the same if you convert each part to an other currency | ||
2010-11-30 10:49 <cedk> yangoon: I don't see what you want to do | ||
2010-11-30 10:50 <cedk> yangoon: and which result you want to have | ||
2010-11-30 10:50 <cedk> yangoon: i would like to have the account moves you wanted | ||
2010-11-30 10:52 <yangoon> cedk: one is to follow accumulated rounding error and if it exceeds one rounding step -> compensate | ||
2010-11-30 10:53 <cedk> yangoon: an example please | ||
2010-11-30 10:55 <cedk> yangoon: http://groups.google.com/group/tryton/msg/1b1603b8d6fcf10f | ||
2010-11-30 10:55 <yangoon> cedk: sorry, just now a little bit in a hurry, have to talk to you later, or better write down the issue and proposal | ||
2010-11-30 10:57 <cedk> Timitos, udono: ping | ||
2010-11-30 10:57 <cedk> Timitos, udono: you seem to have the same issue? | ||
2010-11-30 11:16 -!- udono(~udono@dynamic-unidsl-85-197-21-77.westend.de) has joined #tryton | ||
2010-11-30 11:24 <cedk> pjstevns: will you submit patches for your issues? | ||
2010-11-30 11:24 <pjstevns> cedk: they're on rietveld. Do you want them attached to roundup? | ||
2010-11-30 11:26 <cedk> pjstevns: it is as you want but if you want to be the author of the changeset it is simplier once the patch is reviewed to put it on roundup like described in http://code.google.com/p/tryton/wiki/HowtoContribute | ||
2010-11-30 11:27 <pjstevns> cedk: roger that, will do. | ||
2010-11-30 11:30 <cedk> pjstevns: and when you are sure that the patch is clear (because simple) you can directly put the patch on roundup | ||
2010-11-30 11:30 <pjstevns> cedk: copy that | ||
2010-11-30 11:35 <cedk> pjstevns: thx | ||
2010-11-30 11:36 <cedk> udono: did you see the talk with yangoon? | ||
2010-11-30 11:36 <udono> cedk: yes | ||
2010-11-30 11:37 <cedk> udono: it seems you have the same issue? | ||
2010-11-30 11:39 <udono> cedk: the issue described by yangoon seems a valid issue for the discussion in http://groups.google.com/group/tryton/browse_thread/thread/7722292e1bf3a579 | ||
2010-11-30 11:39 <udono> cedk: but I need to thnk about. | ||
2010-11-30 11:41 <udono> cedk: It is a pity, that all discussions/solutions I found are written in german language. There is only one academical paper, which is written in english: http://www2.cs.cas.cz/~sima/trp.ps | ||
2010-11-30 11:42 <cedk> pjstevns: your patch has an unknown parent? | ||
2010-11-30 11:44 <pjstevns> crap. Both patches for 1772 and 1773 are stacked on top of each other. Doesn't hg apply them as-is?? | ||
2010-11-30 11:44 <cedk> pjstevns: I use --extact option | ||
2010-11-30 11:44 <cedk> pjstevns: otherwise you will have to merge your local repo | ||
2010-11-30 11:45 <cedk> pjstevns: I will apply the other one first | ||
2010-11-30 11:45 <pjstevns> cedk: --extract option on what command?? | ||
2010-11-30 11:45 <pjstevns> export?? | ||
2010-11-30 11:45 <cedk> pjstevns: on import | ||
2010-11-30 11:46 <cedk> pjstevns: also the patch of issue1772 refere to a parent not in the tree | ||
2010-11-30 11:47 <cedk> pjstevns: so it is as you want, I can apply it without exact or let you fix it | ||
2010-11-30 11:48 <pjstevns> cedk: patches were done on the 1.8 tree :-( | ||
2010-11-30 11:48 <pjstevns> cedk: I'll update the patches myself for the trunk and try to make sure they're clean | ||
2010-11-30 11:50 <cedk> pjstevns: ok | ||
2010-11-30 11:51 <cedk> pjstevns: patch must always be done on the upper version affected | ||
2010-11-30 11:51 <cedk> pjstevns: we take care to transplant it to each series affected | ||
2010-11-30 11:51 <pjstevns> cedk: understand, makes sense. | ||
2010-11-30 11:55 -!- ikks(~ikks@190.158.122.179) has joined #tryton | ||
2010-11-30 11:59 <vincentvdl> cedk: About patch 3347041: It did not fix our sequence issue with drag&drop, we now get a different key error (and yes we doublechecked sequence is added to tree in XML) | ||
2010-11-30 12:00 <vincentvdl> cedk: Traceback (most recent call last): | ||
2010-11-30 12:00 <vincentvdl> File "/tryton/gui/window/view_form/view/list.py", line 371, in drag_data_received | ||
2010-11-30 12:00 <vincentvdl> field = self.screen.group.fields[treeview.sequence] | ||
2010-11-30 12:00 <vincentvdl> KeyError: 'sequence' | ||
2010-11-30 12:03 <vincentvdl> cedk: We are still working on 1.8 by the way | ||
2010-11-30 12:04 <pjstevns> cedk: patches are uptodate now | ||
2010-11-30 12:12 <cedk> udono: do you have simple description of the algo? | ||
2010-11-30 12:14 <cedk> vincentvdl: this is realy strange | ||
2010-11-30 12:14 <cedk> vincentvdl: the integer field is named 'sequence'? | ||
2010-11-30 12:14 <cedk> pjstevns: applied thx | ||
2010-11-30 12:14 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton | ||
2010-11-30 12:15 <udono> cedk: I requested the Author of the paper, Jiri Sima, but he told me that he doesn't know about a real world implementation in any programming language. | ||
2010-11-30 12:16 <vincentvdl> cedk: Yes, it's called sequence | ||
2010-11-30 12:17 <cedk> vincentvdl: the KeyError seems to indicate that it is not in the view | ||
2010-11-30 12:17 <cedk> vincentvdl: do you see it in the view? | ||
2010-11-30 12:18 <cedk> udono: no need of a real implementation, but even in pseudocode | ||
2010-11-30 12:19 <udono> cedk: the author is a mathematics, not a programmer... | ||
2010-11-30 12:20 <udono> cedk: another way mentioned in the german wp mentioned is to use linear approximation. | ||
2010-11-30 12:21 <vincentvdl> cedk: No, it's not visible on the screen... but the client does not report a missing field in the console either | ||
2010-11-30 12:23 <cedk> vincentvdl: I think you don't have the right view | ||
2010-11-30 12:25 <udono> cedk: sorry not linear approximation, least square the german wp mentioned: http://en.wikipedia.org/wiki/Least_squares | ||
2010-11-30 12:26 <vincentvdl> cedk: we added a dummy field (next to sequence) to the tree and that field is visible on the screen... | ||
2010-11-30 12:27 <vincentvdl> cedk: we will create a small demo | ||
2010-11-30 12:41 -!- JoePass(~gasbakid@41.96.37.232) has joined #tryton | ||
2010-11-30 12:41 -!- GasbaKid(~GasbaKid@41.96.37.232) has joined #tryton | ||
2010-11-30 14:01 <cedk> udono: http://stackoverflow.com/questions/792460/how-to-round-floats-to-integers-while-preserving-their-sum | ||
2010-11-30 14:05 <cedk> udono: this one http://stackoverflow.com/questions/792460/how-to-round-floats-to-integers-while-preserving-their-sum/792490#792490 | ||
2010-11-30 14:05 <cedk> udono: I already almost implemented for a customer module to load sales (tax incl.) from cash register | ||
2010-11-30 14:07 <cedk> but if we implement thing like that, the amount of invoice line could change depending of the other lines of the same invoice | ||
2010-11-30 14:21 <udono> cedk: AFAIK it is not allowed to change the net amounts, because they are usually used for official tax calculations. But I see no problem to tweak the brut amounts including the taxes. | ||
2010-11-30 14:22 <udono> cedk: and it shout be possible to tweak the tax amounts, too. | ||
2010-11-30 14:22 <udono> *should | ||
2010-11-30 14:23 <cedk> udono: I mean when editing | ||
2010-11-30 14:24 <cedk> udono: but never after openning the invoice | ||
2010-11-30 14:24 <udono> cedk: yes, only on editing. | ||
2010-11-30 14:28 <cedk> udono: it will be great to have scenario for what we want to have | ||
2010-11-30 14:30 <udono> cedk: yes | ||
2010-11-30 14:35 <udono> yangoon: May you provide a prose text about the steps needed to show the rounding problem? If you like I can provide the proteus/doctest part for the test. | ||
2010-11-30 14:39 -!- gavinf(~gavinf@196-215-106-210.dynamic.isadsl.co.za) has joined #tryton | ||
2010-11-30 15:08 -!- gremly(~gremly@200.106.202.91) has joined #tryton | ||
2010-11-30 15:08 <Timitos> cedk: i know the problem but i need to dive into it much more as it is a complex problem. i think it is the right way to start a documentation about it and once the documentation is clear we should implement it. | ||
2010-11-30 15:59 -!- zodman(~andres-va@foresight/developer/zodman) has joined #tryton | ||
2010-11-30 16:51 -!- pepeu(~manuel@201.155.193.192) has joined #tryton | ||
2010-11-30 16:55 -!- trifon(~trifon@p4FFB895E.dip0.t-ipconnect.de) has joined #tryton | ||
2010-11-30 17:24 -!- bechamel(~user@host-85-201-144-79.brutele.be) has joined #tryton | ||
2010-11-30 17:51 -!- jbunting(~jbunting@99-5-88-198.lightspeed.nsvltn.sbcglobal.net) has joined #tryton | ||
2010-11-30 17:53 -!- JoePass(~gasbakid@41.96.40.183) has joined #tryton | ||
2010-11-30 17:54 -!- GasbaKid(~GasbaKid@41.96.40.183) has joined #tryton | ||
2010-11-30 18:21 -!- chrue(~chrue@host-091-097-033-018.ewe-ip-backbone.de) has joined #tryton | ||
2010-11-30 19:12 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2010-11-30 19:17 -!- paepke(~paepke@p4FEB2ACA.dip.t-dialin.net) has joined #tryton | ||
2010-11-30 19:17 -!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton | ||
2010-11-30 19:26 -!- vincentvdl(~vincent@62.58.29.41) has left #tryton | ||
2010-11-30 19:32 -!- jcm(~jcm@cxr69-10-88-172-230-130.fbx.proxad.net) has joined #tryton | ||
2010-11-30 19:49 -!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton | ||
2010-11-30 20:16 -!- GasbaKid(~GasbaKid@41.96.40.183) has joined #tryton | ||
2010-11-30 20:32 -!- hoRn(~chatzilla@dslb-094-223-183-073.pools.arcor-ip.net) has joined #tryton | ||
2010-11-30 20:32 <hoRn> hi | ||
2010-11-30 20:54 <hoRn> little question: with a wizard I create an instance of a model with a workflow - this action is always rolled back. | ||
2010-11-30 20:55 <hoRn> how can i force the commit? | ||
2010-11-30 20:56 <hoRn> without the workflow the creation of the model works fine | ||
2010-11-30 21:09 <hoRn> puh | ||
2010-11-30 21:20 <hoRn> i'm going nuts | ||
2010-11-30 22:06 -!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton | ||
2010-11-30 22:07 <plantian> Hi, I'm running trytond 1.4, is it best to update from 1.4 to 1.6 and then wait for 1.8 or 1.4 straight to 1.8 or what is the best strategy? Thanks. | ||
2010-11-30 22:14 <cedk> hoRn: could you be more precise? | ||
2010-11-30 22:14 <cedk> plantian: it is like you want | ||
2010-11-30 22:16 <hoRn> cedk: I can't be more precise, because I don't know whats happening ;( | ||
2010-11-30 22:16 <cedk> hoRn: how do you create the instance of the model? | ||
2010-11-30 22:17 <hoRn> cedk: now i have the same problem in copy in the treeview | ||
2010-11-30 22:17 <plantian> cedk: To migrate I will have to go from 1.4 to 1.6 to get to 1.8 anyways right? Do I need to upgrade the database manually or do most modules and trytond have ways of detected an upgrade? | ||
2010-11-30 22:18 <cedk> plantian: you don't need to pass through every version (normally) | ||
2010-11-30 22:18 <cedk> plantian: you just have to run --update on the database | ||
2010-11-30 22:19 <plantian> I have some modules I wrote so I think I will need to manually update those though to use new trytond conventions. | ||
2010-11-30 22:19 <cedk> hoRn: treeview == list view? | ||
2010-11-30 22:19 <hoRn> cedk: yes | ||
2010-11-30 22:19 <cedk> plantian: yes of course | ||
2010-11-30 22:19 <cedk> plantian: and before any update process | ||
2010-11-30 22:19 <plantian> Best approach for that is combination of reading CHANGELOG in trytond and the mailing list. | ||
2010-11-30 22:19 <plantian> I guess? | ||
2010-11-30 22:20 <cedk> plantian: yes but normally your module will make trytond stop before anything | ||
2010-11-30 22:20 <plantian> Although tryton project has many more interesting modules that might satisfy my original needs. | ||
2010-11-30 22:20 <cedk> hoRn: for the same model? | ||
2010-11-30 22:20 <hoRn> cedk: the error occurs if i add a workflow - i think i have a error in the workflow of the model | ||
2010-11-30 22:20 <plantian> cedk: Okay, I will experiment. Thanks. | ||
2010-11-30 22:20 <cedk> hoRn: could you share the code? | ||
2010-11-30 22:21 <cedk> plantian: for sure, you should perhaps re-think the design | ||
2010-11-30 22:21 <cedk> plantian: but we try to avoid new stuff to existing module | ||
2010-11-30 22:21 <hoRn> cedk: one moment | ||
2010-11-30 22:23 <hoRn> cedk: http://pastie.org/1336498 - that is the model | ||
2010-11-30 22:23 <plantian> cedk: Yeah, I wrote a very cludgy point of sale interface, product listing module, price list module and some stock module extensions. | ||
2010-11-30 22:24 <cedk> plantian: of course before any thing: make backup ;-) | ||
2010-11-30 22:24 <hoRn> cedk: http://pastie.org/1336505 -that is the workflow | ||
2010-11-30 22:24 <cedk> hoRn: you must put ModelWorkflow as first parent | ||
2010-11-30 22:25 <hoRn> oh - thats all - back in seconds ;) | ||
2010-11-30 22:26 <plantian> cedk: hahaha yeah, I will | ||
2010-11-30 22:26 <cedk> hoRn: I did not check the workflow definition but you can see it from client | ||
2010-11-30 22:26 <cedk> hoRn: by the way, you don't need to put method of Function field above | ||
2010-11-30 22:27 <hoRn> cedk: Nooooooooooooooooooooo - that was the cause of the error - i was searching over 1 hour (cry) | ||
2010-11-30 22:27 <cedk> hoRn: and no need to prepend _ to the name, they will not be callable from rpc | ||
2010-11-30 22:28 <cedk> hoRn: I tried to implement exception in this case but it is not an easy task | ||
2010-11-30 22:29 <cedk> but I think it will be solved when we will merge ModelSQL and ModelStorage | ||
2010-11-30 22:29 <hoRn> cedk: ok, a big red <blink> in the documentation would be nice :) | ||
2010-11-30 22:30 <cedk> hoRn: patch is welcome :-) | ||
2010-11-30 22:31 <hoRn> cedk: i have ported the quality modul form openErp to tryton - i will contact the author and you if it can be a module in tryton | ||
2010-11-30 22:32 <cedk> hoRn: have you link? | ||
2010-11-30 22:33 <hoRn> cedk: http://doc.openerp.com/technical_guide/nan_quality_control.html | ||
2010-11-30 22:34 <hoRn> cedk: seems good - i have simplyfied the stuff a bit - becaus i was in hurry | ||
2010-11-30 22:34 <cedk> hoRn: I'm not sure to understand the usage | ||
2010-11-30 22:35 -!- GasbaKid(~GasbaKid@41.96.40.183) has joined #tryton | ||
2010-11-30 22:36 <cedk> hoRn: do you have direct link to bzr repo | ||
2010-11-30 22:36 <hoRn> cedk: i will conect it to the module project - with this module you can define qualitychecks | ||
2010-11-30 22:36 <cedk> hoRn: bazaar is a mess to find stuff | ||
2010-11-30 22:37 <hoRn> cedk: waht are you looking for? | ||
2010-11-30 22:39 <cedk> hoRn: I find it was the code | ||
2010-11-30 22:40 <hoRn> cedk: i can send you my version - so you can test it in tryton ;) | ||
2010-11-30 22:40 <cedk> hoRn: I suggest you to post on tryton-dev and upload on codereview | ||
2010-11-30 22:41 <cedk> hoRn: this is the best way to be included in Tryton | ||
2010-11-30 22:41 <hoRn> cedk: should i contact the original author before? | ||
2010-11-30 22:42 <cedk> hoRn: it is as you want, the code is GPL2+ so you can put yours under GPL3+ | ||
2010-11-30 22:42 <cedk> hoRn: as soon as you keep the copyright notice of NaN | ||
2010-11-30 22:42 <hoRn> cedk: OK | ||
2010-11-30 22:42 <cedk> hoRn: but you can inform them to be nice | ||
2010-11-30 22:42 <hoRn> cedk: i will do so | ||
2010-11-30 22:46 -!- gavinf(~gavinf@196-215-106-210.dynamic.isadsl.co.za) has joined #tryton | ||
2010-11-30 23:06 -!- yangoon_rm(~mathiasb@p549F6B0E.dip.t-dialin.net) has joined #tryton | ||
2010-11-30 23:29 <plantian> cedk: Did someone start the production module I saw a comment on MRP and its in the goals but I'm not sure the production module in the goals are the same as MRP? | ||
2010-11-30 23:41 <cedk> plantian: it is the same | ||
2010-11-30 23:49 -!- jbunting(~jbunting@99-5-88-198.lightspeed.nsvltn.sbcglobal.net) has left #tryton | ||
2010-11-30 23:52 -!- blast_hardcheese(~blast_har@dsl092-043-124.lax1.dsl.speakeasy.net) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!