chat.freenode.net #tryton log beginning Sat Jan 26 00:00:01 CET 2013 | ||
2013-01-26 14:24 <eriam> yes, I got it working ! | ||
2013-01-26 18:00 -!- calbasi(~joan@161.44.14.37.dynamic.jazztel.es) has left #tryton | ||
2013-01-26 19:23 -!- caravel(~caravel@83.230.147.28) has left #tryton | ||
2013-01-26 21:01 <plantian> hey guys, does anyone have any thoughts on why calling an action keyword that starts a wizard would run the wizard and then afterwards produce this error: https://gist.github.com/4644261 ? | ||
2013-01-26 21:02 <plantian> The wizard does not reference purchase.purchase models at all. | ||
2013-01-26 21:03 <plantian> Here is my wizard -- https://gist.github.com/4644279 | ||
2013-01-26 21:44 <cedk> plantian: you are running the wizard: HandleShipmentException | ||
2013-01-26 21:47 <plantian> cedk: What is running it? When I call pack/done on the shipments? | ||
2013-01-26 21:49 <plantian> I click on a single sale, then I click the Action button and select "Close Sale" (a keyword connected to my wizard), then my wizard appears to run (based on server side logging) but then this exception happens. | ||
2013-01-26 22:00 <plantian> I guess it is because I use StateAction instead of StateTransition. | ||
2013-01-26 22:00 <plantian> Ha, sometimes I wish debugging was a little bit easier. | ||
2013-01-26 22:03 <plantian> It isn't clear why the action would start the handle shipment exception though but it doesn't happen anymore when using the transition. | ||
2013-01-26 22:10 <cedk> plantian: StateAction is to run an action so if you put the id of this wizard, it is normal it runs | ||
2013-01-26 22:13 <plantian> cedk: I guess I don't understand, at worst it would have just run the same wizard twice. Why would it run another unrelated wizard? | ||
2013-01-26 22:16 <cedk> plantian: it depends of the id you give to StateAction | ||
2013-01-26 22:20 <plantian> cedk: I'm not sure if we are mis-understanding each other, here is clearer example -- https://gist.github.com/4644665 runs fine, but https://gist.github.com/4644691 produces this error: https://gist.github.com/4644685 | ||
2013-01-26 22:21 <cedk> plantian: this 'sale_wizard.close_sale_keyword' should have the same id as the wizard action of purchase | ||
2013-01-26 22:21 <plantian> https://gist.github.com/4644700 | ||
2013-01-26 22:21 <cedk> plantian: you must put the id of an action | ||
2013-01-26 22:22 <cedk> plantian: yes you are using the keyword and not the action | ||
2013-01-26 22:22 <plantian> cedk: I understand I made a mistake but why does it call the purchase wizard? | ||
2013-01-26 22:22 <cedk> plantian: because it has the same id as your keyword | ||
2013-01-26 22:23 <plantian> cedk: I don't want to call an action, as far as I can tell the keyword in the xml will call the wizard right? | ||
2013-01-26 22:23 <cedk> plantian: don't understand | ||
2013-01-26 22:24 <cedk> plantian: why are you using a StateAction? | ||
2013-01-26 22:25 <plantian> cedk: I thought I needed it, but it seems that I do not. I want the user to run the wizard by clicking on it in the keyword menu for a sale. | ||
2013-01-26 22:26 <plantian> cedk: But it seems that I don't need it and the behaviour when using StateAction is very unexpected. It is okay though. No real reason to look further into it. | ||
2013-01-26 22:30 <cedk> plantian: http://doc.tryton.org/2.6/trytond/doc/ref/wizard.html#stateaction |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!