IRC logs of #tryton for Thursday, 2010-10-14

chat.freenode.net #tryton log beginning Thu Oct 14 00:00:02 CEST 2010
-!- FWiesing(~FWiesing@85-126-100-130.work.xdsl-line.inode.at) has joined #tryton01:05
-!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton01:19
-!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton01:45
-!- pheller(~pheller@2002:ad30:d8c3:0:fa1e:dfff:fee6:aabf) has joined #tryton02:10
-!- ikks(~ikks@190.158.112.13) has joined #tryton02:58
-!- svaksha_(~svaksha@unaffiliated/svaksha) has joined #tryton03:36
-!- pheller(~pheller@2002:ad30:d8c3:0:fa1e:dfff:fee6:aabf) has joined #tryton03:41
-!- gremly(~gremly@190.26.155.61) has joined #tryton04:44
-!- yangoon(~mathiasb@p549F5DF5.dip.t-dialin.net) has joined #tryton05:18
-!- vladimir_(~vladimir@213.151.246.136) has joined #tryton07:09
-!- Timitos(~kp@88.217.184.172) has joined #tryton07:11
-!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton07:18
-!- evernichon(~evernicho@i01m-62-35-143-35.d4.club-internet.fr) has joined #tryton07:59
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:16
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton08:35
-!- paepke(~paepke@p4FEB2F3E.dip.t-dialin.net) has joined #tryton08:36
-!- svaksha(~svaksha@unaffiliated/svaksha) has joined #tryton08:37
-!- svaksha(~svaksha@unaffiliated/svaksha) has joined #tryton08:39
-!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton08:39
-!- eLBati(~elbati@94.160.48.78) has joined #tryton08:40
-!- ecarreras(~under@81.184.3.75.static.user.ono.com) has joined #tryton09:04
-!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton09:04
-!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton09:06
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton09:16
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:30
-!- eLBati(~elbati@94.162.11.80) has joined #tryton09:31
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton10:55
-!- heffer(~felix@fedora/heffer) has joined #tryton10:59
-!- blast_hardcheese(~blast_har@dsl092-043-124.lax1.dsl.speakeasy.net) has joined #tryton10:59
-!- ready(~ready@tiu.ligno.com) has joined #tryton10:59
-!- dba(~daniel@static.88-198-196-34.clients.your-server.de) has joined #tryton10:59
-!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton10:59
-!- tekoholic(~quassel@63-231-67-208.hlrn.qwest.net) has joined #tryton10:59
-!- lem0na(~lem0na@84.40.71.19) has joined #tryton10:59
-!- yangoon(~mathiasb@p549F5DF5.dip.t-dialin.net) has joined #tryton10:59
-!- vladimir_(~vladimir@213.151.246.136) has joined #tryton10:59
-!- svaksha(~svaksha@unaffiliated/svaksha) has joined #tryton10:59
-!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton10:59
-!- eLBati(~elbati@94.162.11.80) has joined #tryton10:59
-!- Timitos(~kp@88.217.184.172) has joined #tryton10:59
-!- cedk(~ced@ced.homedns.org) has joined #tryton10:59
-!- Okko(~Okko@213-132-190-10.multikabel.nl) has joined #tryton11:50
-!- ikks(~ikks@190.158.112.13) has joined #tryton13:13
-!- eLBati(~elbati@93-32-234-184.ip35.fastwebnet.it) has joined #tryton13:14
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton13:26
pjstevnsWhat am I doing wrong? I keep getting:13:27
pjstevnsCalling method workflow_trigger_validate on model xxx.xxx is not allowed!13:27
pjstevnswhere to look?13:27
udonopjstevns: do you have a code snippet for me?13:33
udonopjstevns: it could be a permissions problem.13:37
udonopjstevns: maybe the user is not in the needed group which will be needed to call the workflow trigger.13:39
pjstevnsudono: I'm using this transition:13:45
pjstevns               <record model="workflow.transition" id="contract_transition_draft_active">13:45
pjstevns                        <field name="act_from" ref="contract_activity_draft"/>13:45
pjstevns                        <field name="act_to" ref="contract_activity_active"/>13:45
pjstevns                        <field name="signal">activate</field>13:45
pjstevns                        <field name="group" ref="account.group_account"/>13:45
pjstevns                </record>13:45
pjstevnswith these states:13:45
pjstevns               <record model="workflow.activity" id="contract_activity_draft">13:45
pjstevns                        <field name="name">Draft</field>13:45
pjstevns                        <field name="workflow" ref="contract_workflow"/>13:45
pjstevns                        <field name="kind">function</field>13:45
pjstevns                        <field name="action">write({'state':'draft'})</field>13:46
pjstevns                        <field name="flow_start" eval="True"/>13:46
pjstevns                </record>13:46
pjstevns                <record model="workflow.activity" id="contract_activity_active">13:46
pjstevns                        <field name="name">Active</field>13:46
pjstevns                        <field name="workflow" ref="contract_workflow"/>13:46
pjstevns                        <field name="kind">function</field>13:46
pjstevns                        <field name="action">write({'state':'active'})</field>13:46
pjstevns                </record>13:46
pjstevnsusing the 'admin' user13:46
udonoACTION heads down, code wave is rolling about us13:46
udonopjstevns: did you heared about paste.pocoo.org?13:46
pjstevnsWhat's that? A paste-bin?13:47
udonopjstevns: its for pasing code with more then 3 Lines. You provide the link to this irc13:47
pjstevnsOk, I'll remember. Not that its *that* busy here...13:48
udonopjstevns: can you please paste the code into a paste bin? It is better to read and to comment.13:48
pjstevnsudono: http://paste.pocoo.org/show/275367/13:50
udonopjstevns: ... and the complete traceback, please13:50
pjstevnsudono: http://paste.pocoo.org/show/275368/13:51
udonopjstevns: did you put restrictions on the workflow?13:51
pjstevnsEh, what's that?13:52
pjstevnsthere are 'states' and 'readonly' filters on the buttons. That's all!13:52
udonopjstevns: I mean did you restrict the workfow with ir.model.access anywhere?13:54
pjstevnsudono: no I have a single access rule: ir.rule.group that uses global_p=True13:55
pjstevnsudono: http://paste.pocoo.org/show/275370/13:57
udonopjstevns: did you test your code with a freshly created database?13:58
pjstevnsMmm, not sure. Let's do that.13:58
udonopjstevns: FYI when you change several stuff in the setup, you must request yourself: Did I need to migrate? While developing, just skip the old database and create a new one. In Production you need to provide migration code in def init() and upgrading the database....14:01
pjstevnsudono: problem persists on fresh database :-(14:05
udonopjstevns: did you have something like http://hg.tryton.org/1.6/modules/account_statement/file/71eb8d1c760a/statement.py#l4614:05
pjstevnsUh, no I don't. Makes sense since the traceback came from the dispatcher14:06
bechamelpjstevns: does your model inherits form ModelWorkflow ?14:16
pjstevnsbechamel: that's it! Thanks! silly noob mistakes...14:19
bechamelpjstevns: ;)14:20
-!- Okko(~Okko@62.58.29.41) has joined #tryton14:38
-!- essich(~essich@p4FCF8CE2.dip0.t-ipconnect.de) has joined #tryton14:47
-!- lem0na(~lem0na@84.40.71.19) has joined #tryton15:06
cedkudono: hi, will you continue the doctest?15:59
udonocedk: Will it be ok for using it like a tutorial in the long run, for setting up an enterprise with tryton?16:01
udonocedk: like mentioned under http://docs.python.org/library/doctest.html tutorial documentation16:03
cedkudono: why not but scenario should also create operation records not only configuration16:04
cedkudono: like creating sale/purchase/invoice etc.16:04
udonocedk: yes, that's the goal16:04
udonocedk: do you know if I can run doctests over several documents in the same context?16:05
cedkudono: I don't know16:06
-!- zodman(~andres-va@200.67.176.253) has joined #tryton16:10
udonocedk: I will continue the doctest, since it fits better my needs16:20
cedkudono: great :-)16:21
udonocedk: I will open a new review for this16:22
-!- pheller(~pheller@pool-173-48-216-195.bstnma.fios.verizon.net) has joined #tryton16:22
-!- Okko(~Okko@62.58.29.41) has joined #tryton16:33
-!- gremly(~gremly@200.106.202.91) has joined #tryton16:49
phellercedk: sorry about sending that codereview to the list.  Do you prefer I simply create an email to tryton-dev, outside of codereview, with a link?16:55
cedkpheller: yes16:55
phellercedk: ok.  and how do you want me to provide the patch?  Should I open a bug report, and attach it to the report?16:56
phellercedk: .... also, the patch I uploaded for issue1681 hasn't been applied yet...16:57
cedkpheller: you can send me the patch during testing period :-)17:00
cedkpheller: the issue is that it comes a little bit late and the repo are freezed17:04
phellercedk: ah, ok, I will send you both the mac and Transaction patch files then.17:12
phellercedk: but first, I'll make one last call to tryton-dev re: the GUI naming standard ("Tryton" vs. "tryton")17:13
phellercedk: and I will update the patch for the Mac based on that result.17:13
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton17:26
cedkpheller: ok17:45
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton17:54
-!- evernichon(~evernicho@i01m-62-35-143-35.d4.club-internet.fr) has left #tryton18:26
phellerAnyone seen this when trying to print a report: UndefinedError: 1 has no member named "header" ?19:11
-!- enlightx(~enlightx@dynamic-adsl-94-34-184-197.clienti.tiscali.it) has joined #tryton19:13
-!- eLBati(~elbati@94.163.14.31) has joined #tryton19:26
udonopheller: never seen19:41
udonopheller: bud did not test reports on trunk this time... do you have the error with tryton 1.6 ?19:42
udono... also19:43
-!- chrue(~chrue@dialin-65225.ewetel.net) has joined #tryton19:43
phellerudono: I did not try it with 1.6.... I'm relatively new to tryton, and just jumped right in with Trunk.  I will try it on 1.620:10
-!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton20:16
-!- paepke(~paepke@p4FEB2F3E.dip.t-dialin.net) has joined #tryton20:18
paepke4 days to go. exist a specific test plan where i could help?20:18
udonopaepke: Visual testing of the GUI20:21
paepkeudono, it looks good. done ;-)20:21
udonopaepke: Just get an overview if everything is working in all possible situations ;-)20:22
paepkeudono, hehe. ok.20:22
paepkeudono, should the migration already work? so i can update my database and go with some real data?20:23
udonopaepke: yes, but backup the database before and make a copy of your trytond20:24
paepkeudono, have a seperate trytond-user for testing and seperate directories.20:25
paepkeudono, i know it can blew up anything20:25
udonopaepke: maybe you can verify if trunk is generating invoice reports and tell pheller about20:26
paepkeudono, invoice reports? ok. is there a issue number?20:27
phellerfor me, invoices print ok, but other reports -- like picking lists, etc.20:27
phellersee https://bugs.tryton.org/roundup/issue172520:27
paepkepheller, ok. give it a try.20:28
phellerpaepke: thanks20:28
paepkepheller, i'll test the osx-package from you as soon i get back to my office tomorrow20:28
phellerok, there will be one more update tonight for this (application name tryton -> Tryton), then I will post another build of the application bundle20:29
paepkepheller, ok. will you package a .dmg?20:29
phelleryes20:30
paepkepheller, great. looking forward20:30
phellerpaepke: I will send a new link to you when I have built it20:30
paepkepheller, cool. thanx20:30
phellerpaepke: macht nichts20:30
paepkepheller, "keine ursache" ;-)20:31
yangoon:D20:31
phellerpaepke: ah, ok ok... yes, that is better :-)20:32
paepkepheller, you can join us in the german channel #tryton.de :-D20:32
paepkebtw. what is the current best way to keep my 1.7/1.8 up2date?20:34
paepkehgforest isn't working any more?20:34
phellernested extension20:34
phellerhttp://code.google.com/p/hgnested/20:35
paepkegreat. already installable by "easy_install hgnested"20:35
phellernice, did not know this.20:36
phellerafter installing and activating the extension, just "hg npull ; hg nupdate"20:36
yangoonhg npull -u20:38
phelleroh, that's easier :-)  thanks20:38
paepkenclone isn't working`20:38
yangoonpaepke: why?20:39
phellerDid you activate the extension in ~/.hgrc ?20:39
paepkepheller, gotcha20:39
pheller[extensions]20:39
phellerhgnested=20:39
paepkeok works.20:40
paepkedamn i have to read the documentation...20:40
paepkeits pretty well documented in the tryton wiki20:42
paepkethanx yangoon and pheller20:42
phelleryou're welcome20:42
paepkepheller, first of all: got the same error. investigating further...21:04
paepkewhoo. i think i got it.21:24
paepkeACTION is dancing21:24
phellerpaepke: what have you fixed?21:25
paepkepheller, 3 bytes21:25
phellerpaepke: haha, nice -- what was it?21:25
paepkehttp://paste.pocoo.org/show/275532/21:26
paepkecan someone confirm i did the right thing?21:26
phellerpaepke: I think you must have.  That explains why it was complaining about the header -- there would be no company.id.header21:27
paepkeid doesn't make sense to put the id into the context and not the company object21:28
-!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton21:28
paepkedidn't remember, how wan't cedric a patch?21:28
phellercommit the change in your local repo, then export it21:30
phellerwithin the module directory:21:30
phellerhg commit -m "localcontext needs object, not id.  Fixes issue1725"21:31
paepkehg export -r -121:31
paepkeok.21:31
phellerI generally do "hg export tip -o issue1725.patch", then attach the file to the bug report21:32
phellerpaepke: cool, thanks for fixing that for me21:32
paepkepheller, gern geschehen21:33
paepkepheller, its a good practise for me finding that kind of bugs.21:37
phellerpaepke: yes, agreed.  Had I looked a little more closely, I think maybe I would have noticed "UndefinedError: 1" was referring to the company id.  grr!  :-)21:39

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