chat.freenode.net #tryton log beginning Thu Dec 31 12:00:01 AM CET 2020 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:25 | |
-!- lucascastro(~lucascast@45.186.49.168) has joined #tryton | 02:16 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:47 | |
LordVan | just confirming .. when I have several different models i want to add extra fields to .. it probably is best to do all that in one module as opposed to making like 4 or 5 modules per Model .. or is there any benefit (at all) in splitting it up? (to me it just seems like more work for me to maintain when I split it -- and the fields I add are unlikely to be useful to anyone else for the most part so no real point for others that are not in the | 09:11 |
---|---|---|
LordVan | same business) | 09:11 |
cedk | LordVan: since few years now we have only 1 module per customer | 09:40 |
LordVan | yeah seems to be less of a pain except for something really generic | 09:41 |
LordVan | like my https://github.com/LordVan/tryton-modules/tree/master/sale_list_description ;) but that too is overkill consideirng the amount of actual code/xml but it was mostly for getting into dev and testing | 09:42 |
LordVan | btw | 09:46 |
LordVan | party_relationships .. is there a way to automatically set up the reverse relationships (where defined of course) | 09:47 |
LordVan | ah never mind | 09:47 |
LordVan | i just tried sth and it does exactly what i want/was going to ask | 09:48 |
LordVan | ACTION wonders why delivery date is greyed out / not clickable on sale_line .. there is no mention of it on https://docs.tryton.org/projects/modules-sale/en/latest/ either .. | 09:54 |
LordVan | I suspect it is only for actually alraedy delivered stuff ? -- meaning if i want a "due date" for the delivery per line I need to add it correct? | 09:55 |
LordVan | (we often have orders where some parts of the order are for different due dates) | 09:55 |
LordVan | ACTION goes and reads the code | 09:55 |
LordVan | yeah I guess my assumption was correct.. so I need to add a due_date field myself here .. | 09:58 |
LordVan | btw ... I hope you don't mind me writing that much sometimes here .. (even if I figure out the answer myself after a bit quite often) .. if you'd prefer me to not "spam" so much here i can keep it down | 09:59 |
LordVan | hmm is this a problem with my data, template or relatorio/.. setup? : https://dpaste.org/qPCh | 10:30 |
LordVan | .. ok seems like there was just some data not there in the Sale that was expected for the template | 10:32 |
LordVan | (tried with a different one) | 10:32 |
cedk | LordVan: it seems that either the language code in the context is not registered or the default language in the configuration (ir.configuration) is not registered | 10:34 |
-!- mariomop(~quassel@190.188.44.80) has joined #tryton | 11:07 | |
LordVan | cedk, but the weird part is .. for a "posted" invoice i can generate the report without error | 11:40 |
LordVan | well anyway I shall find out more at a later point, when I made my templates for reports | 11:51 |
Pilou | LordVan: just in case: is "language" set in "[database]" section of trytond.conf (with a short language code, for example: 'fr') ? | 11:52 |
LordVan | Pilou, thanks but i think in this case it was not that .. the problem was that sale.party.lang was not set | 11:54 |
LordVan | this is just the default template included btw | 11:54 |
LordVan | so i was wondering | 11:54 |
LordVan | would it maybe make sense to change that line "format_date(sale.sale_date or today, sale.party.lang))" to something like "format_date(sale.sale_date or today, sale.party.lang or system_default_ language)) | 11:56 |
LordVan | because in party | 11:56 |
LordVan | the language field is non-mandatory | 11:56 |
LordVan | (I do intend to look into setting it up, so that for new parties the default language is the standard language so it shouldn't happen often, but still ..) | 11:56 |
LordVan | seems less than ideal | 11:56 |
-!- lucascastro(~lucascast@2804:c2c:cf00:c2ad:23d3:b198:497e:22b8) has joined #tryton | 12:15 | |
cedk | LordVan: no need to change because format_date fallback to the default system | 12:19 |
LordVan | then why did i get the exception though? | 12:21 |
cedk | LordVan: because I think the language in ir.configuration is not registered | 12:25 |
LordVan | i just used de now | 12:25 |
LordVan | and restarted trytond | 12:25 |
cedk | it probably comes from when you created the DB with the wrong configuration | 12:25 |
LordVan | ah | 12:25 |
cedk | it is registered in ir_configuration table | 12:25 |
LordVan | you mean i need to recreate dthe db with language=de instead of de_AT | 12:25 |
LordVan | i see | 12:25 |
LordVan | I thought it was enough to change the config and restart trytond. | 12:25 |
LordVan | thanks | 12:25 |
LordVan | i shall re-create | 12:25 |
cedk | LordVan: you can just update the value in the table | 12:26 |
LordVan | ah so there is nothing else that needs to be done? then I do that. thanks | 12:26 |
LordVan | would re-running trytond_admin --all also update it btw? | 12:27 |
LordVan | ah | 12:27 |
LordVan | it did | 12:27 |
LordVan | but | 12:27 |
LordVan | de # de_AT | 12:27 |
LordVan | i had left a comment at the end | 12:27 |
LordVan | it seems to put that too and nto ignore the comment. my mistake | 12:28 |
LordVan | anyway manually updated and also fixed my config | 12:30 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 12:38 | |
-!- rpit(~rpit@p200300c88f4cbb00cea2955fb3b32f1a.dip0.t-ipconnect.de) has joined #tryton | 13:54 | |
LordVan | well i shall stop for the day.. have a nice day and a good start into the new year ;) | 14:09 |
-!- lucascastro(~lucascast@2804:c2c:cf00:c2ad:23d3:b198:497e:22b8) has joined #tryton | 17:05 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 21:38 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!