chat.freenode.net #tryton log beginning Fri Jul 22 00:00:01 CEST 2016 | ||
2016-07-22 07:00 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2016-07-22 07:29 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2016-07-22 07:33 -!- Michale(67fecb7c@gateway/web/freenode/ip.103.254.203.124) has joined #tryton | ||
2016-07-22 07:34 <Michale> hello | ||
2016-07-22 07:36 <Michale> I have some domains error while search_read with multiple domains | ||
2016-07-22 07:37 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2016-07-22 07:57 -!- shrox(shrox@nat/iiit/x-eyjdlxbujytqjxnp) has joined #tryton | ||
2016-07-22 08:33 -!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton | ||
2016-07-22 08:51 -!- xcodinas(~xcodinas@91.126.76.2) has joined #tryton | ||
2016-07-22 08:51 -!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton | ||
2016-07-22 08:55 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton | ||
2016-07-22 09:20 -!- shrox(shrox@nat/iiit/x-bdylfzltbactciwv) has joined #tryton | ||
2016-07-22 09:25 <cedk> Michale: you have to give the code and the traceback to get help | ||
2016-07-22 09:29 <cedk> Michale: use a pastebin for that | ||
2016-07-22 09:37 <prayashm> Unable get focus on an element here: https://github.com/prayashm/sao/blob/81ed56458ddb4564004321e6f35c1dcf5469a5bf/src/window.js#L1453 | ||
2016-07-22 09:38 <prayashm> where am I going wrong? | ||
2016-07-22 09:38 <cedk> prayashm: probably the dialog is not yet displayed when the code is run | ||
2016-07-22 10:01 -!- udono(~udono@ip-37-201-245-214.hsi13.unitymediagroup.de) has joined #tryton | ||
2016-07-22 10:10 -!- tbruyere_(~smuxi@mail.saluc.com) has joined #tryton | ||
2016-07-22 10:36 -!- sisalp(~sisalpuse@boxoo.sisalp.net) has joined #tryton | ||
2016-07-22 10:44 <cedk> pokoli: for changeset 6d7c53854f41, I think a changelog entry should be added | ||
2016-07-22 10:45 <pokoli> cedk: ok, so I will add it now | ||
2016-07-22 10:51 <pokoli> cedk: done, btw should we add a changelog entry for each tryton missing feature implemented on sao? | ||
2016-07-22 10:52 <cedk> pokoli: I think so | ||
2016-07-22 11:10 -!- tbruyere(~smuxi@37-247-83-7.staticip.skydsl.be) has joined #tryton | ||
2016-07-22 11:28 -!- afibanez(~afibanez@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton | ||
2016-07-22 11:41 -!- csotelo(~csotelo@190.42.192.72) has joined #tryton | ||
2016-07-22 12:17 -!- prayashm(~prayashm@45.251.37.205) has joined #tryton | ||
2016-07-22 12:17 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton | ||
2016-07-22 12:20 <prayashm> cedk: That's right. The focus should be done, after the predef list has been populated | ||
2016-07-22 12:20 <prayashm> cedk: I couldn't make it work with .load() or .ready() | ||
2016-07-22 12:21 <prayashm> cedk: should I try something like: http://stackoverflow.com/a/20487574/912541 | ||
2016-07-22 12:21 <pokoli> prayashm: please don't use set_interval | ||
2016-07-22 12:22 <pokoli> prayashm: use a promise instead | ||
2016-07-22 12:23 <prayashm> pokoli: But when do I resolve the promise? | ||
2016-07-22 12:23 <pokoli> prayashm: when the predef list has been populated ;) | ||
2016-07-22 12:23 <pokoli> prayashm: and the register the function to set focus as a callback of the populate promise | ||
2016-07-22 12:26 <prayashm> pokoli: the problem is I don't when the populated list is ':visible' on the screen. If I try to focus the element, just after the list is populated, it doesn't show on the screen. | ||
2016-07-22 12:26 <prayashm> pokoli: I don't know* | ||
2016-07-22 12:30 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2016-07-22 12:30 <pokoli> pokoli: how do you make the list visible/where on the screen? | ||
2016-07-22 12:31 <pokoli> prayashm: how/where do you make the list visible on the screen | ||
2016-07-22 12:31 <pokoli> ? | ||
2016-07-22 12:31 <pokoli> by where i mean which line of code | ||
2016-07-22 12:32 <prayashm> pokoli: https://github.com/prayashm/sao/blob/gsoc/src/window.js#L1474 | ||
2016-07-22 12:33 <prayashm> pokoli: this is where I add it to the DOM to be shown | ||
2016-07-22 12:33 <pokoli> prayashm: so after this append the list is visible, so you can resolve the promis there | ||
2016-07-22 12:36 <prayashm> pokoli: Instead of resolving promise, I can just set the focus after appending the elements right? | ||
2016-07-22 12:37 <pokoli> prayashm: after reading the code, i think that you don't need a promise | ||
2016-07-22 12:38 <prayashm> pokoli: so when do I set the element to focus | ||
2016-07-22 12:38 <prayashm> ? | ||
2016-07-22 12:41 <pokoli> prayashm: i will put it exactly where it is, so I don't understand why i does not work :S | ||
2016-07-22 12:41 <pokoli> prayashm: have you tried to debug it? | ||
2016-07-22 12:43 <prayashm> pokoli: I am trying to | ||
2016-07-22 12:46 <pokoli> prayashm: You just need to add a breakpoint on the browser webmaster tools on the line and then execute your function ;) | ||
2016-07-22 12:51 <prayashm> pokoli: Just did that. The element is not hidden when it executes the line | ||
2016-07-22 12:52 <pokoli> prayashm: so the selector is not returnig any elements? | ||
2016-07-22 12:52 <pokoli> prayashm: or what's the problem with focus? | ||
2016-07-22 12:53 <prayashm> pokoli: nope, the element is there. just .focus() doesn't work | ||
2016-07-22 12:54 -!- marc0s(~marcos@unaffiliated/marc0s) has joined #tryton | ||
2016-07-22 12:55 <prayashm> Oh done! | ||
2016-07-22 12:55 <prayashm> Finally :D | ||
2016-07-22 12:55 <prayashm> Had to add tabindex=0 attribute to the elements | ||
2016-07-22 12:55 <prayashm> cedk and pokoli thanks! | ||
2016-07-22 12:56 <pokoli> prayashm: elements with negative tabindex are not focusable ;) | ||
2016-07-22 12:56 <prayashm> pokoli: I hadn't given any tabindex previously | ||
2016-07-22 13:00 <pokoli> prayashm: I'm not sure but maybe you are inheriting tabindex attribute fromp arents | ||
2016-07-22 13:00 <pokoli> from parents* | ||
2016-07-22 13:01 <prayashm> pokoli: that might be the case. well it's solved now ☺ | ||
2016-07-22 15:20 -!- smarro(~sebastian@181.16.7.104) has joined #tryton | ||
2016-07-22 15:57 -!- prayashm(~prayashm@45.251.37.205) has joined #tryton | ||
2016-07-22 15:57 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton | ||
2016-07-22 16:34 -!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton | ||
2016-07-22 16:38 <andrespoliti> how do i make a cron method, which does a write, ignore the validate of the model? | ||
2016-07-22 16:42 -!- JosDzG(~Thunderbi@189.148.172.0) has joined #tryton | ||
2016-07-22 16:46 <pokoli> andrespoliti: it's not possible to ignore validate, and you *should not* try to ignore it | ||
2016-07-22 16:46 <pokoli> andrespoliti: you need to ignore validate? | ||
2016-07-22 16:47 <andrespoliti> my validate only show a warning but it still lets you save the record | ||
2016-07-22 16:48 <andrespoliti> but if a cron task makes a write, it shows many warning signs for each record that triggers the warning | ||
2016-07-22 16:50 <pokoli> andrespoliti: so you want to ignore the warning? | ||
2016-07-22 16:50 <andrespoliti> yes | ||
2016-07-22 16:51 -!- fran_(~chatzilla@152.168.152.9) has joined #tryton | ||
2016-07-22 16:51 <pokoli> andrespoliti: you can set some flag on the context if called from cron, and before raising the warning check the precense of this warning. | ||
2016-07-22 16:51 <pokoli> andrespoliti: if it's present yo don't raise the warning | ||
2016-07-22 16:53 <Timitos> andrespoliti: is it a user_warning? there is a way to keep the user warning quiet | ||
2016-07-22 16:54 <andrespoliti> yes, it is a user warning | ||
2016-07-22 16:55 <andrespoliti> are you referring to the checkbox in the waring dialog box? | ||
2016-07-22 16:56 <Timitos> andrespoliti: yes. but you can do this in the database too | ||
2016-07-22 16:56 <andrespoliti> but wouldn't checking it also disable the warning when saving manually from the form? | ||
2016-07-22 16:56 <Timitos> andrespoliti: you can do that per single action | ||
2016-07-22 16:57 <Timitos> andrespoliti: if you check the checkbox an entry is created in res.user.warning | ||
2016-07-22 16:58 <Timitos> there are entries per user. for your cron user you can deactivate the check 'always'. | ||
2016-07-22 16:58 <Timitos> could be a solution for your problem | ||
2016-07-22 16:59 <Timitos> if you do not use the 'always' boolean field. the warning will be deactivated only for the next occurrence of the warning | ||
2016-07-22 17:05 <andrespoliti> okey, i will try inserting records in res_user_warning by xml to make cron user ignore these warnings | ||
2016-07-22 17:05 <andrespoliti> thanks | ||
2016-07-22 17:32 -!- JosDzGx(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton | ||
2016-07-22 18:36 -!- bvillasanti(~bvillasan@138.117.20.171) has joined #tryton | ||
2016-07-22 19:13 -!- bvillasanti(~bvillasan@138.117.20.171) has joined #tryton | ||
2016-07-22 19:39 -!- bvillasanti(~bvillasan@138.117.20.171) has joined #tryton | ||
2016-07-22 20:04 -!- bvillasanti(~bvillasan@138.117.20.171) has joined #tryton | ||
2016-07-22 20:35 -!- bvillasanti(~bvillasan@138.117.20.171) has joined #tryton | ||
2016-07-22 21:24 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2016-07-22 23:08 -!- shrox(shrox@nat/iiit/x-lajsplivgjuyvbjk) has joined #tryton | ||
2016-07-22 23:09 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton | ||
2016-07-22 23:15 -!- sharkcz(~sharkcz@server.danny.cz) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!