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

chat.freenode.net #tryton log beginning Thu Feb 11 00:00:01 CET 2016
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:33
-!- nelek(~nf@unaffiliated/nelek) has joined #tryton03:00
-!- kstenger(~karla@r186-54-47-67.dialup.adsl.anteldata.net.uy) has joined #tryton05:41
-!- bechamel(~Adium@host-95-182-199-152.dynamic.voo.be) has joined #tryton07:13
-!- frispete_(~frispete@p54A91842.dip0.t-ipconnect.de) has joined #tryton07:40
-!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton07:44
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:11
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton08:15
-!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton08:28
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:48
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:27
-!- leio(~leio@gentoo/developer/leio) has joined #tryton09:36
-!- rpit1(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton09:50
-!- meigallodixital(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton10:06
-!- Nico7878(500f74d0@gateway/web/freenode/ip.80.15.116.208) has joined #tryton10:28
Nico7878Greetings 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 ... ?10:30
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton10:40
Nico7878Greetings 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 anything11:02
cedkNico7878: what do you mean by "launch purchase request"? The purchase request creation wizard?11:03
Nico7878yes indeed, before last patch I could launch it manually11:03
Nico7878now 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)11:06
cedkNico7878: which version?11:07
Nico7878tryton-server 3.8.2-111:08
cedkNico7878: of stock_supply module?11:10
-!- bechamel(~Adium@host-95-182-199-152.dynamic.voo.be) has joined #tryton11:10
Nico78783.8.0-111:10
cedkNico7878: tested on demo server and I can run the wizard11:15
cedkNico7878: but of course, you need to be in the purchase request group11:16
Nico7878wow strange. Sure I run as admin to prevent access rights issues11:17
Nico7878I'll copy paste the message I get11:17
cedkNico7878: mayeb you have installed non standard module?11:18
Nico7878nop. only tryton-modules-all11:18
Nico7878"Les demandes d'achat sont uniquement crées par le sytème" Should be "Purchase request are only generated by system" in english version11:19
Nico7878It's a window that open after validating the wizard11:20
cedkNico7878: are you using the "New" button?11:20
Nico7878Nop, the wizard shortcut on the left panel11:21
cedkNico7878: this message is raised only when manually create a purchase request11:21
Nico7878Well I can't type anything in the field if I try to create a manuel purchase request11:22
cedkhttp://hg.tryton.org/modules/stock_supply/file/fe50b8688177/purchase_request.py#l54311:22
cedkso it looks like the wizard try to create a purchase request without one of those fields11:22
cedkNico7878: I think I understand, it tries to create a purchase request for 0 quantity11:23
cedkthe test should be: if vals.get(field_name) is None11:24
cedkNico7878: could you check it is that and fill an issue11:24
Nico7878I will but could you please explain in short where I should try the test ? I've never get into the code until now11:25
cedkNico7878: the simplest way is to put a print statement just before the raise error11:26
cedksomething like: print field_name, vals.get(field_name)11:26
Nico7878I'll try it now11:26
-!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton11:33
Nico7878global 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 method11:34
cedkNico7878: no it must be inside the method just before the cls.raise…11:39
cedkNico7878: be careful about indentation, it should be the same as the cls.raise…11:39
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.'),       11:40
Nico7878just checked identation, seems ok, I have space no tab11:41
Nico7878mmm 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?11:44
cedkNico7878: yes11:47
cedkNico7878: also next time don't copy/paste on chan, use pastbin like11:47
Nico7878ok srry11:47
Nico7878I see indeed a quantity of 0.011:48
cedkNico7878: OK so it is what I suposed11:49
Nico7878for my purpose, how could I find wich product is raising this quantity of 0?11:50
cedkNico7878: quantity of 0 is prefectly possible, if the rounding lead to this value11:50
cedkNico7878: to find the product, you can put a print of the vals and look at the product id11:51
Nico7878ok, 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?11:53
Nico7878ok, so the 0.0 is computed because it's a product that already has a resupply on going for the max quantity11:57
Nico7878but it's a special case : the order is in a draft state, not yet confirmed11:58
Nico7878maybe it's the reason why?11:58
-!- mariomop(~quassel@181.95.136.57) has joined #tryton12:00
cedkNico7878: no, I guess the computed quantity is below the first minimal unit12:01
Nico7878is there something I can do to correct that?12:02
cedkNico7878: if you report the issue, we will make a patch that you could apply12:03
Nico7878ok, could you send me the link to report the issue plz?12:03
cedkNico7878: https://bugs.tryton.org/12:04
-!- filipe85(2e191683@gateway/web/freenode/ip.46.25.22.131) has joined #tryton12:09
-!- nina(~nina@177.19.245.134) has joined #tryton12:12
ninaIn 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?12:24
cedknina: use: http://doc.tryton.org/3.8/trytond/doc/ref/models/fields.html?#trytond.model.fields.Selection.translated12:28
-!- csotelo_(~csotelo@190.232.71.228) has joined #tryton12:40
ninacedk: Thanks again. ;)12:50
-!- leio(~leio@gentoo/developer/leio) has joined #tryton13:21
-!- nh2(~niklas@2a02:168:6406:0:bda8:f09a:dd0d:495b) has joined #tryton13:55
sisalphello, is it possible to have a second module directory declared in server configiuration file ?14:39
sisalphello, is thera meta package to pip install gnuheath all at once  on a tryton server ?14:49
sisalphello, looking for some kind of install guide of gnuhealth14:56
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton14:56
aroncerosisalp: https://en.wikibooks.org/wiki/GNU_Health/Installation#Creating_the_Operating_System_User14:57
aroncerosisalp: It was useful for me14:58
dj_xatraHow do I install a custom module in Neso?15:00
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton15:04
pokolidj_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 module15:06
sisalparoncero: found an installer script but don't see any pip install possibility. Will have to make my own.15:09
dj_xatrapokoli: I copied it to the modules folder, but I'm not sure what to update then.15:11
sisalpin gnu-health install script I see it ln -s each module directory to module directory but additonnal module directory seems supported. Correct ?15:13
cedksisalp: it is not possible to have second directory because it will prevent uniqueness of module name15:18
cedksisalp: GNU Health is published on PyPI so just: pip install like any other Tryton module15:20
sisalpcedk : thank you for the answer on module directory.15:22
sisalpcedk : my problem with pip install is to make and maintain the exact list of modules through versions.15:22
cedksisalp: otherwise I find using distribution package better suitable15:23
-!- bvillasanti(~bvillasan@190.105.71.186) has joined #tryton15:25
sisalpcedk : you mean I build a .deb of all gnuhealth modules and install then at once ?15:26
pokolidj_xatra: enter on Administration -> Modules -> Modules, pick one module you have installed, mark to update and execute the wizard to update them15:29
cedksisalp: no, I don't see the point to create all packages, you should install only what you need15:29
pokolidj_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 it15:29
sisalpcedk : I cannot. I install tryton and gnuhealth for people who don't know yet what they need.15:30
sisalpcedk : want to add gnuhealth on sisalp.com self-service15:31
-!- JosDzG(~Thunderbi@189.148.161.75) has joined #tryton15:32
-!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton15:35
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton15:45
dj_xatrapokoli: thanks. Is that documented somewhere?16:03
pokolidj_xatra: no its not documented16:09
dj_xatraShould I create an issue ticket for that?16:10
pokolidj_xatra: there is an issue to update the module list16:10
dj_xatrapokoli: can't seem to find it in tracker. Do you know the issue id?16:13
cedkdj_xatra: https://bugs.tryton.org/issue2638 (searching: update module list)16:15
dj_xatracedk: thanks16:17
dj_xatraIssue last updated in 2013. Assigned to sharoon. Is sharoon still active?16:23
pokolidj_xatra: don't know, but I imagine it has to bee updated as code may have evolved16:27
dj_xatraWish I had time to get involved. Hopefully soon.16:30
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton16:54
-!- sisalp(~sisalpuse@boxoo.sisalp.net) has joined #tryton16:58
-!- flox(~florent@unaffiliated/flox) has joined #tryton17:04
-!- JosDzG(~Thunderbi@189.148.161.75) has joined #tryton17:20
-!- kstenger1(~karla@r167-56-247-86.dialup.adsl.anteldata.net.uy) has joined #tryton17:42
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton19:01
-!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton19:03
-!- leio(~leio@gentoo/developer/leio) has joined #tryton19:10
-!- den2204_(~mahon@81.4.204.84) has joined #tryton20:22
-!- leio(~leio@gentoo/developer/leio) has joined #tryton20:39
-!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton21:25
-!- nh2(~niklas@212-51-139-187.fiber7.init7.net) has joined #tryton22:46

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