IRC logs of #tryton for Thursday, 2016-02-11

chat.freenode.net #tryton log beginning Thu Feb 11 00:00:01 CET 2016
2016-02-11 01:33 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-02-11 03:00 -!- nelek(~nf@unaffiliated/nelek) has joined #tryton
2016-02-11 05:41 -!- kstenger(~karla@r186-54-47-67.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-02-11 07:13 -!- bechamel(~Adium@host-95-182-199-152.dynamic.voo.be) has joined #tryton
2016-02-11 07:40 -!- frispete_(~frispete@p54A91842.dip0.t-ipconnect.de) has joined #tryton
2016-02-11 07:44 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-02-11 08:11 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-02-11 08:15 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2016-02-11 08:28 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2016-02-11 08:48 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-02-11 09:27 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-02-11 09:36 -!- leio(~leio@gentoo/developer/leio) has joined #tryton
2016-02-11 09:50 -!- rpit1(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-02-11 10:06 -!- meigallodixital(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton
2016-02-11 10:28 -!- Nico7878(500f74d0@gateway/web/freenode/ip.80.15.116.208) has joined #tryton
2016-02-11 10:30 <Nico7878> Greetings all. Since the last server-side patch on debian I can't launch purchase request manually. I have a message saying it's lauched by system only. Could someone explain how I can proceed manually or how I can set the automatic frequency or ... ?
2016-02-11 10:40 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-02-11 11:02 <Nico7878> Greetings all. Since the last server-side patch on debian I can't launch purchase request manually. I have a message saying it's lauched by system only. Could someone explain how I can proceed manually or how I can set the automatic frequency or ... ? I saw a cron but even if it's runned it don't generate anything
2016-02-11 11:03 <cedk> Nico7878: what do you mean by "launch purchase request"? The purchase request creation wizard?
2016-02-11 11:03 <Nico7878> yes indeed, before last patch I could launch it manually
2016-02-11 11:06 <Nico7878> now the cron is set for a daily run but it don't generate anything (I suppose it runs because it updates the next date to run at the right time)
2016-02-11 11:07 <cedk> Nico7878: which version?
2016-02-11 11:08 <Nico7878> tryton-server 3.8.2-1
2016-02-11 11:10 <cedk> Nico7878: of stock_supply module?
2016-02-11 11:10 -!- bechamel(~Adium@host-95-182-199-152.dynamic.voo.be) has joined #tryton
2016-02-11 11:10 <Nico7878> 3.8.0-1
2016-02-11 11:15 <cedk> Nico7878: tested on demo server and I can run the wizard
2016-02-11 11:16 <cedk> Nico7878: but of course, you need to be in the purchase request group
2016-02-11 11:17 <Nico7878> wow strange. Sure I run as admin to prevent access rights issues
2016-02-11 11:17 <Nico7878> I'll copy paste the message I get
2016-02-11 11:18 <cedk> Nico7878: mayeb you have installed non standard module?
2016-02-11 11:18 <Nico7878> nop. only tryton-modules-all
2016-02-11 11:19 <Nico7878> "Les demandes d'achat sont uniquement crées par le sytème" Should be "Purchase request are only generated by system" in english version
2016-02-11 11:20 <Nico7878> It's a window that open after validating the wizard
2016-02-11 11:20 <cedk> Nico7878: are you using the "New" button?
2016-02-11 11:21 <Nico7878> Nop, the wizard shortcut on the left panel
2016-02-11 11:21 <cedk> Nico7878: this message is raised only when manually create a purchase request
2016-02-11 11:22 <Nico7878> Well I can't type anything in the field if I try to create a manuel purchase request
2016-02-11 11:22 <cedk> http://hg.tryton.org/modules/stock_supply/file/fe50b8688177/purchase_request.py#l543
2016-02-11 11:22 <cedk> so it looks like the wizard try to create a purchase request without one of those fields
2016-02-11 11:23 <cedk> Nico7878: I think I understand, it tries to create a purchase request for 0 quantity
2016-02-11 11:24 <cedk> the test should be: if vals.get(field_name) is None
2016-02-11 11:24 <cedk> Nico7878: could you check it is that and fill an issue
2016-02-11 11:25 <Nico7878> I will but could you please explain in short where I should try the test ? I've never get into the code until now
2016-02-11 11:26 <cedk> Nico7878: the simplest way is to put a print statement just before the raise error
2016-02-11 11:26 <cedk> something like: print field_name, vals.get(field_name)
2016-02-11 11:26 <Nico7878> I'll try it now
2016-02-11 11:33 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2016-02-11 11:34 <Nico7878> global name field_name is not defined... I assume I'm not in the function? I've tried to put the print just after the beginning of the method
2016-02-11 11:39 <cedk> Nico7878: no it must be inside the method just before the cls.raise…
2016-02-11 11:39 <cedk> Nico7878: be careful about indentation, it should be the same as the cls.raise…
2016-02-11 11:40 <Nico7878> @classmethod def __setup__(cls): super(PurchaseRequest, cls).__setup__() cls._order[0] = ('id', 'DESC') print field_name, vals.get(field_name) cls._error_messages.update({ 'create_request': ('Purchase requests are only created ' 'by the system.'), 'delete_purchase_line': ('You can not delete purchased ' 'request.'),
2016-02-11 11:41 <Nico7878> just checked identation, seems ok, I have space no tab
2016-02-11 11:44 <Nico7878> mmm nop sorry I think I've found the cls.raise and updated the code with the print, seems ok but how am I supposed to check the output of my print?
2016-02-11 11:47 <cedk> Nico7878: yes
2016-02-11 11:47 <cedk> Nico7878: also next time don't copy/paste on chan, use pastbin like
2016-02-11 11:47 <Nico7878> ok srry
2016-02-11 11:48 <Nico7878> I see indeed a quantity of 0.0
2016-02-11 11:49 <cedk> Nico7878: OK so it is what I suposed
2016-02-11 11:50 <Nico7878> for my purpose, how could I find wich product is raising this quantity of 0?
2016-02-11 11:50 <cedk> Nico7878: quantity of 0 is prefectly possible, if the rounding lead to this value
2016-02-11 11:51 <cedk> Nico7878: to find the product, you can put a print of the vals and look at the product id
2016-02-11 11:53 <Nico7878> ok, but if I understand the code, I have an if statement on the value, so if the value is 0 I will always raise an error?
2016-02-11 11:57 <Nico7878> ok, so the 0.0 is computed because it's a product that already has a resupply on going for the max quantity
2016-02-11 11:58 <Nico7878> but it's a special case : the order is in a draft state, not yet confirmed
2016-02-11 11:58 <Nico7878> maybe it's the reason why?
2016-02-11 12:00 -!- mariomop(~quassel@181.95.136.57) has joined #tryton
2016-02-11 12:01 <cedk> Nico7878: no, I guess the computed quantity is below the first minimal unit
2016-02-11 12:02 <Nico7878> is there something I can do to correct that?
2016-02-11 12:03 <cedk> Nico7878: if you report the issue, we will make a patch that you could apply
2016-02-11 12:03 <Nico7878> ok, could you send me the link to report the issue plz?
2016-02-11 12:04 <cedk> Nico7878: https://bugs.tryton.org/
2016-02-11 12:09 -!- filipe85(2e191683@gateway/web/freenode/ip.46.25.22.131) has joined #tryton
2016-02-11 12:12 -!- nina(~nina@177.19.245.134) has joined #tryton
2016-02-11 12:24 <nina> In a report, I need to show the second element of a field select , the human-readable name. I need to show a list selected values. How do I do it?
2016-02-11 12:28 <cedk> nina: use: http://doc.tryton.org/3.8/trytond/doc/ref/models/fields.html?#trytond.model.fields.Selection.translated
2016-02-11 12:40 -!- csotelo_(~csotelo@190.232.71.228) has joined #tryton
2016-02-11 12:50 <nina> cedk: Thanks again. ;)
2016-02-11 13:21 -!- leio(~leio@gentoo/developer/leio) has joined #tryton
2016-02-11 13:55 -!- nh2(~niklas@2a02:168:6406:0:bda8:f09a:dd0d:495b) has joined #tryton
2016-02-11 14:39 <sisalp> hello, is it possible to have a second module directory declared in server configiuration file ?
2016-02-11 14:49 <sisalp> hello, is thera meta package to pip install gnuheath all at once on a tryton server ?
2016-02-11 14:56 <sisalp> hello, looking for some kind of install guide of gnuhealth
2016-02-11 14:56 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2016-02-11 14:57 <aroncero> sisalp: https://en.wikibooks.org/wiki/GNU_Health/Installation#Creating_the_Operating_System_User
2016-02-11 14:58 <aroncero> sisalp: It was useful for me
2016-02-11 15:00 <dj_xatra> How do I install a custom module in Neso?
2016-02-11 15:04 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-02-11 15:06 <pokoli> dj_xatra: you have yo copy the module to the modules folder, update some module that it's installed on the database (to refresh the module it) and the you can install it like any other module
2016-02-11 15:09 <sisalp> aroncero: found an installer script but don't see any pip install possibility. Will have to make my own.
2016-02-11 15:11 <dj_xatra> pokoli: I copied it to the modules folder, but I'm not sure what to update then.
2016-02-11 15:13 <sisalp> in gnu-health install script I see it ln -s each module directory to module directory but additonnal module directory seems supported. Correct ?
2016-02-11 15:18 <cedk> sisalp: it is not possible to have second directory because it will prevent uniqueness of module name
2016-02-11 15:20 <cedk> sisalp: GNU Health is published on PyPI so just: pip install like any other Tryton module
2016-02-11 15:22 <sisalp> cedk : thank you for the answer on module directory.
2016-02-11 15:22 <sisalp> cedk : my problem with pip install is to make and maintain the exact list of modules through versions.
2016-02-11 15:23 <cedk> sisalp: otherwise I find using distribution package better suitable
2016-02-11 15:25 -!- bvillasanti(~bvillasan@190.105.71.186) has joined #tryton
2016-02-11 15:26 <sisalp> cedk : you mean I build a .deb of all gnuhealth modules and install then at once ?
2016-02-11 15:29 <pokoli> dj_xatra: enter on Administration -> Modules -> Modules, pick one module you have installed, mark to update and execute the wizard to update them
2016-02-11 15:29 <cedk> sisalp: no, I don't see the point to create all packages, you should install only what you need
2016-02-11 15:29 <pokoli> dj_xatra: after updating the module, the module list will be syncronized with the modules folder and then your module should appear on the modules list so you can install it
2016-02-11 15:30 <sisalp> cedk : I cannot. I install tryton and gnuhealth for people who don't know yet what they need.
2016-02-11 15:31 <sisalp> cedk : want to add gnuhealth on sisalp.com self-service
2016-02-11 15:32 -!- JosDzG(~Thunderbi@189.148.161.75) has joined #tryton
2016-02-11 15:35 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2016-02-11 15:45 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-02-11 16:03 <dj_xatra> pokoli: thanks. Is that documented somewhere?
2016-02-11 16:09 <pokoli> dj_xatra: no its not documented
2016-02-11 16:10 <dj_xatra> Should I create an issue ticket for that?
2016-02-11 16:10 <pokoli> dj_xatra: there is an issue to update the module list
2016-02-11 16:13 <dj_xatra> pokoli: can't seem to find it in tracker. Do you know the issue id?
2016-02-11 16:15 <cedk> dj_xatra: https://bugs.tryton.org/issue2638 (searching: update module list)
2016-02-11 16:17 <dj_xatra> cedk: thanks
2016-02-11 16:23 <dj_xatra> Issue last updated in 2013. Assigned to sharoon. Is sharoon still active?
2016-02-11 16:27 <pokoli> dj_xatra: don't know, but I imagine it has to bee updated as code may have evolved
2016-02-11 16:30 <dj_xatra> Wish I had time to get involved. Hopefully soon.
2016-02-11 16:54 -!- irclog(~irclog@moretus.b2ck.com) has joined #tryton
2016-02-11 16:58 -!- sisalp(~sisalpuse@boxoo.sisalp.net) has joined #tryton
2016-02-11 17:04 -!- flox(~florent@unaffiliated/flox) has joined #tryton
2016-02-11 17:20 -!- JosDzG(~Thunderbi@189.148.161.75) has joined #tryton
2016-02-11 17:42 -!- kstenger1(~karla@r167-56-247-86.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-02-11 19:01 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2016-02-11 19:03 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2016-02-11 19:10 -!- leio(~leio@gentoo/developer/leio) has joined #tryton
2016-02-11 20:22 -!- den2204_(~mahon@81.4.204.84) has joined #tryton
2016-02-11 20:39 -!- leio(~leio@gentoo/developer/leio) has joined #tryton
2016-02-11 21:25 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2016-02-11 22:46 -!- nh2(~niklas@212-51-139-187.fiber7.init7.net) has joined #tryton

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