IRC logs of #tryton for Monday, 2010-12-20

chat.freenode.net #tryton log beginning Mon Dec 20 00:00:02 CET 2010
2010-12-20 01:18 -!- Timitos(~kp@88.217.184.172) has left #tryton
2010-12-20 01:34 -!- yangoon_rm(~mathiasb@p549F4537.dip.t-dialin.net) has joined #tryton
2010-12-20 01:40 -!- jcm(~jcm@cxr69-10-88-172-230-130.fbx.proxad.net) has joined #tryton
2010-12-20 02:19 -!- gremly(~gremly@190.25.33.40) has joined #tryton
2010-12-20 05:18 -!- yangoon(~mathiasb@p549F6A64.dip.t-dialin.net) has joined #tryton
2010-12-20 07:52 -!- Timitos(~kp@88.217.184.172) has joined #tryton
2010-12-20 07:56 -!- Timitos(~kp@88.217.184.172) has left #tryton
2010-12-20 08:20 -!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton
2010-12-20 08:22 -!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has left #tryton
2010-12-20 08:51 -!- vladimir_(~vladimir@213.151.246.136) has joined #tryton
2010-12-20 08:52 -!- paepke(~paepke@p4FEB022D.dip0.t-ipconnect.de) has joined #tryton
2010-12-20 08:57 -!- jcm(~jcm@symetrie.net) has joined #tryton
2010-12-20 09:11 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-12-20 09:16 -!- paepke(~paepke@p4FEB022D.dip0.t-ipconnect.de) has joined #tryton
2010-12-20 09:17 -!- okko(~okko@62.58.29.41) has joined #tryton
2010-12-20 09:27 -!- nicoe(~nicoe@193.200.42.57) has joined #tryton
2010-12-20 09:29 -!- paepke(~paepke@p4FEB022D.dip0.t-ipconnect.de) has joined #tryton
2010-12-20 09:40 -!- paepke(~paepke@p4FEB0568.dip0.t-ipconnect.de) has joined #tryton
2010-12-20 10:18 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton
2010-12-20 10:38 -!- paepke_(~paepke@p4FEB0568.dip0.t-ipconnect.de) has joined #tryton
2010-12-20 10:46 -!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton
2010-12-20 11:35 -!- vincentvdl(~vincent@62.58.29.41) has joined #tryton
2010-12-20 11:54 <vincentvdl> Hi all. New day, new question: What is the best way to add a new option to an existing selection field from a different module?
2010-12-20 11:54 <vincentvdl> If I simply redefine the field in the new module I get nasty errors when that new value is selected.
2010-12-20 11:56 <vincentvdl> If I add a new tuple to the field in __init__ using copy and then add the tuple via .selection.append method, I?ll get nasty errors when creating a new database which have to do with translation issues
2010-12-20 12:31 <cedk> vincentvdl: you must append in __init__ but you must copy the list before changing it
2010-12-20 12:57 -!- paepke(~paepke@p4FEB0568.dip0.t-ipconnect.de) has left #tryton
2010-12-20 13:13 <vincentvdl> cedk: If I only copy the list "copy.copy(self.priority.selection)" I get validation errors when the new priority is selected ("ValidateError the value is not in selection"). If I copy the whole selection field "copy.copy(self.priority)" then the module works, but as I mentioned, when creating a new database I get an error on duplicate translation that can not be added
2010-12-20 13:16 <cedk> vincentvdl: copy/paste the __init__ code
2010-12-20 13:17 <vincentvdl> cedk: self.priority = copy.copy(self.priority)
2010-12-20 13:17 <vincentvdl> cedk: self.priority.selection.append(('fyi', 'FYI'))
2010-12-20 13:18 <vincentvdl> cedk: and "import copy" at the header of course
2010-12-20 13:18 <cedk> vincentvdl: you must also copy selection
2010-12-20 13:19 <cedk> vincentvdl: self.priority.selection = copy.copy(self.priority.selection)
2010-12-20 13:19 <vincentvdl> cedk: Clear... going to test now
2010-12-20 13:24 -!- ikks(~ikks@190.158.100.177) has joined #tryton
2010-12-20 13:28 -!- okko(~okko@62.58.29.41) has joined #tryton
2010-12-20 13:29 <vincentvdl> cedk: thanks, needs further testing but it seems to work... At first sight no crashes when creating new db and when using field anymore. Thanks!
2010-12-20 14:00 -!- ikks(~ikks@190.158.100.177) has joined #tryton
2010-12-20 14:44 -!- pepeu(~manuel@201.155.193.192) has joined #tryton
2010-12-20 15:00 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2010-12-20 16:02 -!- nicoe(~nicoe@193.200.42.57) has joined #tryton
2010-12-20 17:21 -!- mhi1(~mhi@pd95b104a.dip0.t-ipconnect.de) has joined #tryton
2010-12-20 17:46 -!- paepke(~paepke@p4FEB0568.dip0.t-ipconnect.de) has joined #tryton
2010-12-20 17:54 -!- enlightx(~enlightx@cust.static.84-253-54-235.cybernet.ch) has joined #tryton
2010-12-20 17:54 -!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton
2010-12-20 18:08 <Kavli> More problems with taxes. I got it working in the test system, but in the sharp system I always get the error message "You try to read records that don't exist anymore!"
2010-12-20 18:08 <Kavli> (Document type: Tax Code) when I enter the Debit amount. I'm entering from Entries>Open Journal.
2010-12-20 18:12 <bechamel> Kavli: this message appear if 1) the record you try to read/write does not exist in the db or if 2) the record exist but the user doesn't have the permition to read/write it
2010-12-20 18:13 <Kavli> bechamel: Ok. The user that created the tax codes is the same as the one doing the moves, and that user has got all privileges.
2010-12-20 18:17 <cedk> Kavli: strange, you should put some print statement to understand which record makes the fault
2010-12-20 18:20 <Kavli> cedk: Probably I've fucked around too much in the production system too. I havent posted that many moves there, so I'll try from scratch, and then we'll see how it goes.
2010-12-20 18:21 <Kavli> Is there a sequence how the tax groups, codes and taxes should get created?
2010-12-20 18:21 <Kavli> Maybe there is a dangling reference?
2010-12-20 18:21 -!- vincentvdl(~vincent@62.58.29.41) has left #tryton
2010-12-20 18:27 -!- nicoe(~nicoe@193.200.42.57) has left #tryton
2010-12-20 18:28 <cedk> Kavli: I don't think
2010-12-20 18:33 <Kavli> cedk: Looking in the DB, there is only one tax group defined and it has ID=1. All taxes defined has group pointing to id=1.
2010-12-20 18:52 <cedk> Kavli: you must put print statement where the exception is raised
2010-12-20 19:14 -!- vladimir_(~vladimir@213.151.246.136) has joined #tryton
2010-12-20 19:15 <Kavli> cedk: I've dropped the DB now and started from scratch. If I get the same problem, I'll look harder into it. I have a backup of the database, so I can reproduce the problem, if you want me to. Just need to get the books into the computer before xmas. :-)
2010-12-20 19:17 -!- vladimir_(~vladimir@213.151.246.136) has joined #tryton
2010-12-20 19:39 -!- nicoe(~nicoe@193.200.42.57) has joined #tryton
2010-12-20 19:48 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-12-20 20:21 -!- woakas(~woakas@200.106.202.91) has joined #tryton
2010-12-20 20:25 -!- enlightx(~enlightx@xdsl-188-155-210-198.adslplus.ch) has joined #tryton
2010-12-20 20:30 -!- paepke(~paepke@p4FEB0568.dip0.t-ipconnect.de) has joined #tryton
2010-12-20 20:50 -!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-12-20 20:55 <Kavli> cedk: Ok. I solved the problem with the tax-code stuff. Where the taxes are defined, there is a tab where references to tax-codes are to be filled in. As soon as I filled in those it worked. Maybe those boxes should be compulsory to fill in? (make them red when you try to define a tax, without linking a tax group?)
2010-12-20 21:11 <cedk> Kavli: It will be great if you can fill an issue with a scenario to reproduce th eproblem
2010-12-20 21:21 <Kavli> cedk: Ok. I'm filling an issue now on the tracking system.
2010-12-20 21:30 -!- enlightx(~enlightx@xdsl-188-155-210-198.adslplus.ch) has joined #tryton
2010-12-20 21:34 <Kavli> cedk: Ok. Hope the issue is understandable.
2010-12-20 21:40 <Kavli> Hmm. Posted the issue, but I can't see it... --Tagged it as a "wish".
2010-12-20 21:43 -!- nicoe(~nicoe@193.200.42.57) has left #tryton
2010-12-20 21:43 -!- nicoe(~nicoe@193.200.42.57) has joined #tryton
2010-12-20 21:44 -!- nicoe(~nicoe@193.200.42.57) has left #tryton
2010-12-20 21:44 -!- nicoe(~nicoe@193.200.42.57) has joined #tryton
2010-12-20 21:50 -!- chrue(~chrue@host-091-097-059-099.ewe-ip-backbone.de) has joined #tryton
2010-12-20 21:56 <Kavli> cedk: issue 1787 and 1788 on the tracker. 1787 is a general description. 1788 is filed as a bug report.
2010-12-20 22:09 <cedk> Kavli: why did you create two issues?
2010-12-20 22:18 <Kavli> cedk: The first one never showed up when I tried to review it... Feel free to delete it.
2010-12-20 22:20 <Kavli> cedk: None of them shows up when I select "Your Issues", either... Nevermind.
2010-12-20 22:29 -!- nicoe(~nicoe@193.200.42.57) has left #tryton
2010-12-20 22:30 -!- nicoe(~nicoe@193.200.42.57) has joined #tryton
2010-12-20 22:57 <cedk> Kavli: it is because the issue is not assigned to you

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