IRC logs of #tryton for Tuesday, 2017-03-28

chat.freenode.net #tryton log beginning Tue Mar 28 00:00:01 CEST 2017
-!- smarro(~sebastian@181.16.7.104) has joined #tryton00:50
-!- julio-o(~Thunderbi@corp-200-105-253-66.uio.puntonet.ec) has joined #tryton01:08
-!- JosDzG(~Thunderbi@189.250.83.57) has joined #tryton01:22
-!- JosDzG(~Thunderbi@189.250.83.57) has joined #tryton01:55
-!- smarro(~sebastian@host102.181-0-7.telecom.net.ar) has joined #tryton03:13
-!- sharkcz(~sharkcz@2a01:8c00:ffb3:160:250:43ff:fe3c:3b5d) has joined #tryton04:45
-!- robinak(~quassel@unaffilated/robink) has joined #tryton04:52
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:23
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:51
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton09:02
-!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton09:09
-!- rpit(~rpit@2a02:908:e672:7480:56ee:75ff:fe0d:d3c7) has joined #tryton09:53
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton11:12
-!- thaneor1(~ldlc6@179.26.151.65) has joined #tryton11:33
-!- silwol(silwolmatr@gateway/shell/matrix.org/x-zdfnxejpxuhwvnyc) has joined #tryton12:20
-!- csotelo(~csotelo@2001:1388:49c4:26:3b38:fb54:94df:ddbc) has joined #tryton12:24
-!- marc_(~marc@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton13:05
-!- mariomop(~quassel@host236.186-124-151.telecom.net.ar) has joined #tryton13:15
-!- smarro(~sebastian@cust-126-46-13-200.trynet.com.ar) has joined #tryton14:41
-!- smarro(~sebastian@cust-226-46-13-200.trynet.com.ar) has joined #tryton16:14
-!- csotelo(~csotelo@190.42.17.21) has joined #tryton16:14
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton16:42
marc_cedk: finally one sequence shared by the 3 models made the trick. Using another field so I didn't touch model id. Looks good17:03
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?17:04
pokolimarc_: you should use a domain to allow to select only salable products17:07
pokolimarc_: this is done on the sale module, if you are searching for an example17:08
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 message17:10
marc_but I still want to select the product17:11
pokolimarc_: which is the use case? it sounds strange to me17:13
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 product17:14
marc_the analysis is the module that has the relation with product. And the product has a new field called 'alert'17:15
cedkmarc_: Tryton avoid to have side effect on UI17:16
pokolimarc_: then i will go for a raise_user_warning on some button of the workflow17:19
pokolimarc_: if it's when selling a product, on the quotation step for example17:19
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"17:22
pokolimarc_: on_change are run in a readonly transaction but warning requires a write transaction17:23
pokolimarc_: it's not a good practise to raise errors on on_change17:23
cedkmarc_: on_change can never raise exception, they must be side-effect free17:24
marc_pokoli: ok, so maybe placing it before writing could be useful too. I didn't know about on_change is readonly :) thank you17:25
pokolimarc_: 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 alert17:26
pokolimarc_: using states17:26
marc_yes. Also thought about it. I'll see wich one fits better :)17:27
-!- smarro(~sebastian@host203.181-0-22.telecom.net.ar) has joined #tryton17:40
cedkmaybe the notification blueprint could be a solution: https://discuss.tryton.org/t/real-time-notification/22417:42
cedkpokoli: about the dict patch, the goal is not to answer as quicker as possible18:16
cedkpokoli: the goal is to have a good solution even if it takes time18:16
cedkit is very exhausting to have such behaviour on review18:16
-!- JosDzG(~Thunderbi@189.250.83.57) has joined #tryton18:29
-!- smarro(~sebastian@cust-225-46-13-200.trynet.com.ar) has joined #tryton19:03
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton19:07
-!- morfeokmg(~morfeokmg@187-163-83-51.static.axtel.net) has joined #tryton19:09
-!- morfeokmg(~morfeokmg@187-163-83-51.static.axtel.net) has joined #tryton19:10
-!- csotelo(~csotelo@190.42.17.21) has joined #tryton19:12
-!- mariomop(~quassel@host236.186-124-151.telecom.net.ar) has joined #tryton19:33
-!- JosDzG(~Thunderbi@189.250.83.57) has joined #tryton20:16
-!- smarro(~sebastian@181.95.121.7) has joined #tryton21:11
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:25
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:00
-!- smarro(~sebastian@181.95.121.7) has joined #tryton22:18
-!- circ-user-sSDNh(~circuser-@corp-190-57-169-210.cue.puntonet.ec) has joined #tryton22:21
-!- JosDzG(~Thunderbi@189.250.83.57) has joined #tryton23:27
-!- thaneor(~ldlc6@179.26.151.29) has joined #tryton23:36
-!- smarro(~sebastian@host182.181-0-136.telecom.net.ar) has joined #tryton23:41
-!- morfeokmg(~morfeokmg@187-163-83-51.static.axtel.net) has joined #tryton23:48

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