IRC logs of #tryton for Tuesday, 2020-12-29

chat.freenode.net #tryton log beginning Tue Dec 29 12:00:01 AM CET 2020
-!- jason84(45a01cd7@69.160.28.215) has joined #tryton07:28
-!- jason84(45a01cd7@69.160.28.215) has left #tryton07:35
-!- jason84(45a01cd7@69.160.28.215) has joined #tryton07:35
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:37
-!- rpit(~rpit@p200300c88f4cbb00cea2955fb3b32f1a.dip0.t-ipconnect.de) has joined #tryton10:37
-!- mariomop(~quassel@190.188.44.80) has joined #tryton10:59
-!- xcodinas(~xcodinas@134.ip-5-196-28.eu) has joined #tryton12:18
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton12:18
-!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton12:39
LordVanhey. hope everyone had nice holidays ..12:40
LordVanI finally get to work on our tryton install again (in official work holiday ofc)12:40
LordVanI'm having a weird issue13:33
LordVani have a completely fresh (up2date) isntall for testing13:33
LordVanand i add accounts, ..13:33
LordVancurrency qand country are added13:34
LordVanbut both those dropdowns are empty (and searches are also empty) when i try to add the company?13:34
LordVan(tried using english and german)13:34
udonoLordVan: hi, has your user the company set as main company?13:37
cedkLordVan: you must use the import scripts of both modules13:37
LordVani am just creating the initial stuff using the gui13:37
LordVancedk, is that somethign new? i did run trytond-admin ... --all13:38
LordVancedk, how do i run the import scripts again? i forgot13:40
LordVanah nm found sth13:41
LordVanhttps://github.com/tryton/country13:41
LordVanis that new that you have tu run that manually? (as in since 4.6/4.8 ?) or did i Just forget13:42
cedkLordVan: it is new, we stopped to bundle XML data for those countries13:44
LordVanok cool13:45
LordVanI shall update my (note to self) blogpost ^^13:45
LordVanout of curiousity .. what version did that change with?13:45
cedkLordVan: 5.4 it is in the changelog13:51
cedkdocumentation is being reworked to include that https://discuss.tryton.org/t/gsod-project-report-documentation-for-basic-modules/352113:52
LordVanthanks ^^13:52
LordVancool13:52
cedkalready published for currency: https://docs.tryton.org/projects/modules-currency/en/latest/setup.html#loading-and-updating-currencies13:52
LordVanhmm i'm getting a weird error running the import scripts on a completely fresh DB with just those 2 modules14:03
LordVantrytond.model.modelstorage.SelectionValidationError: Der Wert "de_AT" von Feld "Sprache" in "\xdcbersetzung" ist nicht in der Auswahl enthalten.14:03
LordVanduno why it is german14:03
LordVani set LANG and LC_ALL14:03
LordVanbut it's saying about de_AT of the field Language in "translation" is not in the selection14:04
LordVanit worked before when I had a DB with some dummy data already added14:04
LordVan(and had a company, ..)14:04
LordVanhere's the whole traceback14:05
LordVanhttps://dpaste.org/VefS14:05
LordVanok this is odd14:12
LordVanchanging the language in my GUI client to english got rid of that error14:12
cedkdid you create the language de_AT?14:15
cedkfor me it looks like the admin user has a invalid language defined14:16
LordVanwell it had no language defined14:17
LordVanmust've used the default14:17
LordVanof the system14:17
LordVanbut yes i am pretty sure you are right14:17
LordVanI have 3 options in the dropdown: English, German, <empty>14:18
cedkmaybe the one defined in the trytond.conf14:19
LordVanyes14:19
LordVanso tryton knows en_US but not de_AT14:20
cedkneither it knows en14:20
LordVanwould I need to add that? or is there a way to "link" de_AT to de ?14:20
LordVanah so trytond.conf should probably just contain the 2 letter one?14:20
cedkyou can create de_AT, it will fallback by default to de14:20
LordVanwell i am just wondering if there is any benefit to doing that14:21
cedkby create I mean register in ir.lang table14:21
cedknone if you do nothing else14:21
cedkbut if you need to override some translation, it is useful14:21
LordVanso best is to just have language=de in trytond.conf14:21
LordVani might have to override some terms (some terms used in accounting,.. are slightly different in austria compared to germany)14:22
LordVanACTION goes and looks for documentaion on how to create another language14:23
LordVancedk, but .. I don't really need to do that now .. i can do that anytime right?14:26
LordVancedk, so how would I define the fallback language id ? set the parent id to "de" ?14:35
LordVanhmm I get an error about "the default language must be translaeable" but cannot tick that14:40
LordVanah whatever I change it to de for now if i need to override later I will add it then14:40
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:42
LordVancedk, btw .. what do you think about adding somethign to the wizard before creating users about making sure the admin has a valid language selected? (either make the user go to the settings, or just a message to point it out) -- because without you telling me i wouldn't have figured out why changing language makes it work (and why I even get the error message from trytond_import_coutries)14:45
LordVanbtw if anyone wants to check out my blog's tryton posts: https://blog.lordvan.com/blog/category/tryton/ ;)14:50
-!- lucascastro(~lucascast@177-185-139-189.dynamic.isotelco.net.br) has joined #tryton15:01
cedkLordVan: I would prefer to fail database initialization if the configuration language is wrong15:30
cedkthe fallback language follow the code notation15:30
LordVancedk, yes that is good too .. or after setting the admin password (when running trytond-admin) putting a message there to pick a language15:31
LordVanin any case it would be good to make the admin aware ;)15:31
cedkor the parent of the language if set15:31
LordVanok15:31
LordVani created one now15:33
LordVanseems like it let me create it non-active and then change to active and translatable15:33
LordVan(err not translatable)15:33
LordVanah i had to load translations first15:34
LordVanwhat is the recommended way for testing modules in development (meaning my own) ? just symlinking to the dev dir, or installing it every time again?16:09
cedkLordVan: usually I create a virtualenv and install it in dev mode once16:17
-!- lucascastro(~lucascast@177.51.17.40) has joined #tryton18:19
-!- lucascastro(~lucascast@177.51.17.40) has joined #tryton18:21
-!- lucascastro(~lucascast@177.51.17.40) has joined #tryton18:23
-!- lucas_(~lucascast@186.193.181.14.jupiter.com.br) has joined #tryton18:27
LordVan;)19:13
-!- lucascastro(~lucascast@177-185-131-162.corp.isotelco.net.br) has joined #tryton19:22
-!- lucascastro(~lucascast@177-185-131-162.corp.isotelco.net.br) has joined #tryton19:24
-!- lucascastro(~lucascast@177-185-131-162.corp.isotelco.net.br) has joined #tryton19:27
-!- lucascastro(~lucascast@177-185-131-162.corp.isotelco.net.br) has joined #tryton19:41
-!- lucascastro(~lucascast@177-185-131-162.corp.isotelco.net.br) has joined #tryton19:50

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