chat.freenode.net #tryton log beginning Thu Jul 28 00:00:01 CEST 2016 | ||
2016-07-28 00:44 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton | ||
2016-07-28 01:14 -!- shrox(shrox@nat/iiit/x-yrfhjryjmhukiwrn) has joined #tryton | ||
2016-07-28 01:24 -!- shrox(shrox@nat/iiit/x-zidmmthkeefggjld) has joined #tryton | ||
2016-07-28 01:28 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2016-07-28 01:34 -!- robink_(~quassel@unaffilated/robink) has joined #tryton | ||
2016-07-28 03:10 -!- robink_(~quassel@unaffilated/robink) has joined #tryton | ||
2016-07-28 04:24 -!- robink_(~quassel@unaffilated/robink) has joined #tryton | ||
2016-07-28 05:00 -!- shrox(shrox@nat/iiit/x-enxtxsajjwwtoauw) has joined #tryton | ||
2016-07-28 06:02 -!- prayashm(~prayashm@103.194.233.35) has joined #tryton | ||
2016-07-28 06:02 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton | ||
2016-07-28 07:21 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton | ||
2016-07-28 07:51 -!- shrox(shrox@nat/iiit/x-okibfudpuzgwptbs) has joined #tryton | ||
2016-07-28 07:51 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2016-07-28 08:04 -!- aasnan(~angel@91.red-88-5-177.dynamicip.rima-tde.net) has joined #tryton | ||
2016-07-28 08:13 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton | ||
2016-07-28 08:16 -!- gytis(~gytis@v100.nfq.lt) has joined #tryton | ||
2016-07-28 08:27 -!- rpit(~rpit@aftr-37-24-145-166.unity-media.net) has joined #tryton | ||
2016-07-28 08:36 -!- afibanez(~afibanez@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton | ||
2016-07-28 08:44 -!- aasnan(~angel@91.red-88-5-177.dynamicip.rima-tde.net) has left #tryton | ||
2016-07-28 08:47 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2016-07-28 08:49 -!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton | ||
2016-07-28 08:51 -!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton | ||
2016-07-28 09:19 -!- meigallodixital(~meigallod@188.72.113.45) has joined #tryton | ||
2016-07-28 09:54 -!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton | ||
2016-07-28 10:00 <pokoli> cedk: do you want a separate commit for tests in https://tryton-rietveld.appspot.com/21171002/ ? | ||
2016-07-28 10:06 <cedk> pokoli: yes | ||
2016-07-28 10:08 <xcodinas> cedk: I tried to push issue25461002 and i'm not allowed yet | ||
2016-07-28 10:10 <cedk> xcodinas: and now? | ||
2016-07-28 10:14 <xcodinas> cedk: Pushed! Thanks. | ||
2016-07-28 10:33 -!- gytis(~gytis@v100.nfq.lt) has joined #tryton | ||
2016-07-28 10:36 <cedk> shrox: when you update the codereview, could you put a description. It eases the reviewing process | ||
2016-07-28 10:36 <cedk> shrox: also do not forget to fix the flake8 errors | ||
2016-07-28 10:44 <gytis> Hello, I have strange behavior with Tryton client. I have this code: http://pastebin.com/Y1ZD2xYD which dynamically generates a list for party_category when assigned_employee is changing. On tryton client 3.4.1 it worked very well, but when I updated it to 3.4.9, selection list has an empty item at the end of the list on the GUI. When I select something, then selection list is correct and empty item disappears. Any ideas? | ||
2016-07-28 10:47 <cedk> gytis: this is strange that it ever worked | ||
2016-07-28 10:48 <cedk> gytis: you can not use the selection method as on_change_with method, they have different returned type | ||
2016-07-28 10:48 <cedk> gytis: the on_change_with must return a string | ||
2016-07-28 11:00 <gytis> cedk, so I think my code is incorrect - selection requires a list, but on_change_with returns a string only. Is other way to implement dynamic selection? | ||
2016-07-28 11:02 <cedk> gytis: you can use a Many2One with a domain | ||
2016-07-28 11:03 <cedk> gytis: which will be better because you will have foreign key constraint | ||
2016-07-28 11:10 <xcodinas> cedk: I'm not sure how to manage that https://tryton-rietveld.appspot.com/32361002/diff/1/src/view/calendar.js#newcode65 | ||
2016-07-28 11:24 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2016-07-28 11:26 <xcodinas> cedk: nvm | ||
2016-07-28 11:27 <cedk> xcodinas: I do not know what is accepted by FullCalendar | ||
2016-07-28 11:38 <gytis> cedk, is anywhere more complicated example of how domain should be written when a field depends on the other selected field? On my codebase I can find simple examples like ('company', '=', Eval('company')) or ('type', '!=', 'service'), but nothing more complicated... | ||
2016-07-28 11:45 <cedk> gytis: do not understand the question | ||
2016-07-28 11:58 <gytis> cedk, let's say I have modified field which now looks like http://pastebin.com/zQV1wHsg . The darkest point of this code for me is domain. Current domain ('id', '=', 1) is super simple and works as expected. Other examples on the codebase are also easy, for example, ('company', '=', Eval('company')) or ('type', '!=', 'service'). The problem I'm solving is - how to get party categories of the selected employee. I can access these categories in the previous code | ||
2016-07-28 11:58 <gytis> like this: self.assigned_employee.party.categories, but I don't know how to rewrite it using a domain. It looks very difficult.. | ||
2016-07-28 12:01 <cedk> gytis: you have to create a Function field that brings to the record the needed values | ||
2016-07-28 12:02 <gytis> cedk, brilliant idea, I will try that! | ||
2016-07-28 12:29 <pokoli> hi, is possible to run trytond sources with python3 ? | ||
2016-07-28 12:30 <cedk> pokoli: yes convert it with 2to3 | ||
2016-07-28 12:35 <pokoli> cedk: worked, thanks. I was sure i was missing anything as it worked well with pip install but not from sources | ||
2016-07-28 12:59 -!- mariomop(~quassel@181.94.13.136) has joined #tryton | ||
2016-07-28 13:16 -!- shrox(shrox@nat/iiit/x-bxwxtgpkkrfidhdp) has joined #tryton | ||
2016-07-28 13:18 -!- shrox(shrox@nat/iiit/x-didwmibjnmoujfrf) has joined #tryton | ||
2016-07-28 13:19 -!- shrox(shrox@nat/iiit/x-jcjymkhbwyyhfpnu) has joined #tryton | ||
2016-07-28 13:20 -!- shrox(shrox@nat/iiit/x-cgkhyvgbftzknpfp) has joined #tryton | ||
2016-07-28 13:22 -!- shrox(shrox@nat/iiit/x-sxhffmzqwytwqqyn) has joined #tryton | ||
2016-07-28 13:23 -!- shrox(shrox@nat/iiit/x-bowtipyvkmqktglh) has joined #tryton | ||
2016-07-28 13:24 -!- shrox(shrox@nat/iiit/x-cnnvtqhibfslasam) has joined #tryton | ||
2016-07-28 13:27 -!- shrox(shrox@nat/iiit/x-zhmxznborimolhaf) has joined #tryton | ||
2016-07-28 13:28 -!- shrox(shrox@nat/iiit/x-zpjgjoejgxuqjkgl) has joined #tryton | ||
2016-07-28 13:37 -!- shrox(shrox@nat/iiit/x-nmtiugpjqzqhzjab) has joined #tryton | ||
2016-07-28 13:40 -!- shrox(shrox@nat/iiit/x-obxjodveqkqvmeke) has joined #tryton | ||
2016-07-28 13:42 -!- shrox(shrox@nat/iiit/x-bldiopishrbplynq) has joined #tryton | ||
2016-07-28 14:21 -!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton | ||
2016-07-28 14:24 <prayashm> I was searching on how to implement the "save" option in exports | ||
2016-07-28 14:24 <prayashm> seems there are two ways that can be done: | ||
2016-07-28 14:25 <prayashm> 1) Use FileSaver Interface (with a fallback like https://github.com/eligrey/FileSaver.js/) to be able to save the file with a name from the user | ||
2016-07-28 14:26 <prayashm> 2) Since we are already showing a dialog mentioning the number of records generated, we can put a link in the same dialog using html5 "download" attribute to specify the name of the file. Clicking the link would download the file with the user provided name | ||
2016-07-28 14:28 <prayashm> which one should we go with? | ||
2016-07-28 14:32 <cedk> prayashm: what do you mean by "html5 download"? | ||
2016-07-28 14:33 <prayashm> When use the blob url like <a href="blob_url" download="filename.csv"> it will be downloaded with the specified file name | ||
2016-07-28 14:34 <cedk> prayashm: this one, I prefer to rely less possible on external library | ||
2016-07-28 14:35 <prayashm> cedk: okay then. :) | ||
2016-07-28 14:37 <cedk> prayashm: indeed, I think it is better to just let the browser open the blob url | ||
2016-07-28 14:37 <cedk> prayashm: we do not need to duplicate the open/save option of tryton but just let the browser manage it | ||
2016-07-28 14:38 <prayashm> cedk: you mean, I'll remove the open/save option. And just let the browser handle the blob url? | ||
2016-07-28 14:38 <cedk> prayashm: yes | ||
2016-07-28 14:39 <prayashm> cedk: will do that then. | ||
2016-07-28 15:16 -!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton | ||
2016-07-28 16:40 -!- shrox(shrox@nat/iiit/x-mbzdfojxrcolzgsf) has joined #tryton | ||
2016-07-28 16:55 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton | ||
2016-07-28 17:15 <gytis> cedk, I'm trying to create dynamic list of the party category, but unfortunately I'm missing something.. I changed type of party_category from Selection to Many2One, which should be depend on assigned_employee_party_categories functional field. When I change assigned_employee on GUI, should method get_assigned_employee_party_categories to be called? I think I'm missing on_change_with_* method, but unfortunately it can return string only. | ||
2016-07-28 17:15 <gytis> http://pastebin.com/dQp6Lqn9 | ||
2016-07-28 17:17 <pokoli> gytis: you can use the selection_change_with for that http://doc.tryton.org/4.0/trytond/doc/ref/models/fields.html?highlight=selection_change_with#trytond.model.fields.Selection.selection_change_with | ||
2016-07-28 17:18 <pokoli> gytis: or use a many2one with domain | ||
2016-07-28 17:20 <pokoli> gytis: you should implement the function field as on_change_with | ||
2016-07-28 17:20 <cedk> gytis: the best is to change the method get_assigned_employee_party_categories into on_change_with_assigned_employee_party_categories | ||
2016-07-28 17:24 <gytis> woohoo! it works!!! Thanks!!! ;) | ||
2016-07-28 17:30 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2016-07-28 17:46 -!- shrox(shrox@nat/iiit/x-gqfpqvxrijumyzhr) has joined #tryton | ||
2016-07-28 20:51 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2016-07-28 23:01 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!