irc.libera.chat #tryton log beginning Wed May 22 12:10:00 AM CEST 2024 | ||
-!- springwurm(~springwur@2a01:76c0:104:c700:ebc7:1882:a1c2:d39b) has joined #tryton | 05:00 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:25 | |
-!- pombreda(sid227801@id-227801.tinside.irccloud.com) has joined #tryton | 06:41 | |
pombreda | Howdy :) | 06:41 |
---|---|---|
pombreda | How can I rebuild locally the docker images using the latest checkout? | 06:42 |
pombreda | https://foss.heptapod.net/tryton/tryton-docker/-/blob/branch/default/7.2/Dockerfile?ref_type=heads does not seem to ever work from a checkout, but from published downloads | 06:42 |
pombreda | I am trying Tryton for an ASBL and I am stuck with https://foss.heptapod.net/tryton/tryton/-/issues/13228 ... which is fixed. | 06:44 |
pombreda | pokoli: hey :) | 06:46 |
pokoli | pombreda: you will need to install the module from series or patch the source code | 06:47 |
pokoli | pombreda: the fix is not released yet | 06:48 |
pombreda | pokoli: ok, so no docker then. shrikes. patching the code would be easy... but the base image is pretty depleted from anything to edit code :] ... only sed there and no sudo | 06:49 |
pombreda | pokoli: thank you :) | 06:50 |
pombreda | pokoli: would there be a workaround? some thing I could fix in the DB otherwise? | 06:51 |
pombreda | or if I wipe the containers and volumes clean, how could I create my party/company/ etc in the right sequence to avoid this issue? | 06:52 |
pombreda | (I am a seasoned python dev, but new to Tryton) | 06:52 |
pokoli | pombreda: you will need to build a derivate docker image which installs with pip the patched module | 06:53 |
pokoli | pombreda: or even just apply the diff to site-packages/trytond/modules/company directory | 06:54 |
pombreda | pokoli: thanks. A bit more involved than I wished for :) | 06:56 |
pombreda | pokoli: is each module a package published on PyPI? | 06:57 |
pokoli | pombreda: yes, under the trytond prefix for example trytond_company is the company module | 06:57 |
pombreda | thx | 06:58 |
pombreda | pokoli: are there modules that provide basic currencies and countries BTW? | 07:05 |
pokoli | pombreda: yes, on country and currency moduels there is a script to import them | 07:05 |
pombreda | pokoli: ok, script to run from the command line... or? | 07:05 |
pokoli | pombreda: https://docs.tryton.org/latest/modules-currency/setup.html#loading-and-updating-currencies | 07:05 |
pombreda | thank you :) | 07:05 |
pokoli | for country module: https://docs.tryton.org/latest/modules-country/setup.html | 07:06 |
pokoli | From command line you will need to have proteus installed | 07:06 |
pokoli | pombreda: If you are running docker image all required dependencies are already installed | 07:06 |
pombreda | ok. I need to figure out how I can patch the released image still :P | 07:07 |
pombreda | pokoli: https://pypi.org/project/trytond-account/7.2.2/#files has the fix. I will try to install this locally in a patched image. Do you reckon this is safe or best to only patch party.py? | 07:16 |
pokoli | pombreda: ohh yes, the fix is for account module (I tought it was for company module) so manually installin g the module should fix it | 07:21 |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:32 | |
pombreda | pokoli: with https://docs.tryton.org/latest/modules-country/setup.html ... what is the value for the database option? | 07:37 |
pokoli | pombreda: the name of the database you want to load the data on | 07:38 |
pokoli | pombreda: one tryton server can connect to multiple databases. Normally you create that with trytond-admin when initalizing the server | 07:38 |
pombreda | this ws hidden from me when using docker compose ;) | 07:40 |
pombreda | tryton FTW! | 07:40 |
pokoli | pombreda: yes, the docker compose created a trytond database by default id fo do not specify a different name in DB_NAME environment variable | 07:41 |
pombreda | pokoli: still no liftoff ... rebuilding the tryton image ATM... docker.io is super slow | 08:45 |
pokoli | pombreda: Normally building a docker image takes just 2-3 minutes | 09:10 |
pombreda | pokoli: docker.io has been throttling things more and more lately | 09:12 |
pombreda | i will patch the local image instead | 09:13 |
pombreda | pokoli: the install scripts for countries and currencies can only AFTER the module activation, is this right? | 09:17 |
pombreda | yep, answering myself. | 09:18 |
pombreda | The tables are not yet created otherwise | 09:18 |
pombreda | pokoli: do you use some ORM BTW? | 09:18 |
pokoli | pombreda: tryton has an ORM | 09:18 |
pombreda | pokoli: I have liftoff at last :) | 09:22 |
pombreda | ACTION now needs to figure out how to enter a few account receivables items, received memberships and expenses. Then export a balance sheet and income stetament | 09:25 |
pombreda | pokoli: is there a tutorial of sorts? or the doc has it all? | 09:26 |
pombreda | nm, going through https://docs.tryton.org/latest/modules-account/setup.html steps | 09:27 |
pombreda | I naively thought I would have nothing to do ;) | 09:27 |
pombreda | "The client format the date according to the user language." .... is there a way to display dates as YYYY-MM-DD when using English? | 09:34 |
pombreda | got it. | 09:35 |
pombreda | in Languages | 09:36 |
pombreda | but changing does not change how dates are displayed | 09:41 |
pokoli | pombreda: IIRC you need to logout and login to refresh date format | 10:41 |
pokoli | pombreda: all documentation (not many) is on docs.tryton.org | 10:41 |
pokoli | We are missing some efforts to have a proper documentation | 10:41 |
pombreda | pokoli: I know how hard it is to get good docs! | 10:43 |
pombreda | thanks! | 10:43 |
-!- springwurm(~springwur@2a01:76c0:104:c700:2332:a8a:a991:50bb) has joined #tryton | 12:01 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 15:28 | |
-!- mrichez(~Maxime@2a02:a03f:c2ec:6300:a7a6:822f:7511:d3de) has joined #tryton | 18:32 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!