IRC logs of #tryton for Wednesday, 2019-11-06

chat.freenode.net #tryton log beginning Wed 06 Nov 2019 12:00:01 AM CET
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:11
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton02:11
-!- yangoon1(~mathiasb@mue-88-130-78-245.dsl.tropolys.de) has joined #tryton04:11
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton07:11
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton08:11
-!- rpit(~rpit@p200300C88F32F600A22070230F535743.dip0.t-ipconnect.de) has joined #tryton08:11
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton08:11
-!- rpit(~rpit@p4FFB778E.dip0.t-ipconnect.de) has joined #tryton09:11
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:11
springwurmsomething strange happens when you login to the http://demo5.4.tryton.org server, with the username demo_de. warning lots of opening tabs and errors.09:11
springwurmhttp://demo5.2.tryton.org is ok.09:11
Timitoslooks like somebody played with the actions on the user09:11
cedkspringwurm: I remove the actions09:11
cedkthere are always people putting a mess on the demo09:11
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton10:11
-!- mariomop(~quassel@181.228.29.59) has joined #tryton11:11
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton12:11
-!- sebste(~sebste@x4db3290a.dyn.telefonica.de) has joined #tryton12:11
sebsteGood day y'all! Can I ask for a pointer? When I want to mark an invoice as paid, sometimes the paymentmethods are switched, meaning, that for a costomer invoice, I can only choose outgoing payment methods and for supplier invoice i get only outgoing payment methods to choose. Can anyone tell me how the choice list does determine which methods to display?12:11
sebsteSoory I meant ingoing methods for supplier12:11
pokolisebste: the only restriction I see is that the debit or credit account of the payment method should be diferent from the account of the invoice12:11
pokolisebste: could you check that you have it correctly configured?12:11
sebstepokoli: thanks, let me check...12:11
sebstepokoli: that musat be the issue. So if I understand, the customer invoice takes its account from the  parties debit account, right? I thought in this case the payment methods credit account must be the same? Do you have an example?12:11
sebstesorry if this is a stupid question. I tried so many things, that I am completely mixed up on that now :-D12:11
sebsteHmm: just updated server and client and ran tryton-admin. It failed with an operational error: https://pastebin.com/RYcafWLu13:11
sebsteAfter Login I get this error: https://pastebin.com/XrBqUBG013:11
sebsteSomehow server updates seem to not go down well with sqlite, is that true?13:11
pokolisebste: which tryton series are you running?13:11
pokolisebste: about sqilite: some features are not supported on sqlite, so I will recomend using postgres on production databases13:11
pokolisebste: we use sqlite for testing13:11
sebstejust updated to 5.4.013:11
sebsteI plan to migrate to postgres once i got everything set up. But I may be moving earlier once I got it running again.13:11
pokolisebste: from the first pasebin it seems that there is some query that is not valid on sqlite13:11
sebstepokoli: So, what do you think - would it make sense to setup a postgres db, use the migration script from cedric to migrate a backup sqlite db to postgres and then run trytond-admin on the postgres db? Could kill two birds with one stone, right13:11
pokolisebste: yes, I think it's a good idea13:11
sebstewhat is the recommended update method enyway? I used pip3 install --upgrade on trytond and all the trytond-modules and ran trytond-admin afterwards. is there a better way?13:11
pokolisebste: that should work, but I normally prefer to create a new virtualenv so you git rid of all the old dependencies13:11
pokolisebste: we now use docker so it's only a mather of update the image version and run trytond-admin13:11
sebsteI was struggling to get it running with docker for some reason in the past. But maybe I should be looking into it again. Will modified template files be keept when updating a docker image?13:11
sebsteThanks for your help, again, btw13:11
sebsteIs ther esome documentation on how to setup tryton with docker?14:11
cedksebste: yes on https://hub.docker.com/r/tryton/tryton/14:11
sebstecedk: thank you, I have read that one, but already the first command fails with "$: command not found". I have installe docker and docker pulled tryton/tryton. Is there anything else I need to install / pull?14:11
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton14:11
sebstecedk: sorry my fault. I made a error copying the command. I 'll play with it a bit14:11
cedksebste: '$' is the char used to represent the command line prompt. It is very common practice15:11
sebstecedk: jepp, that was exactely my fault. I simply did not check.16:11
sebsteGot it to run now.16:11
sebsteNow I just need to figure out where the configfiles are located how to get my database into the pgsqlserver inside docker using your migration script...16:11
cedksebste: in Docker world, configuration is done using environment variables17:11
cedksee http://docs.tryton.org/projects/server/en/latest/topics/configuration.html#topics-configuration17:11
cedkto load data in a dockerized postgres, you may look at http://hg.tryton.org/tryton-docker-demo/file/tip/update.sh#l1817:11
sebsteWell, I sort of have a tryton.conf. Couldn't I reuse it in the docker image and edit it to use the postgresql db?17:11
cedksebste: that's against the principal of docker, you do not edit inside the container but just configure it with environment variable17:11
cedksebste: every option of trytond.conf can be set with env17:11
cedksebste: check http://hg.tryton.org/tryton-docker-demo/file/tip/5.4.env17:11
sebsteThanks, Cedric. Maybe I'll stick with a regular local installation, for now. I admit this is a bit overwhelming for me.18:11
-!- sebste_(~sebste@x4db3290a.dyn.telefonica.de) has joined #tryton20:11
-!- sebste_(~sebste@x4db3290a.dyn.telefonica.de) has joined #tryton20:11
-!- sebste_(~sebste@x4db3290a.dyn.telefonica.de) has joined #tryton20:11

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