chat.freenode.net #tryton log beginning Thu 28 May 2020 12:00:01 AM CEST | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 00:04 | |
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-iymojqunwwjznynn) has joined #tryton | 00:36 | |
-!- thaneor(~ldlc6@r186-54-245-250.dialup.adsl.anteldata.net.uy) has joined #tryton | 02:22 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 04:57 | |
-!- mrichez(~Maxime@2a02:a03f:467c:d500:a385:4ecf:c4ea:d8cf) has joined #tryton | 05:38 | |
-!- Timitos(~kpreisler@2001:a61:5ad:c901:762b:62ff:fe84:ed7e) has joined #tryton | 06:21 | |
-!- rpit(~rpit@p200300c88f094100da82d2c817b701d0.dip0.t-ipconnect.de) has joined #tryton | 06:22 | |
-!- rpit(~rpit@p200300c88f094100da82d2c817b701d0.dip0.t-ipconnect.de) has joined #tryton | 06:26 | |
-!- udono(~udono@048-135-067-156.ip-addr.inexio.net) has joined #tryton | 06:32 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:37 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 08:39 | |
mrichez | hi, is there only fields that can be used in xml tree ? or could this apply to a property ? Concrete example: i'm storing density of a product material (density uom is weight and volume), so in my model i'm using 2 many2one fields to get each uom. But in treeview, i would display uom with format ("weight_uom/volume_uom"). Is the best way to use a function field to return a new string with both uoms? | 09:52 |
---|---|---|
cedk | mrichez: why not using a new category of measure density? | 10:08 |
mrichez | cedk: because i'm using it to calculate a theoretical weight of the product, (volume * density = weight) so i need to know uom factor | 10:14 |
cedk | mrichez: maybe you could have a cross unit conversion definition | 10:26 |
mrichez | cedk: heuuu... | 10:27 |
mrichez | cedk: so it implies a new model for cross unit ? and then associate this cross unit to density model ? | 10:29 |
cedk | yes we could store that 1 volume * 1 density = x weight | 10:33 |
mrichez | cedk: ok, but don't know if there's other example of cross unit ? 1 model for 1 case ? useful ? | 10:36 |
-!- mariomop(~quassel@190.193.24.15) has joined #tryton | 10:46 | |
pokoli | mrichez: speed is similar: Distance / Time | 11:07 |
pokoli | mrichez: strengh also: Mass / Aceleration | 11:08 |
mrichez | pokoli: :-) | 11:23 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 11:29 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 11:57 | |
mrichez | back with cross unit: how would be this new model added to product.uom ? i'm lost... :-) | 12:02 |
-!- LordVan|Work(~LordVan@gentoo/developer/LordVan) has joined #tryton | 12:18 | |
mrichez | cedk: could it be a model like this : https://pastebin.com/9uiCGxz7 | 12:24 |
cedk | mrichez: I think it should only be based on categories | 12:27 |
cedk | because we need to have only one result for the product of two categories | 12:27 |
cedk | so it would be: category1 * category2 = x unit | 12:28 |
cedk | and anoption for category1 / category2 = x unit | 12:28 |
mrichez | cedk: what would be the choice of the uom in the category then ? | 12:29 |
cedk | mrichez: 1 | 12:30 |
mrichez | cedk: so let's says i add a new cross_unit that would be "Density" category 1 is Weight, category2 is Volume... how user can get this uom in Gr/mm³ ? | 12:35 |
cedk | mrichez: it will depend on the base unit of weight and volume | 12:36 |
LordVan|Work | hi | 13:07 |
LordVan|Work | just trying to install newest trytond + modules on a new box to test something | 13:08 |
LordVan|Work | any clue why it wants no 3.8 ? | 13:08 |
LordVan|Work | The following USE changes are necessary to proceed: | 13:08 |
LordVan|Work | (see "package.use" in the portage(5) man page for more details) | 13:08 |
LordVan|Work | # required by trytond (argument) | 13:08 |
LordVan|Work | >=app-office/trytond-5.6.0 -python_targets_python3_8 | 13:08 |
LordVan|Work | I mean i don'T mind if i use 3.7 or 3.8 just wondering | 13:09 |
LordVan|Work | oh tryton 5.6 supports weasyprint.. anyone want to share experiences? | 13:23 |
cedk | LordVan|Work: not all modules in Gentoo supports 3.8 because of missing dependencies declaration | 13:42 |
cedk | LordVan|Work: I think 3.7 is fully supported | 13:43 |
LordVan|Work | cedk, yeah i suspected that but thanks for confirming ;) | 13:46 |
cedk | LordVan|Work: I find that python version management in Gentoo too much complicated | 13:50 |
cedk | LordVan|Work: and too slow to update | 13:50 |
LordVan|Work | cedk, hmm id on'T mind that, but sometimes too slow - especially the deps | 13:51 |
cedk | I think most packages should work on new version of Python without issue | 13:51 |
LordVan|Work | cedk, alternatively i could of course use virtualenv, but well | 13:51 |
LordVan|Work | cedk, yeah but they need to be checked by the maintainer(s) | 13:51 |
cedk | LordVan|Work: well as long as they do not require compilation, the odds is very low that they will not work on the next version | 13:52 |
LordVan|Work | yeah i know | 13:52 |
cedk | and now that Python release a new version every year, it is worse | 13:52 |
LordVan|Work | hm i don'T have too much time for gentoo at the moment unfortunately (used to be active in the python team ) | 13:55 |
LordVan|Work | that said i often just use virtualenv anyway | 13:55 |
LordVan|Work | cedk, since you are here .. can weasyprint replace the opendocument reports,..? | 14:02 |
LordVan|Work | or is it not that far (yet)? | 14:02 |
pokoli | LordVan|Work: weasyprint is used for converting html reports into pdf | 14:03 |
LordVan|Work | yes but can that with html reports (feasibly) replace open document ones? | 14:04 |
pokoli | LordVan|Work: yes, but you will need to design your own reports | 14:04 |
pokoli | LordVan|Work: all the base reports are odt based | 14:04 |
LordVan|Work | well i was going to make custom reports for just about anything anyway so i might have a look at that | 14:04 |
pokoli | LordVan|Work: you just need to create the report with html extensions and pdf output format | 14:04 |
pokoli | LordVan|Work: and trytond will use weasyprint for conversion and fallback to libreoffice is not available | 14:05 |
cedk | the main difficult is that HTML is not really designed to make printed document | 14:05 |
pokoli | ACTION bbl | 14:05 |
LordVan|Work | i like the idea of not needing libreoffice installed on the server | 14:05 |
LordVan|Work | cedk, true | 14:05 |
LordVan|Work | xml/fop would be more suitable | 14:05 |
LordVan|Work | I did some xml+ fop stuff several years ago .. very precise control from what i remember | 14:06 |
LordVan|Work | do you know if anyone tried generating reports that way before ? | 14:06 |
LordVan|Work | -- to be fair libreoffice docs have the advantage they can be edited later if you need to do anything special | 14:07 |
-!- thaneor1(~ldlc6@179.26.158.99) has joined #tryton | 14:24 | |
pokoli | LordVan|Work: it should be doable to override the report module to generate the pdf in the format you want | 14:36 |
pokoli | LordVan|Work: You can use Genshi (the template engine) to render the xml and the convert it to pdf using fop latter | 14:37 |
-!- mrichez(~Maxime@2a02:a03f:467c:d500:a385:4ecf:c4ea:d8cf) has joined #tryton | 17:03 | |
-!- mrichez(~Maxime@2a02:a03f:467c:d500:a385:4ecf:c4ea:d8cf) has joined #tryton | 18:06 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!