IRC logs of #tryton for Friday, 2017-02-24

chat.freenode.net #tryton log beginning Fri Feb 24 00:00:01 CET 2017
2017-02-24 01:42 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-02-24 02:41 -!- fmorato_(~morato@189-12-180-122.user.veloxzone.com.br) has joined #tryton
2017-02-24 03:26 -!- sayedafif(75c5f22d@gateway/web/freenode/ip.117.197.242.45) has joined #tryton
2017-02-24 07:57 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2017-02-24 09:03 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2017-02-24 09:41 -!- thaneor(~ldlc6@179.26.151.2) has joined #tryton
2017-02-24 10:03 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-02-24 10:32 -!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2017-02-24 10:40 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-02-24 10:52 <mrichez> hi, in a wizard, what is the best way to "exchange" data between transitions ? i mean: in the start_transitition, i check Transation().context['active_ids'] if there's ids, and if the status is ok for the wizard process. How to keep only the id's that suits for the next transition ? I check code from some modules, i see a lot of .search(domain...), so is it the only way to always doing a search or a browse on the active_ids with some domain restrictions ?
2017-02-24 11:10 <pokoli> mrichez: you can filter on start_transition and then save the results on the following views
2017-02-24 11:11 <pokoli> mrichez: you may have a look at the reconcile Wizard: http://hg.tryton.org/modules/account/file/1310afa97ee2/move.py#l1784
2017-02-24 11:12 <mrichez> pokoli: so the view exist even if she's not yet displayed and i can load the data on the view ?
2017-02-24 11:13 <pokoli> mrichez: yes, you can
2017-02-24 11:13 <pokoli> mrichez: but in order to pass this to the client you must use the defaul_<view_name> function
2017-02-24 11:13 <mrichez> pokoli: stupid question: how is defined the order of the transitions in a wizard ?
2017-02-24 11:16 <pokoli> mrichez: you only define the first and then following the buttons or the transition state results
2017-02-24 11:18 <mrichez> pokoli: and the first is defined by 'start_state = '
2017-02-24 11:18 <pokoli> mrichez: yes
2017-02-24 11:18 <mrichez> pokoli: ok will apply this. Thanks!
2017-02-24 11:49 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-02-24 12:14 <cedk> mrichez, pokoli: I think using view to store temporary data should be used with caution because it can overload the communication
2017-02-24 12:15 <cedk> I do not find it particulary costed to filter active_ids on different state
2017-02-24 12:44 <mrichez> cedk: in this case, i'm speaking about the review of module purchase_request_quotation, where you suggest me to use python to filter , so i did this way: http://pastebin.com/AM2E6YzB
2017-02-24 12:45 <mrichez> cedk: so use the view to prevent to do the loop twice
2017-02-24 12:48 <cedk> mrichez: I do not think it is needed because I'm not sure it is a real gain against the communication
2017-02-24 12:49 <mrichez> cedk: so i should do the loop in each transition ?
2017-02-24 12:53 <cedk> mrichez: I think unless you can show it is too much
2017-02-24 12:55 <cedk> ACTION "premature optimization is the root of all evil"
2017-02-24 12:56 <mrichez> cedk: no, i'll do that.. i prefer first to get advices :-)
2017-02-24 12:56 <mrichez> cedk: optimization will be for the next review...
2017-02-24 12:57 <cedk> mrichez: optimization should be after production test :-)
2017-02-24 12:58 <mrichez> cedk: :-)
2017-02-24 14:13 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-02-24 14:21 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2017-02-24 14:39 -!- rpit(~rpit@2a02:908:e672:7480:56ee:75ff:fe0d:d3c7) has joined #tryton
2017-02-24 15:26 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-02-24 15:31 -!- rpit(~rpit@2a02:908:e672:7480:56ee:75ff:fe0d:d3c7) has joined #tryton
2017-02-24 15:39 -!- trilliji(~trilliji@cpe-67-255-39-42.stny.res.rr.com) has joined #tryton
2017-02-24 16:51 -!- trilliji(~trilliji@cpe-67-255-39-42.stny.res.rr.com) has joined #tryton
2017-02-24 17:26 -!- trilliji(~trilliji@cpe-67-255-39-42.stny.res.rr.com) has joined #tryton
2017-02-24 18:01 -!- trilliji(~trilliji@cpe-67-255-39-42.stny.res.rr.com) has joined #tryton
2017-02-24 18:56 -!- fmorato(~morato@189-12-141-109.user.veloxzone.com.br) has joined #tryton
2017-02-24 19:17 -!- trilliji(~trilliji@cpe-67-255-39-42.stny.res.rr.com) has joined #tryton
2017-02-24 19:17 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-02-24 19:18 <alexbodn> hello pokoli, cedk, all friends. by my usual slow pace, i decided to activate the sale module. the modules have been installed, but i don't see the newly installed modules in admin. could you advice, please?
2017-02-24 19:21 <cedk> alexbodn: sale modules does not create anything in the admin menu
2017-02-24 19:21 <cedk> alexbodn: or you mean you do not see the module in the list of modules?
2017-02-24 19:22 <cedk> in that case, you must use the --update-modules-list option of trytond-admin
2017-02-24 19:36 <alexbodn> thanks cedk. upon loading trytond, i see messages in the spirit of: INFO trytond.modules account_product:registering classes, for all modules. but i was concerned that the admin modules list doesn't show modules other than res and ir.
2017-02-24 19:39 <alexbodn> anyway, cedk, how could a user use the sale module? pardon my ignorance, please
2017-02-24 19:39 <cedk> alexbodn: if he is in the sale group, he will get a sale menu entry
2017-02-24 19:44 <alexbodn> cedk, i was able to create a sale group, but don't see how to add a user to the group
2017-02-24 19:46 <cedk> alexbodn: you must not create a sale, it is created when the sale module is activated
2017-02-24 19:46 <cedk> alexbodn: and to add user to a group, edit the user form and add the group
2017-02-24 19:47 <alexbodn> cedk, i does it mean the sale module was not installed correctly?
2017-02-24 19:50 <cedk> alexbodn: probably
2017-02-24 19:51 <alexbodn> how could i check, cedk?
2017-02-24 19:52 -!- rapier(94002efb@gateway/web/freenode/ip.148.0.46.251) has joined #tryton
2017-02-24 19:52 <rapier> How can i host two tryton databases on the same server using one pgsql process and one trytond?
2017-02-24 19:53 -!- trilliji(~trilliji@cpe-67-255-39-42.stny.res.rr.com) has joined #tryton
2017-02-24 19:56 <cedk> rapier: just works out of the box
2017-02-24 19:57 <cedk> rapier: setup the 2 databases and on login choose the one of the databases
2017-02-24 19:58 <cedk> alexbodn: is the module is marked as activated in the module list
2017-02-24 19:58 <rapier> but in trytond.conf, i just see the uri for postgresql:// containing the user and database. how would the client know there's another DB on the server or rather how would trytond know?
2017-02-24 19:59 <alexbodn> cedk, the only modules in the admin modules list are ir and res
2017-02-24 19:59 <cedk> rapier: the URI does not contain any database name
2017-02-24 20:00 <cedk> rapier: the trytond will send the list of available databases to the client
2017-02-24 20:00 <cedk> rapier: you see them when creating a login profile
2017-02-24 20:00 <rapier> ahh, you're right
2017-02-24 20:00 <rapier> thanks
2017-02-24 20:00 <alexbodn> cedk, they are both activated
2017-02-24 20:00 <cedk> alexbodn: so you have no module installed or the list is not up to date
2017-02-24 20:00 <cedk> ACTION bbl
2017-02-24 20:01 <alexbodn> cedk, as i told you, verbose invoking of trytond is showing the load of all modules
2017-02-24 20:02 <alexbodn> cedk: my admin is sao
2017-02-24 20:07 <alexbodn> bbl :)
2017-02-24 20:23 <cedk> alexbodn: you must run trytond-admin with the option --update-modules-list as I said
2017-02-24 20:35 -!- faviod(~faviod@190.108.228.120) has joined #tryton
2017-02-24 20:40 -!- faviod_(~faviod@190.108.228.120) has joined #tryton
2017-02-24 21:43 -!- thaneor1(~ldlc6@179.26.151.106) has joined #tryton
2017-02-24 22:03 -!- trilliji(~trilliji@cpe-67-255-39-42.stny.res.rr.com) has joined #tryton
2017-02-24 22:09 -!- perilla(~perilla@corp-190-57-169-210.cue.puntonet.ec) has left #tryton

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!