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

chat.freenode.net #tryton log beginning Mon Dec 20 00:00:02 CET 2010
-!- Timitos(~kp@88.217.184.172) has left #tryton01:18
-!- yangoon_rm(~mathiasb@p549F4537.dip.t-dialin.net) has joined #tryton01:34
-!- jcm(~jcm@cxr69-10-88-172-230-130.fbx.proxad.net) has joined #tryton01:40
-!- gremly(~gremly@190.25.33.40) has joined #tryton02:19
-!- yangoon(~mathiasb@p549F6A64.dip.t-dialin.net) has joined #tryton05:18
-!- Timitos(~kp@88.217.184.172) has joined #tryton07:52
-!- Timitos(~kp@88.217.184.172) has left #tryton07:56
-!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton08:20
-!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has left #tryton08:22
-!- vladimir_(~vladimir@213.151.246.136) has joined #tryton08:51
-!- paepke(~paepke@p4FEB022D.dip0.t-ipconnect.de) has joined #tryton08:52
-!- jcm(~jcm@symetrie.net) has joined #tryton08:57
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:11
-!- paepke(~paepke@p4FEB022D.dip0.t-ipconnect.de) has joined #tryton09:16
-!- okko(~okko@62.58.29.41) has joined #tryton09:17
-!- nicoe(~nicoe@193.200.42.57) has joined #tryton09:27
-!- paepke(~paepke@p4FEB022D.dip0.t-ipconnect.de) has joined #tryton09:29
-!- paepke(~paepke@p4FEB0568.dip0.t-ipconnect.de) has joined #tryton09:40
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton10:18
-!- paepke_(~paepke@p4FEB0568.dip0.t-ipconnect.de) has joined #tryton10:38
-!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton10:46
-!- vincentvdl(~vincent@62.58.29.41) has joined #tryton11:35
vincentvdlHi all. New day, new question: What is the best way to add a new option to an existing selection field from a different module?11:54
vincentvdlIf I simply redefine the field in the new module I get nasty errors when that new value is selected.11:54
vincentvdlIf 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 issues11:56
cedkvincentvdl: you must append in __init__ but you must copy the list before changing it12:31
-!- paepke(~paepke@p4FEB0568.dip0.t-ipconnect.de) has left #tryton12:57
vincentvdlcedk: 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 added13:13
cedkvincentvdl: copy/paste the __init__ code13:16
vincentvdlcedk: self.priority = copy.copy(self.priority)13:17
vincentvdlcedk: self.priority.selection.append(('fyi', 'FYI'))13:17
vincentvdlcedk: and "import copy" at the header of course13:18
cedkvincentvdl: you must also copy selection13:18
cedkvincentvdl: self.priority.selection = copy.copy(self.priority.selection)13:19
vincentvdlcedk: Clear... going to test now13:19
-!- ikks(~ikks@190.158.100.177) has joined #tryton13:24
-!- okko(~okko@62.58.29.41) has joined #tryton13:28
vincentvdlcedk: thanks, needs further testing but it seems to work... At first sight no crashes when creating new db and when using field anymore. Thanks!13:29
-!- ikks(~ikks@190.158.100.177) has joined #tryton14:00
-!- pepeu(~manuel@201.155.193.192) has joined #tryton14:44
-!- gremly(~gremly@200.106.202.91) has joined #tryton15:00
-!- nicoe(~nicoe@193.200.42.57) has joined #tryton16:02
-!- mhi1(~mhi@pd95b104a.dip0.t-ipconnect.de) has joined #tryton17:21
-!- paepke(~paepke@p4FEB0568.dip0.t-ipconnect.de) has joined #tryton17:46
-!- enlightx(~enlightx@cust.static.84-253-54-235.cybernet.ch) has joined #tryton17:54
-!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton17:54
KavliMore 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!"18:08
Kavli(Document type: Tax Code) when I enter the Debit amount. I'm entering from Entries>Open Journal.18:08
bechamelKavli: 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 it18:12
Kavlibechamel: Ok. The user that created the tax codes is the same as the one doing the moves, and that user has got all privileges.18:13
cedkKavli: strange, you should put some print statement to understand which record makes the fault18:17
Kavlicedk: 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.18:20
KavliIs there a sequence how the tax groups, codes and taxes should get created?18:21
KavliMaybe there is a dangling reference?18:21
-!- vincentvdl(~vincent@62.58.29.41) has left #tryton18:21
-!- nicoe(~nicoe@193.200.42.57) has left #tryton18:27
cedkKavli: I don't think18:28
Kavlicedk: 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.18:33
cedkKavli: you must put print statement where the exception is raised18:52
-!- vladimir_(~vladimir@213.151.246.136) has joined #tryton19:14
Kavlicedk: 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. :-)19:15
-!- vladimir_(~vladimir@213.151.246.136) has joined #tryton19:17
-!- nicoe(~nicoe@193.200.42.57) has joined #tryton19:39
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton19:48
-!- woakas(~woakas@200.106.202.91) has joined #tryton20:21
-!- enlightx(~enlightx@xdsl-188-155-210-198.adslplus.ch) has joined #tryton20:25
-!- paepke(~paepke@p4FEB0568.dip0.t-ipconnect.de) has joined #tryton20:30
-!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton20:50
Kavlicedk: 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?)20:55
cedkKavli: It will be great if you can fill an issue with a scenario to reproduce th eproblem21:11
Kavlicedk: Ok. I'm filling an issue now on the tracking system.21:21
-!- enlightx(~enlightx@xdsl-188-155-210-198.adslplus.ch) has joined #tryton21:30
Kavlicedk: Ok. Hope the issue is understandable.21:34
KavliHmm. Posted the issue, but I can't see it... --Tagged it as a "wish".21:40
-!- nicoe(~nicoe@193.200.42.57) has left #tryton21:43
-!- nicoe(~nicoe@193.200.42.57) has joined #tryton21:43
-!- nicoe(~nicoe@193.200.42.57) has left #tryton21:44
-!- nicoe(~nicoe@193.200.42.57) has joined #tryton21:44
-!- chrue(~chrue@host-091-097-059-099.ewe-ip-backbone.de) has joined #tryton21:50
Kavlicedk: issue 1787 and 1788 on the tracker. 1787 is a general description. 1788 is filed as a bug report.21:56
cedkKavli: why did you create two issues?22:09
Kavlicedk: The first one never showed up when I tried to review it... Feel free to delete it.22:18
Kavlicedk: None of them shows up when I select "Your Issues", either... Nevermind.22:20
-!- nicoe(~nicoe@193.200.42.57) has left #tryton22:29
-!- nicoe(~nicoe@193.200.42.57) has joined #tryton22:30
cedkKavli: it is because the issue is not assigned to you22:57

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!