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

chat.freenode.net #tryton log beginning Thu Oct 14 00:00:02 CEST 2010
2010-10-14 01:05 -!- FWiesing(~FWiesing@85-126-100-130.work.xdsl-line.inode.at) has joined #tryton
2010-10-14 01:19 -!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton
2010-10-14 01:45 -!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton
2010-10-14 02:10 -!- pheller(~pheller@2002:ad30:d8c3:0:fa1e:dfff:fee6:aabf) has joined #tryton
2010-10-14 02:58 -!- ikks(~ikks@190.158.112.13) has joined #tryton
2010-10-14 03:36 -!- svaksha_(~svaksha@unaffiliated/svaksha) has joined #tryton
2010-10-14 03:41 -!- pheller(~pheller@2002:ad30:d8c3:0:fa1e:dfff:fee6:aabf) has joined #tryton
2010-10-14 04:44 -!- gremly(~gremly@190.26.155.61) has joined #tryton
2010-10-14 05:18 -!- yangoon(~mathiasb@p549F5DF5.dip.t-dialin.net) has joined #tryton
2010-10-14 07:09 -!- vladimir_(~vladimir@213.151.246.136) has joined #tryton
2010-10-14 07:11 -!- Timitos(~kp@88.217.184.172) has joined #tryton
2010-10-14 07:18 -!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-10-14 07:59 -!- evernichon(~evernicho@i01m-62-35-143-35.d4.club-internet.fr) has joined #tryton
2010-10-14 08:16 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-10-14 08:35 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-10-14 08:36 -!- paepke(~paepke@p4FEB2F3E.dip.t-dialin.net) has joined #tryton
2010-10-14 08:37 -!- svaksha(~svaksha@unaffiliated/svaksha) has joined #tryton
2010-10-14 08:39 -!- svaksha(~svaksha@unaffiliated/svaksha) has joined #tryton
2010-10-14 08:39 -!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-10-14 08:40 -!- eLBati(~elbati@94.160.48.78) has joined #tryton
2010-10-14 09:04 -!- ecarreras(~under@81.184.3.75.static.user.ono.com) has joined #tryton
2010-10-14 09:04 -!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton
2010-10-14 09:06 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton
2010-10-14 09:16 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-10-14 09:30 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-10-14 09:31 -!- eLBati(~elbati@94.162.11.80) has joined #tryton
2010-10-14 10:55 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-10-14 10:59 -!- heffer(~felix@fedora/heffer) has joined #tryton
2010-10-14 10:59 -!- blast_hardcheese(~blast_har@dsl092-043-124.lax1.dsl.speakeasy.net) has joined #tryton
2010-10-14 10:59 -!- ready(~ready@tiu.ligno.com) has joined #tryton
2010-10-14 10:59 -!- dba(~daniel@static.88-198-196-34.clients.your-server.de) has joined #tryton
2010-10-14 10:59 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-10-14 10:59 -!- tekoholic(~quassel@63-231-67-208.hlrn.qwest.net) has joined #tryton
2010-10-14 10:59 -!- lem0na(~lem0na@84.40.71.19) has joined #tryton
2010-10-14 10:59 -!- yangoon(~mathiasb@p549F5DF5.dip.t-dialin.net) has joined #tryton
2010-10-14 10:59 -!- vladimir_(~vladimir@213.151.246.136) has joined #tryton
2010-10-14 10:59 -!- svaksha(~svaksha@unaffiliated/svaksha) has joined #tryton
2010-10-14 10:59 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton
2010-10-14 10:59 -!- eLBati(~elbati@94.162.11.80) has joined #tryton
2010-10-14 10:59 -!- Timitos(~kp@88.217.184.172) has joined #tryton
2010-10-14 10:59 -!- cedk(~ced@ced.homedns.org) has joined #tryton
2010-10-14 11:50 -!- Okko(~Okko@213-132-190-10.multikabel.nl) has joined #tryton
2010-10-14 13:13 -!- ikks(~ikks@190.158.112.13) has joined #tryton
2010-10-14 13:14 -!- eLBati(~elbati@93-32-234-184.ip35.fastwebnet.it) has joined #tryton
2010-10-14 13:26 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton
2010-10-14 13:27 <pjstevns> What am I doing wrong? I keep getting:
2010-10-14 13:27 <pjstevns> Calling method workflow_trigger_validate on model xxx.xxx is not allowed!
2010-10-14 13:27 <pjstevns> where to look?
2010-10-14 13:33 <udono> pjstevns: do you have a code snippet for me?
2010-10-14 13:37 <udono> pjstevns: it could be a permissions problem.
2010-10-14 13:39 <udono> pjstevns: maybe the user is not in the needed group which will be needed to call the workflow trigger.
2010-10-14 13:45 <pjstevns> udono: I'm using this transition:
2010-10-14 13:45 <pjstevns> <record model="workflow.transition" id="contract_transition_draft_active">
2010-10-14 13:45 <pjstevns> <field name="act_from" ref="contract_activity_draft"/>
2010-10-14 13:45 <pjstevns> <field name="act_to" ref="contract_activity_active"/>
2010-10-14 13:45 <pjstevns> <field name="signal">activate</field>
2010-10-14 13:45 <pjstevns> <field name="group" ref="account.group_account"/>
2010-10-14 13:45 <pjstevns> </record>
2010-10-14 13:45 <pjstevns> with these states:
2010-10-14 13:45 <pjstevns> <record model="workflow.activity" id="contract_activity_draft">
2010-10-14 13:45 <pjstevns> <field name="name">Draft</field>
2010-10-14 13:45 <pjstevns> <field name="workflow" ref="contract_workflow"/>
2010-10-14 13:45 <pjstevns> <field name="kind">function</field>
2010-10-14 13:46 <pjstevns> <field name="action">write({'state':'draft'})</field>
2010-10-14 13:46 <pjstevns> <field name="flow_start" eval="True"/>
2010-10-14 13:46 <pjstevns> </record>
2010-10-14 13:46 <pjstevns> <record model="workflow.activity" id="contract_activity_active">
2010-10-14 13:46 <pjstevns> <field name="name">Active</field>
2010-10-14 13:46 <pjstevns> <field name="workflow" ref="contract_workflow"/>
2010-10-14 13:46 <pjstevns> <field name="kind">function</field>
2010-10-14 13:46 <pjstevns> <field name="action">write({'state':'active'})</field>
2010-10-14 13:46 <pjstevns> </record>
2010-10-14 13:46 <pjstevns> using the 'admin' user
2010-10-14 13:46 <udono> ACTION heads down, code wave is rolling about us
2010-10-14 13:46 <udono> pjstevns: did you heared about paste.pocoo.org?
2010-10-14 13:47 <pjstevns> What's that? A paste-bin?
2010-10-14 13:47 <udono> pjstevns: its for pasing code with more then 3 Lines. You provide the link to this irc
2010-10-14 13:48 <pjstevns> Ok, I'll remember. Not that its *that* busy here...
2010-10-14 13:48 <udono> pjstevns: can you please paste the code into a paste bin? It is better to read and to comment.
2010-10-14 13:50 <pjstevns> udono: http://paste.pocoo.org/show/275367/
2010-10-14 13:50 <udono> pjstevns: ... and the complete traceback, please
2010-10-14 13:51 <pjstevns> udono: http://paste.pocoo.org/show/275368/
2010-10-14 13:51 <udono> pjstevns: did you put restrictions on the workflow?
2010-10-14 13:52 <pjstevns> Eh, what's that?
2010-10-14 13:52 <pjstevns> there are 'states' and 'readonly' filters on the buttons. That's all!
2010-10-14 13:54 <udono> pjstevns: I mean did you restrict the workfow with ir.model.access anywhere?
2010-10-14 13:55 <pjstevns> udono: no I have a single access rule: ir.rule.group that uses global_p=True
2010-10-14 13:57 <pjstevns> udono: http://paste.pocoo.org/show/275370/
2010-10-14 13:58 <udono> pjstevns: did you test your code with a freshly created database?
2010-10-14 13:58 <pjstevns> Mmm, not sure. Let's do that.
2010-10-14 14:01 <udono> pjstevns: 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....
2010-10-14 14:05 <pjstevns> udono: problem persists on fresh database :-(
2010-10-14 14:05 <udono> pjstevns: did you have something like http://hg.tryton.org/1.6/modules/account_statement/file/71eb8d1c760a/statement.py#l46
2010-10-14 14:06 <pjstevns> Uh, no I don't. Makes sense since the traceback came from the dispatcher
2010-10-14 14:16 <bechamel> pjstevns: does your model inherits form ModelWorkflow ?
2010-10-14 14:19 <pjstevns> bechamel: that's it! Thanks! silly noob mistakes...
2010-10-14 14:20 <bechamel> pjstevns: ;)
2010-10-14 14:38 -!- Okko(~Okko@62.58.29.41) has joined #tryton
2010-10-14 14:47 -!- essich(~essich@p4FCF8CE2.dip0.t-ipconnect.de) has joined #tryton
2010-10-14 15:06 -!- lem0na(~lem0na@84.40.71.19) has joined #tryton
2010-10-14 15:59 <cedk> udono: hi, will you continue the doctest?
2010-10-14 16:01 <udono> cedk: Will it be ok for using it like a tutorial in the long run, for setting up an enterprise with tryton?
2010-10-14 16:03 <udono> cedk: like mentioned under http://docs.python.org/library/doctest.html tutorial documentation
2010-10-14 16:04 <cedk> udono: why not but scenario should also create operation records not only configuration
2010-10-14 16:04 <cedk> udono: like creating sale/purchase/invoice etc.
2010-10-14 16:04 <udono> cedk: yes, that's the goal
2010-10-14 16:05 <udono> cedk: do you know if I can run doctests over several documents in the same context?
2010-10-14 16:06 <cedk> udono: I don't know
2010-10-14 16:10 -!- zodman(~andres-va@200.67.176.253) has joined #tryton
2010-10-14 16:20 <udono> cedk: I will continue the doctest, since it fits better my needs
2010-10-14 16:21 <cedk> udono: great :-)
2010-10-14 16:22 <udono> cedk: I will open a new review for this
2010-10-14 16:22 -!- pheller(~pheller@pool-173-48-216-195.bstnma.fios.verizon.net) has joined #tryton
2010-10-14 16:33 -!- Okko(~Okko@62.58.29.41) has joined #tryton
2010-10-14 16:49 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2010-10-14 16:55 <pheller> cedk: 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?
2010-10-14 16:55 <cedk> pheller: yes
2010-10-14 16:56 <pheller> cedk: ok. and how do you want me to provide the patch? Should I open a bug report, and attach it to the report?
2010-10-14 16:57 <pheller> cedk: .... also, the patch I uploaded for issue1681 hasn't been applied yet...
2010-10-14 17:00 <cedk> pheller: you can send me the patch during testing period :-)
2010-10-14 17:04 <cedk> pheller: the issue is that it comes a little bit late and the repo are freezed
2010-10-14 17:12 <pheller> cedk: ah, ok, I will send you both the mac and Transaction patch files then.
2010-10-14 17:13 <pheller> cedk: but first, I'll make one last call to tryton-dev re: the GUI naming standard ("Tryton" vs. "tryton")
2010-10-14 17:13 <pheller> cedk: and I will update the patch for the Mac based on that result.
2010-10-14 17:26 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-10-14 17:45 <cedk> pheller: ok
2010-10-14 17:54 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-10-14 18:26 -!- evernichon(~evernicho@i01m-62-35-143-35.d4.club-internet.fr) has left #tryton
2010-10-14 19:11 <pheller> Anyone seen this when trying to print a report: UndefinedError: 1 has no member named "header" ?
2010-10-14 19:13 -!- enlightx(~enlightx@dynamic-adsl-94-34-184-197.clienti.tiscali.it) has joined #tryton
2010-10-14 19:26 -!- eLBati(~elbati@94.163.14.31) has joined #tryton
2010-10-14 19:41 <udono> pheller: never seen
2010-10-14 19:42 <udono> pheller: bud did not test reports on trunk this time... do you have the error with tryton 1.6 ?
2010-10-14 19:43 <udono> ... also
2010-10-14 19:43 -!- chrue(~chrue@dialin-65225.ewetel.net) has joined #tryton
2010-10-14 20:10 <pheller> udono: 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.6
2010-10-14 20:16 -!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton
2010-10-14 20:18 -!- paepke(~paepke@p4FEB2F3E.dip.t-dialin.net) has joined #tryton
2010-10-14 20:18 <paepke> 4 days to go. exist a specific test plan where i could help?
2010-10-14 20:21 <udono> paepke: Visual testing of the GUI
2010-10-14 20:21 <paepke> udono, it looks good. done ;-)
2010-10-14 20:22 <udono> paepke: Just get an overview if everything is working in all possible situations ;-)
2010-10-14 20:22 <paepke> udono, hehe. ok.
2010-10-14 20:23 <paepke> udono, should the migration already work? so i can update my database and go with some real data?
2010-10-14 20:24 <udono> paepke: yes, but backup the database before and make a copy of your trytond
2010-10-14 20:25 <paepke> udono, have a seperate trytond-user for testing and seperate directories.
2010-10-14 20:25 <paepke> udono, i know it can blew up anything
2010-10-14 20:26 <udono> paepke: maybe you can verify if trunk is generating invoice reports and tell pheller about
2010-10-14 20:27 <paepke> udono, invoice reports? ok. is there a issue number?
2010-10-14 20:27 <pheller> for me, invoices print ok, but other reports -- like picking lists, etc.
2010-10-14 20:27 <pheller> see https://bugs.tryton.org/roundup/issue1725
2010-10-14 20:28 <paepke> pheller, ok. give it a try.
2010-10-14 20:28 <pheller> paepke: thanks
2010-10-14 20:28 <paepke> pheller, i'll test the osx-package from you as soon i get back to my office tomorrow
2010-10-14 20:29 <pheller> ok, there will be one more update tonight for this (application name tryton -> Tryton), then I will post another build of the application bundle
2010-10-14 20:29 <paepke> pheller, ok. will you package a .dmg?
2010-10-14 20:30 <pheller> yes
2010-10-14 20:30 <paepke> pheller, great. looking forward
2010-10-14 20:30 <pheller> paepke: I will send a new link to you when I have built it
2010-10-14 20:30 <paepke> pheller, cool. thanx
2010-10-14 20:30 <pheller> paepke: macht nichts
2010-10-14 20:31 <paepke> pheller, "keine ursache" ;-)
2010-10-14 20:31 <yangoon> :D
2010-10-14 20:32 <pheller> paepke: ah, ok ok... yes, that is better :-)
2010-10-14 20:32 <paepke> pheller, you can join us in the german channel #tryton.de :-D
2010-10-14 20:34 <paepke> btw. what is the current best way to keep my 1.7/1.8 up2date?
2010-10-14 20:34 <paepke> hgforest isn't working any more?
2010-10-14 20:34 <pheller> nested extension
2010-10-14 20:35 <pheller> http://code.google.com/p/hgnested/
2010-10-14 20:35 <paepke> great. already installable by "easy_install hgnested"
2010-10-14 20:36 <pheller> nice, did not know this.
2010-10-14 20:36 <pheller> after installing and activating the extension, just "hg npull ; hg nupdate"
2010-10-14 20:38 <yangoon> hg npull -u
2010-10-14 20:38 <pheller> oh, that's easier :-) thanks
2010-10-14 20:38 <paepke> nclone isn't working`
2010-10-14 20:39 <yangoon> paepke: why?
2010-10-14 20:39 <pheller> Did you activate the extension in ~/.hgrc ?
2010-10-14 20:39 <paepke> pheller, gotcha
2010-10-14 20:39 <pheller> [extensions]
2010-10-14 20:39 <pheller> hgnested=
2010-10-14 20:40 <paepke> ok works.
2010-10-14 20:40 <paepke> damn i have to read the documentation...
2010-10-14 20:42 <paepke> its pretty well documented in the tryton wiki
2010-10-14 20:42 <paepke> thanx yangoon and pheller
2010-10-14 20:42 <pheller> you're welcome
2010-10-14 21:04 <paepke> pheller, first of all: got the same error. investigating further...
2010-10-14 21:24 <paepke> whoo. i think i got it.
2010-10-14 21:24 <paepke> ACTION is dancing
2010-10-14 21:25 <pheller> paepke: what have you fixed?
2010-10-14 21:25 <paepke> pheller, 3 bytes
2010-10-14 21:25 <pheller> paepke: haha, nice -- what was it?
2010-10-14 21:26 <paepke> http://paste.pocoo.org/show/275532/
2010-10-14 21:26 <paepke> can someone confirm i did the right thing?
2010-10-14 21:27 <pheller> paepke: I think you must have. That explains why it was complaining about the header -- there would be no company.id.header
2010-10-14 21:28 <paepke> id doesn't make sense to put the id into the context and not the company object
2010-10-14 21:28 -!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-10-14 21:28 <paepke> didn't remember, how wan't cedric a patch?
2010-10-14 21:30 <pheller> commit the change in your local repo, then export it
2010-10-14 21:30 <pheller> within the module directory:
2010-10-14 21:31 <pheller> hg commit -m "localcontext needs object, not id. Fixes issue1725"
2010-10-14 21:31 <paepke> hg export -r -1
2010-10-14 21:31 <paepke> ok.
2010-10-14 21:32 <pheller> I generally do "hg export tip -o issue1725.patch", then attach the file to the bug report
2010-10-14 21:32 <pheller> paepke: cool, thanks for fixing that for me
2010-10-14 21:33 <paepke> pheller, gern geschehen
2010-10-14 21:37 <paepke> pheller, its a good practise for me finding that kind of bugs.
2010-10-14 21:39 <pheller> paepke: 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! :-)

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