chat.freenode.net #tryton log beginning Thu Aug 23 00:00:01 CEST 2018 | ||
-!- arooni15(~arooni@186-93-45-159.genericrev.cantv.net) has joined #tryton | 22:58 | |
-!- ChanServ(ChanServ@services.) has joined #tryton | 23:03 | |
-!- csotelo_(~csotelo@2001:1388:49c7:6a1:f48c:6fd6:442e:f8cd) has joined #tryton | 23:38 | |
-!- csotelo(~csotelo@2001:1388:49c7:6a1:f48c:6fd6:442e:f8cd) has joined #tryton | 00:04 | |
-!- csotelo_(~csotelo@190.238.161.17) has joined #tryton | 00:20 | |
-!- csotelo_(~csotelo@2001:1388:49c7:22d3:532a:3806:ba97:7726) has joined #tryton | 00:22 | |
-!- xcodinas_(~xcodinas@134.ip-5-196-28.eu) has joined #tryton | 00:23 | |
-!- pokoli(~pokoli@mail.koolpi.com) has joined #tryton | 00:24 | |
-!- thaneor1(~lenovo3@r179-25-165-106.dialup.adsl.anteldata.net.uy) has joined #tryton | 00:48 | |
-!- Hijiri13(~Hijiri@121.149.100.185) has joined #tryton | 01:19 | |
-!- navigator1988(~navigator@2607:fea8:c860:281:a977:caad:7703:35de) has joined #tryton | 01:45 | |
-!- yangoon1(~mathiasb@i59F5223E.versanet.de) has joined #tryton | 02:24 | |
-!- Erenzie15(~Erenzie@180.71.17.36) has joined #tryton | 03:49 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 03:51 | |
-!- csotelo(~csotelo@2001:1388:49c7:2304:73b0:3f4a:9cbc:6dcf) has joined #tryton | 03:55 | |
csotelo | hello coders, you know if there is a way to use a button to download a file ? I have created a zip file on the server and I need a way to get it from the client | 03:58 |
---|---|---|
-!- lucascastro(~lucascast@177-185-139-175.isotelco.net.br) has joined #tryton | 04:06 | |
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton | 05:07 | |
-!- zmijunkie(~Adium@i577B3B1D.versanet.de) has joined #tryton | 05:42 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:17 | |
-!- smorillo(4de166a0@gateway/web/cgi-irc/kiwiirc.com/ip.77.225.102.160) has joined #tryton | 06:44 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 06:55 | |
-!- sharkcz(~sharkcz@72.155.broadband6.iol.cz) has joined #tryton | 07:33 | |
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton | 07:43 | |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 07:46 | |
-!- csotelo(~csotelo@2001:1388:49c7:2304:73b0:3f4a:9cbc:6dcf) has joined #tryton | 09:31 | |
-!- nlopez73(4de166a0@gateway/web/cgi-irc/kiwiirc.com/ip.77.225.102.160) has joined #tryton | 09:49 | |
pokoli | I've detected that the cron job for recomputing production requests is not doing anything if there are late moves as a warning is raised. Is there some way to skip it? | 10:09 |
cedk | pokoli: is it not good to not recompute in such case? | 10:13 |
pokoli | cedk: indeed that was not the problem. It was missing company in the cron job definition | 10:18 |
pokoli | cedk: the behaviour is to recompute despite having the late moves (as the error is only raised on the wizard) | 10:19 |
pokoli | cedk: I don't have a clear position about if it's good or not. Probably the best is to add an argument to the generate request function so it is customizable on the cron definition | 10:19 |
cedk | pokoli: options are never the best | 10:31 |
csotelo | hello coders, I have an issue with a sequence model, for any reason, when I try to sue it, it says me "AttributeError: 'NoneType' object has no attribute 'id'". My code is shared on https://pastebin.com/F11dKaMX | 10:40 |
csotelo | I have checkd it more than once in order on find a filure, I also have printed some prints | 10:43 |
cedk | pokoli: but finally is the cron job running or raise the warning? | 10:44 |
pokoli | cedk: running, the warning is raised only on the wizard | 10:44 |
cedk | pokoli: OK, I guess we can let it like that | 10:45 |
cedk | pokoli: user who automate the computation with the cron job could expect no failure | 10:45 |
pokoli | csotelo: the error is because there is no sequence set on your configuration model | 10:46 |
csotelo | pokoli, .. I gues lost on soem palce, let me check .. thanks | 10:47 |
csotelo | pokoli, any same please on how to do that, please | 10:48 |
pokoli | csotelo: don't understand | 10:53 |
csotelo | pokoli, you wrote me """the error is because there is no sequence set on your configuration model""", for been really honest, I get lost on it, I mean on my mind "how to do that?" any sample code about that? | 10:54 |
pokoli | csotelo: on your code you read the sequence value from a singleton. This singleton should have a modelview in the UI, so open this model and set the sequence value | 11:04 |
-!- mariomop(~quassel@186.153.190.166) has joined #tryton | 11:08 | |
csotelo | I see, I was thinking on a code fix or something like that | 11:09 |
-!- zmijunkie(~Adium@i577B3B1D.versanet.de) has joined #tryton | 11:14 | |
csotelo | by the way, on my try and testing, I have deteleted the data instaled from the module install """DELETE FROM ir_sequence WHERE id = 97;""" ( also on the pastebin ), after module update, the data is not been loaded again, is there a way to force to re cerate it? | 11:17 |
csotelo | I gues it was easy to force the update, just take off the noupdate attr :/ :) | 11:24 |
csotelo | pokoli, for been really honest, I dindt do anything else, just takeoff the noupdate, and it is working right at this moment | 11:34 |
csotelo | :/ | 11:34 |
pokoli | csotelo: how do you created the sequence? by xml file? | 11:35 |
csotelo | yes | 11:35 |
pokoli | csotelo: on xmlfile there is a flag called noupdate that will prevent the update and recretion of the sequence if deleted | 11:35 |
csotelo | this is on the paste bin also | 11:35 |
csotelo | I have noticed that :) and after take off the code get working :) | 11:36 |
csotelo | as I spected | 11:36 |
pokoli | csotelo: so if you have the sequence set, everything should work now | 11:36 |
csotelo | yes.. I guess since iI set the noupdate flag on my first setup when I starting code this module, anytime when I try to read or complete the xml, was not been updated :/ newbie issue | 11:38 |
csotelo | finally, what do you suggest for download a file from the server, my module is for generating a zip file with data, is there a way to download it from the server or database on the client? | 11:47 |
pokoli | csotelo: use a wizard with a binary field to expose it | 11:56 |
cedk | csotelo: or use a report | 12:06 |
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton | 12:07 | |
-!- csotelo(~csotelo@2001:1388:49c7:2304:73b0:3f4a:9cbc:6dcf) has joined #tryton | 12:10 | |
csotelo | cedk, I couldnt use a report since it is zip file containing files | 12:17 |
csotelo | pokoli, do you mean to store it on the database? | 12:18 |
csotelo | pokoli, is there any module doing something like that? thanks | 12:19 |
pokoli | csotelo: no, you generate the zip file on server side and then set as default value of a Binary field on a wizard | 12:29 |
pokoli | csotelo: i don't remember any standard module using this pattern, but it's perfectly doable | 12:29 |
csotelo | pokoli, I see, thanks a lot | 12:31 |
-!- zmijunkie(~Adium@i577B3B1D.versanet.de) has joined #tryton | 12:35 | |
-!- thaneor(~lenovo3@179.26.183.135) has joined #tryton | 13:11 | |
-!- smorillo(4de166a0@gateway/web/cgi-irc/kiwiirc.com/ip.77.225.102.160) has joined #tryton | 13:12 | |
-!- smorillo(4de166a0@gateway/web/cgi-irc/kiwiirc.com/ip.77.225.102.160) has joined #tryton | 13:18 | |
-!- JanGB(~jan@x59cc89ae.dyn.telefonica.de) has joined #tryton | 13:27 | |
-!- csotelo_at_work(~csotelo_a@179.43.97.56) has joined #tryton | 13:40 | |
JanGB | hi - I'm trying to set fields.Dict via proteus as dict - this goes to the database but it is not shown in the client. Am I missing something? | 13:53 |
pokoli | JanGB: have you defined the attributes available on the dict field? | 13:56 |
pokoli | JanGB: I mean the keys definition on a DictSchemaMixin related to the field. | 13:57 |
JanGB | pokoli: one moment - need to check | 13:58 |
JanGB | pokoli: I reused product.attribute - the field only has another domain than the normal product.attributes (finally no domain to choose from every possible attribute) | 14:01 |
JanGB | pokoli: i wanted to define a field.dict like in product_attributes but without the need to select a set before | 14:02 |
JanGB | pokoli: so the field is mostly the same like attributes in product_attribute but without the domain | 14:05 |
JanGB | pokoli: tryton.rpc:model.product.attribute.search([('name', 'in', [u'Farbe:', u'Gr\xf6\xdfe:']) - this is send from client | 14:12 |
JanGB | pokoli: there is ':' appanded to the name | 14:12 |
-!- thaneor(~lenovo3@179.26.183.135) has joined #tryton | 14:14 | |
JanGB | pokoli: uuuuuuuuuuuu - sometimes you need only ask somebody to find the answer by your own | 14:16 |
JanGB | pokoli: thanks for listening, I found the error :D | 14:16 |
pokoli | JanGB: I haven't done anything ;) May I ask you which was the error? | 14:17 |
JanGB | pokoli: need to review the proteus script | 14:17 |
JanGB | pokoli: this is a horrible german service called AfterBuy with a RestApi - they are returning 'key:': 'value' insteed of 'key': 'value' | 14:20 |
pokoli | JanGB: ouch, normally the most complex to debug errors xD | 14:21 |
JanGB | pokoli: possibly they wan't to simplify the creation of fields from this service - no need to add : to the key in views :) | 14:23 |
JanGB | pokoli: its one of the worst services I ever consumed | 14:24 |
-!- nukedclx28(~nukedclx@179-242-199-169.3g.claro.net.br) has joined #tryton | 15:25 | |
-!- ipv620(~ipv6@121.172.234.3) has joined #tryton | 15:58 | |
-!- thaneor(~lenovo3@179.26.183.135) has joined #tryton | 16:20 | |
-!- thaneor(~lenovo3@179.26.183.135) has joined #tryton | 17:00 | |
-!- thaneor(~lenovo3@179.26.183.135) has joined #tryton | 18:10 | |
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton | 18:35 | |
-!- JanGB(~jan@x2f7fbb6.dyn.telefonica.de) has joined #tryton | 18:57 | |
-!- thaneor(~lenovo3@179.26.183.135) has joined #tryton | 19:48 | |
-!- thurin14(~thurin@i220-221-59-215.s42.a026.ap.plala.or.jp) has joined #tryton | 19:51 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 20:00 | |
-!- orphean(~Orphean@31.192.224.224) has joined #tryton | 20:23 | |
-!- plant-ian(6154504f@gateway/web/freenode/ip.97.84.80.79) has joined #tryton | 20:28 | |
-!- thaneor(~lenovo3@179.26.183.135) has joined #tryton | 21:31 | |
-!- csotelo(~csotelo@2001:1388:49c7:4330:63e1:1408:25cc:65e8) has joined #tryton | 21:56 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!