IRC logs of #tryton for Friday, 2019-10-25

chat.freenode.net #tryton log beginning Fri 25 Oct 2019 12:00:01 AM CEST
-!- yangoon1(~mathiasb@166-65-142-46.pool.kielnet.net) has joined #tryton02:11
-!- thaneor1(~lenovo3@r179-25-32-176.dialup.adsl.anteldata.net.uy) has joined #tryton04:51
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton04:58
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton06:17
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:29
-!- rpit(~rpit@p200300C88F1AFC00E5271953866667B8.dip0.t-ipconnect.de) has joined #tryton07:28
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:43
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton08:09
mrichezhi, in module sale_product_customer (purchase_product_customer too), when we clear product, product_customer field keep the value : http://hg.tryton.org/modules/sale_product_customer/file/tip/sale.py#l43 , wouldn't better to add self.product_customer = None before return ???08:39
pokolimrichez: it sounds like a good new feature08:56
cedkmrichez: I do not think so, the product customer could still be valid if the user just want to change variant09:02
mrichezcedk: but in this case, on_change_product is executed, and product_customer value updated even if there's already a value... It just seems strange to see a value when you clear product09:05
cedkmrichez: no it will not be changed if the product customer is valid09:17
mrichezcedk: ok...09:19
-!- mariomop(~quassel@181.228.29.59) has joined #tryton10:54
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton12:08
mrichezhi, how to format a date with relatorio ? format_date function has only 2 parameters: value and lang... how to define a date with this format ' DD name of month YYYY' ? define a new function?12:40
cedkmrichez: in trunk, we added format as optional argument12:41
mrichezcedk: :-) thanks !12:44
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton13:25
andrespolitihi, if you have a docker swarm running tryton, how do you manage the database update?13:26
pokoliandrespoliti: you should update it using trytond-admin13:26
pokoliandrespoliti: it can be run on a separate container linked to the same database container13:26
andrespoliticould it be automated in each deploy?13:27
pokoliandrespoliti: yes, you should lunch a separate service that runs the udate and then it keeps sleep13:28
pokoliandrespoliti: you can use the following command: trytond-admin -d <db> --all --activate-dependencies -vv && tail -f /dev/null13:29
pokoliandrespoliti: the tail -f /dev/nulll is to keep the service up, so it is not automatically restarted by docker-swap13:29
pokoliandrespoliti: that's what we use on docker compose13:29
andrespolitipokoli: great, we will try that, thank you13:31
pokoliandrespoliti: have a look at the following TUM2019 chart: https://www.youtube.com/watch?v=S1JmgNbNeeo13:31
mrichezin relatorio, in need to bypass some lines in a loop "FOR" so i add a block IF TEST just after, then all my data's to display and after </IF></FOR>, i get this error "No common ancestor found for opening and closing tag"13:53
mrichezproblem solved, my block was in a table and i need to write each instruction in a different row ...13:57
pokolimrichez: there is some if or for tags that does not have it's corresponding /if or /for13:57
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton14:03
-!- thaneor(~lenovo3@r167-56-55-152.dialup.adsl.anteldata.net.uy) has joined #tryton16:53

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