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 #tryton04:10
-!- thaneor1(~lenovo3@r179-25-32-176.dialup.adsl.anteldata.net.uy) has joined #tryton06:10
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton06:10
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton08:10
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton08:10
-!- rpit(~rpit@p200300C88F1AFC00E5271953866667B8.dip0.t-ipconnect.de) has joined #tryton09:10
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:10
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton10:10
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 ???10:10
pokolimrichez: it sounds like a good new feature10:10
cedkmrichez: I do not think so, the product customer could still be valid if the user just want to change variant11:10
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 product11:10
cedkmrichez: no it will not be changed if the product customer is valid11:10
mrichezcedk: ok...11:10
-!- mariomop(~quassel@181.228.29.59) has joined #tryton12:10
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton14:10
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?14:10
cedkmrichez: in trunk, we added format as optional argument14:10
mrichezcedk: :-) thanks !14:10
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton15:10
andrespolitihi, if you have a docker swarm running tryton, how do you manage the database update?15:10
pokoliandrespoliti: you should update it using trytond-admin15:10
pokoliandrespoliti: it can be run on a separate container linked to the same database container15:10
andrespoliticould it be automated in each deploy?15:10
pokoliandrespoliti: yes, you should lunch a separate service that runs the udate and then it keeps sleep15:10
pokoliandrespoliti: you can use the following command: trytond-admin -d <db> --all --activate-dependencies -vv && tail -f /dev/null15:10
pokoliandrespoliti: the tail -f /dev/nulll is to keep the service up, so it is not automatically restarted by docker-swap15:10
pokoliandrespoliti: that's what we use on docker compose15:10
andrespolitipokoli: great, we will try that, thank you15:10
pokoliandrespoliti: have a look at the following TUM2019 chart: https://www.youtube.com/watch?v=S1JmgNbNeeo15:10
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"15:10
mrichezproblem solved, my block was in a table and i need to write each instruction in a different row ...15:10
pokolimrichez: there is some if or for tags that does not have it's corresponding /if or /for15:10
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton16:10
-!- thaneor(~lenovo3@r167-56-55-152.dialup.adsl.anteldata.net.uy) has joined #tryton18:10

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