chat.freenode.net #tryton log beginning Tue Mar 28 00:00:01 CEST 2017 | ||
2017-03-28 00:50 -!- smarro(~sebastian@181.16.7.104) has joined #tryton | ||
2017-03-28 01:08 -!- julio-o(~Thunderbi@corp-200-105-253-66.uio.puntonet.ec) has joined #tryton | ||
2017-03-28 01:22 -!- JosDzG(~Thunderbi@189.250.83.57) has joined #tryton | ||
2017-03-28 01:55 -!- JosDzG(~Thunderbi@189.250.83.57) has joined #tryton | ||
2017-03-28 03:13 -!- smarro(~sebastian@host102.181-0-7.telecom.net.ar) has joined #tryton | ||
2017-03-28 04:45 -!- sharkcz(~sharkcz@2a01:8c00:ffb3:160:250:43ff:fe3c:3b5d) has joined #tryton | ||
2017-03-28 04:52 -!- robinak(~quassel@unaffilated/robink) has joined #tryton | ||
2017-03-28 07:23 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2017-03-28 08:51 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2017-03-28 09:02 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | ||
2017-03-28 09:09 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton | ||
2017-03-28 09:53 -!- rpit(~rpit@2a02:908:e672:7480:56ee:75ff:fe0d:d3c7) has joined #tryton | ||
2017-03-28 11:12 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | ||
2017-03-28 11:33 -!- thaneor1(~ldlc6@179.26.151.65) has joined #tryton | ||
2017-03-28 12:20 -!- silwol(silwolmatr@gateway/shell/matrix.org/x-zdfnxejpxuhwvnyc) has joined #tryton | ||
2017-03-28 12:24 -!- csotelo(~csotelo@2001:1388:49c4:26:3b38:fb54:94df:ddbc) has joined #tryton | ||
2017-03-28 13:05 -!- marc_(~marc@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton | ||
2017-03-28 13:15 -!- mariomop(~quassel@host236.186-124-151.telecom.net.ar) has joined #tryton | ||
2017-03-28 14:41 -!- smarro(~sebastian@cust-126-46-13-200.trynet.com.ar) has joined #tryton | ||
2017-03-28 16:14 -!- smarro(~sebastian@cust-226-46-13-200.trynet.com.ar) has joined #tryton | ||
2017-03-28 16:14 -!- csotelo(~csotelo@190.42.17.21) has joined #tryton | ||
2017-03-28 16:42 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2017-03-28 17:03 <marc_> cedk: finally one sequence shared by the 3 models made the trick. Using another field so I didn't touch model id. Looks good | ||
2017-03-28 17:04 <marc_> btw, I'm having some troubles now to do something... I have a model with a relation to product. When you pick one, if the product is not salable, I have to show a warning. I guess raise_user_warning is not the way. Any advise on that? | ||
2017-03-28 17:07 <pokoli> marc_: you should use a domain to allow to select only salable products | ||
2017-03-28 17:08 <pokoli> marc_: this is done on the sale module, if you are searching for an example | ||
2017-03-28 17:10 <marc_> pokoli: I wanted to do a simple example and I missed. Ok, it's not salable field. Is a new field I added to product. If this field has text, when you select this product, an alert should show up showing a message | ||
2017-03-28 17:11 <marc_> but I still want to select the product | ||
2017-03-28 17:13 <pokoli> marc_: which is the use case? it sounds strange to me | ||
2017-03-28 17:14 <marc_> pokoli: ok, there it goes. A chemical industry has products, but some of them may be defective or not really reliable. When you do an analysis and choose this product it has to show up an alert warning the user about the defect or whatever they want to write to that product | ||
2017-03-28 17:15 <marc_> the analysis is the module that has the relation with product. And the product has a new field called 'alert' | ||
2017-03-28 17:16 <cedk> marc_: Tryton avoid to have side effect on UI | ||
2017-03-28 17:19 <pokoli> marc_: then i will go for a raise_user_warning on some button of the workflow | ||
2017-03-28 17:19 <pokoli> marc_: if it's when selling a product, on the quotation step for example | ||
2017-03-28 17:22 <marc_> pokoli: I tried to use the raise_user_warning with on_change_product but it's acting weird. When saying no the product assign is canceled. When I press yes it's also canceled but the warning won't come up ever again even not cheking the "always ignore" | ||
2017-03-28 17:23 <pokoli> marc_: on_change are run in a readonly transaction but warning requires a write transaction | ||
2017-03-28 17:23 <pokoli> marc_: it's not a good practise to raise errors on on_change | ||
2017-03-28 17:24 <cedk> marc_: on_change can never raise exception, they must be side-effect free | ||
2017-03-28 17:25 <marc_> pokoli: ok, so maybe placing it before writing could be useful too. I didn't know about on_change is readonly :) thank you | ||
2017-03-28 17:26 <pokoli> marc_: indeed, maybe you should add a function field to show the alert on the form, and only show this field when the product has an alert | ||
2017-03-28 17:26 <pokoli> marc_: using states | ||
2017-03-28 17:27 <marc_> yes. Also thought about it. I'll see wich one fits better :) | ||
2017-03-28 17:40 -!- smarro(~sebastian@host203.181-0-22.telecom.net.ar) has joined #tryton | ||
2017-03-28 17:42 <cedk> maybe the notification blueprint could be a solution: https://discuss.tryton.org/t/real-time-notification/224 | ||
2017-03-28 18:16 <cedk> pokoli: about the dict patch, the goal is not to answer as quicker as possible | ||
2017-03-28 18:16 <cedk> pokoli: the goal is to have a good solution even if it takes time | ||
2017-03-28 18:16 <cedk> it is very exhausting to have such behaviour on review | ||
2017-03-28 18:29 -!- JosDzG(~Thunderbi@189.250.83.57) has joined #tryton | ||
2017-03-28 19:03 -!- smarro(~sebastian@cust-225-46-13-200.trynet.com.ar) has joined #tryton | ||
2017-03-28 19:07 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2017-03-28 19:09 -!- morfeokmg(~morfeokmg@187-163-83-51.static.axtel.net) has joined #tryton | ||
2017-03-28 19:10 -!- morfeokmg(~morfeokmg@187-163-83-51.static.axtel.net) has joined #tryton | ||
2017-03-28 19:12 -!- csotelo(~csotelo@190.42.17.21) has joined #tryton | ||
2017-03-28 19:33 -!- mariomop(~quassel@host236.186-124-151.telecom.net.ar) has joined #tryton | ||
2017-03-28 20:16 -!- JosDzG(~Thunderbi@189.250.83.57) has joined #tryton | ||
2017-03-28 21:11 -!- smarro(~sebastian@181.95.121.7) has joined #tryton | ||
2017-03-28 21:25 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2017-03-28 22:00 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2017-03-28 22:18 -!- smarro(~sebastian@181.95.121.7) has joined #tryton | ||
2017-03-28 22:21 -!- circ-user-sSDNh(~circuser-@corp-190-57-169-210.cue.puntonet.ec) has joined #tryton | ||
2017-03-28 23:27 -!- JosDzG(~Thunderbi@189.250.83.57) has joined #tryton | ||
2017-03-28 23:36 -!- thaneor(~ldlc6@179.26.151.29) has joined #tryton | ||
2017-03-28 23:41 -!- smarro(~sebastian@host182.181-0-136.telecom.net.ar) has joined #tryton | ||
2017-03-28 23:48 -!- morfeokmg(~morfeokmg@187-163-83-51.static.axtel.net) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!