IRC logs of #tryton for Thursday, 2023-10-26

irc.libera.chat #tryton log beginning Thu Oct 26 12:10:01 AM CEST 2023
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:10
-!- ChanServ changed mode/#tryton -> +o cedk 23:10
-!- springwurm(~springwur@2a01:76c0:100:f500:8105:5e1d:4138:f8ad) has joined #tryton05:19
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton06:33
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:36
-!- udono(~udo@065-131-067-156.ip-addr.inexio.net) has joined #tryton06:50
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:05
-!- ChanServ changed mode/#tryton -> +o cedk 07:05
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton07:32
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:40
mrichezhi, could proteus connect simultaneously to 2 databases ? I need to migrate data from database1 to database2 with some checks... Get lot stock quantities and locations on database1 and then create lot and a supplier shipment on database2 to get an initial stock. 09:43
pokolimrichez: yes, you need to have to config objects (one per database) and pass the config object to each class to let proteus know from which database to conect09:55
mrichezpokoli: :-)09:55
mrichezpokoli: could i switch from database to another in the same method ? example: i need to compare Products from database1 with Products from database2 10:01
pokolimrichez: yes but you need to have two times Model.get('...') for the same class each with a different config file10:02
mrichezpokoli: ok, something like this Model.get('product.product', config1)10:05
pokoliyes ProductDB1 = Model.get('product.product', config1); ProductDB2 = Model.get('product.product', config2)10:08
mrichezpokoli: Thanks!10:08
pokoli:-)10:09
mrichezOn the product template tree view, there's a "Variant" column displayed as "( 1 )". How to search/filter for Product Templates without variants ?11:17
mrichezOk, found :-) Using this filter: "Variants: !"11:49
-!- springwurm(~springwur@2a01:76c0:100:f500:8626:40c7:5142:5f29) has joined #tryton12:08
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton20:33
-!- ChanServ changed mode/#tryton -> +o cedk 20:33
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:29
-!- ChanServ changed mode/#tryton -> +o cedk 21:29

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