IRC logs of #tryton for Monday, 2020-10-05

chat.freenode.net #tryton log beginning Mon Oct 5 12:00:01 AM CEST 2020
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:36
-!- srgdts(~srgdts@unaffiliated/srgdts) has joined #tryton01:38
-!- Timitos(~kpreisler@2001:a61:4a4:e501:762b:62ff:fe84:ed7e) has joined #tryton05:28
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton05:29
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:18
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton08:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:30
-!- Springwurm_(~Springwur@5.104.149.54) has joined #tryton08:38
mrichezhi, 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#l2809:24
cedkmrichez: why? At least it is well the invert of the rate definition09:58
mrichezcedk: 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
cedkmrichez: why?10:02
mrichezcedk: 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
cedkmrichez: I do not understand, why is the definition wrong?10:09
mrichezcedk: in my case i would write 33 (gr) = 1 (unit)10:10
mrichezcedk: if i follow help it would be : 33 (unit)= 1 (gr)10:10
cedkmrichez: so where is the problem?10:20
-!- rpit(~rpit@p200300c88f309100748b1eff5bf2d1d7.dip0.t-ipconnect.de) has joined #tryton10:22
cedkthis is the same help as on unit factor and they are used the same way10:23
mrichezcedk: in the help text, secondary_unit should be in place of sale_unit (or maybe i'm totally wrong)10:23
cedkin compute_qty, it is "amount *= factor"10:26
-!- mariomop(~quassel@190.193.24.162) has joined #tryton10:27
cedkmrichez: OK, I see the mistake, the help text is inverted10:28
mrichezcedk: :-)10:29
cedkwe must switch the help text between rate and factor10:29
mrichezcedk: that's what i thought ..10:29
mrichezcedk: i will open an issue10:30
cedkI think we must fix also the translations10:30
cedkto backport10:30
mrichezcedk: don't know how to do that, switching the help text will not be translated automatically ?10:32
cedkmrichez: no, the po file has a reference to the field name10:36
mrichezcedk: ok10:37
mrichezcedk: https://bugs.tryton.org/issue968310:44
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton12:45
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:13
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton19:24
-!- kwmiebach_(sid16855@gateway/web/irccloud.com/x-uzabeqdkfgvnrmfj) has joined #tryton20:20
-!- Timitos(~kpreisler@2001:a61:4a4:e501:762b:62ff:fe84:ed7e) has left #tryton20:31

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