chat.freenode.net #tryton log beginning Mon Oct 5 12:00:01 AM CEST 2020 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 00:36 | |
-!- srgdts(~srgdts@unaffiliated/srgdts) has joined #tryton | 01:38 | |
-!- Timitos(~kpreisler@2001:a61:4a4:e501:762b:62ff:fe84:ed7e) has joined #tryton | 05:28 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 05:29 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:18 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 08:01 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:30 | |
-!- Springwurm_(~Springwur@5.104.149.54) has joined #tryton | 08:38 | |
mrichez | hi, wondering if help for secondary unit should not be reversed between rate and factor ? : http://hg.tryton.org/modules/sale_secondary_unit/file/tip/product.py#l28 | 09:24 |
---|---|---|
cedk | mrichez: why? At least it is well the invert of the rate definition | 09:58 |
mrichez | cedk: yes it's the invert but maybe i misunderstanding... For factor help is : coefficient(sale_unit)=1(secondary_unit) , for me this should be coefficient(secondary_unit) = 1 (sale_unit) | 10:01 |
cedk | mrichez: why? | 10:02 |
mrichez | cedk: in my case i define a product with Unit as Storage Uom... i'm using Gram as secondary Uom, and define Factor = 33 (as my unit weight 33 grams)... | 10:06 |
cedk | mrichez: I do not understand, why is the definition wrong? | 10:09 |
mrichez | cedk: in my case i would write 33 (gr) = 1 (unit) | 10:10 |
mrichez | cedk: if i follow help it would be : 33 (unit)= 1 (gr) | 10:10 |
cedk | mrichez: so where is the problem? | 10:20 |
-!- rpit(~rpit@p200300c88f309100748b1eff5bf2d1d7.dip0.t-ipconnect.de) has joined #tryton | 10:22 | |
cedk | this is the same help as on unit factor and they are used the same way | 10:23 |
mrichez | cedk: in the help text, secondary_unit should be in place of sale_unit (or maybe i'm totally wrong) | 10:23 |
cedk | in compute_qty, it is "amount *= factor" | 10:26 |
-!- mariomop(~quassel@190.193.24.162) has joined #tryton | 10:27 | |
cedk | mrichez: OK, I see the mistake, the help text is inverted | 10:28 |
mrichez | cedk: :-) | 10:29 |
cedk | we must switch the help text between rate and factor | 10:29 |
mrichez | cedk: that's what i thought .. | 10:29 |
mrichez | cedk: i will open an issue | 10:30 |
cedk | I think we must fix also the translations | 10:30 |
cedk | to backport | 10:30 |
mrichez | cedk: don't know how to do that, switching the help text will not be translated automatically ? | 10:32 |
cedk | mrichez: no, the po file has a reference to the field name | 10:36 |
mrichez | cedk: ok | 10:37 |
mrichez | cedk: https://bugs.tryton.org/issue9683 | 10:44 |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 12:45 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 14:13 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 19:24 | |
-!- kwmiebach_(sid16855@gateway/web/irccloud.com/x-uzabeqdkfgvnrmfj) has joined #tryton | 20:20 | |
-!- Timitos(~kpreisler@2001:a61:4a4:e501:762b:62ff:fe84:ed7e) has left #tryton | 20:31 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!