chat.freenode.net #tryton log beginning Tue Dec 29 12:00:01 AM CET 2020 | ||
-!- jason84(45a01cd7@69.160.28.215) has joined #tryton | 07:28 | |
-!- jason84(45a01cd7@69.160.28.215) has left #tryton | 07:35 | |
-!- jason84(45a01cd7@69.160.28.215) has joined #tryton | 07:35 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 09:37 | |
-!- rpit(~rpit@p200300c88f4cbb00cea2955fb3b32f1a.dip0.t-ipconnect.de) has joined #tryton | 10:37 | |
-!- mariomop(~quassel@190.188.44.80) has joined #tryton | 10:59 | |
-!- xcodinas(~xcodinas@134.ip-5-196-28.eu) has joined #tryton | 12:18 | |
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton | 12:18 | |
-!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton | 12:39 | |
LordVan | hey. hope everyone had nice holidays .. | 12:40 |
---|---|---|
LordVan | I finally get to work on our tryton install again (in official work holiday ofc) | 12:40 |
LordVan | I'm having a weird issue | 13:33 |
LordVan | i have a completely fresh (up2date) isntall for testing | 13:33 |
LordVan | and i add accounts, .. | 13:33 |
LordVan | currency qand country are added | 13:34 |
LordVan | but 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 |
udono | LordVan: hi, has your user the company set as main company? | 13:37 |
cedk | LordVan: you must use the import scripts of both modules | 13:37 |
LordVan | i am just creating the initial stuff using the gui | 13:37 |
LordVan | cedk, is that somethign new? i did run trytond-admin ... --all | 13:38 |
LordVan | cedk, how do i run the import scripts again? i forgot | 13:40 |
LordVan | ah nm found sth | 13:41 |
LordVan | https://github.com/tryton/country | 13:41 |
LordVan | is that new that you have tu run that manually? (as in since 4.6/4.8 ?) or did i Just forget | 13:42 |
cedk | LordVan: it is new, we stopped to bundle XML data for those countries | 13:44 |
LordVan | ok cool | 13:45 |
LordVan | I shall update my (note to self) blogpost ^^ | 13:45 |
LordVan | out of curiousity .. what version did that change with? | 13:45 |
cedk | LordVan: 5.4 it is in the changelog | 13:51 |
cedk | documentation is being reworked to include that https://discuss.tryton.org/t/gsod-project-report-documentation-for-basic-modules/3521 | 13:52 |
LordVan | thanks ^^ | 13:52 |
LordVan | cool | 13:52 |
cedk | already published for currency: https://docs.tryton.org/projects/modules-currency/en/latest/setup.html#loading-and-updating-currencies | 13:52 |
LordVan | hmm i'm getting a weird error running the import scripts on a completely fresh DB with just those 2 modules | 14:03 |
LordVan | trytond.model.modelstorage.SelectionValidationError: Der Wert "de_AT" von Feld "Sprache" in "\xdcbersetzung" ist nicht in der Auswahl enthalten. | 14:03 |
LordVan | duno why it is german | 14:03 |
LordVan | i set LANG and LC_ALL | 14:03 |
LordVan | but it's saying about de_AT of the field Language in "translation" is not in the selection | 14:04 |
LordVan | it worked before when I had a DB with some dummy data already added | 14:04 |
LordVan | (and had a company, ..) | 14:04 |
LordVan | here's the whole traceback | 14:05 |
LordVan | https://dpaste.org/VefS | 14:05 |
LordVan | ok this is odd | 14:12 |
LordVan | changing the language in my GUI client to english got rid of that error | 14:12 |
cedk | did you create the language de_AT? | 14:15 |
cedk | for me it looks like the admin user has a invalid language defined | 14:16 |
LordVan | well it had no language defined | 14:17 |
LordVan | must've used the default | 14:17 |
LordVan | of the system | 14:17 |
LordVan | but yes i am pretty sure you are right | 14:17 |
LordVan | I have 3 options in the dropdown: English, German, <empty> | 14:18 |
cedk | maybe the one defined in the trytond.conf | 14:19 |
LordVan | yes | 14:19 |
LordVan | so tryton knows en_US but not de_AT | 14:20 |
cedk | neither it knows en | 14:20 |
LordVan | would I need to add that? or is there a way to "link" de_AT to de ? | 14:20 |
LordVan | ah so trytond.conf should probably just contain the 2 letter one? | 14:20 |
cedk | you can create de_AT, it will fallback by default to de | 14:20 |
LordVan | well i am just wondering if there is any benefit to doing that | 14:21 |
cedk | by create I mean register in ir.lang table | 14:21 |
cedk | none if you do nothing else | 14:21 |
cedk | but if you need to override some translation, it is useful | 14:21 |
LordVan | so best is to just have language=de in trytond.conf | 14:21 |
LordVan | i might have to override some terms (some terms used in accounting,.. are slightly different in austria compared to germany) | 14:22 |
LordVan | ACTION goes and looks for documentaion on how to create another language | 14:23 |
LordVan | cedk, but .. I don't really need to do that now .. i can do that anytime right? | 14:26 |
LordVan | cedk, so how would I define the fallback language id ? set the parent id to "de" ? | 14:35 |
LordVan | hmm I get an error about "the default language must be translaeable" but cannot tick that | 14:40 |
LordVan | ah whatever I change it to de for now if i need to override later I will add it then | 14:40 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 14:42 | |
LordVan | cedk, 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 |
LordVan | btw 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 #tryton | 15:01 | |
cedk | LordVan: I would prefer to fail database initialization if the configuration language is wrong | 15:30 |
cedk | the fallback language follow the code notation | 15:30 |
LordVan | cedk, yes that is good too .. or after setting the admin password (when running trytond-admin) putting a message there to pick a language | 15:31 |
LordVan | in any case it would be good to make the admin aware ;) | 15:31 |
cedk | or the parent of the language if set | 15:31 |
LordVan | ok | 15:31 |
LordVan | i created one now | 15:33 |
LordVan | seems like it let me create it non-active and then change to active and translatable | 15:33 |
LordVan | (err not translatable) | 15:33 |
LordVan | ah i had to load translations first | 15:34 |
LordVan | what 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 |
cedk | LordVan: usually I create a virtualenv and install it in dev mode once | 16:17 |
-!- lucascastro(~lucascast@177.51.17.40) has joined #tryton | 18:19 | |
-!- lucascastro(~lucascast@177.51.17.40) has joined #tryton | 18:21 | |
-!- lucascastro(~lucascast@177.51.17.40) has joined #tryton | 18:23 | |
-!- lucas_(~lucascast@186.193.181.14.jupiter.com.br) has joined #tryton | 18:27 | |
LordVan | ;) | 19:13 |
-!- lucascastro(~lucascast@177-185-131-162.corp.isotelco.net.br) has joined #tryton | 19:22 | |
-!- lucascastro(~lucascast@177-185-131-162.corp.isotelco.net.br) has joined #tryton | 19:24 | |
-!- lucascastro(~lucascast@177-185-131-162.corp.isotelco.net.br) has joined #tryton | 19:27 | |
-!- lucascastro(~lucascast@177-185-131-162.corp.isotelco.net.br) has joined #tryton | 19:41 | |
-!- lucascastro(~lucascast@177-185-131-162.corp.isotelco.net.br) has joined #tryton | 19:50 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!