chat.freenode.net #tryton log beginning Mon Oct 19 12:00:02 AM CEST 2020 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:24 | |
-!- srgdts(~srgdts@unaffiliated/srgdts) has joined #tryton | 01:06 | |
-!- lucascastro(~lucascast@177-185-139-15.dynamic.isotelco.net.br) has joined #tryton | 04:05 | |
-!- lucascastro(~lucascast@177-185-139-15.dynamic.isotelco.net.br) has joined #tryton | 04:54 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 05:04 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton | 05:14 | |
-!- Timitos(~kpreisler@2001:a61:4a4:e501:762b:62ff:fe84:ed7e) has joined #tryton | 06:10 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 07:29 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:48 | |
pokoli | irker is generating wrong llinks on tryton-commit channel: For example http://hg.tryton.org/lookup/316465316131 | 08:52 |
---|---|---|
pokoli | about the new bugs template, i'm wondering if it will be possible to add some box or similar to the message header | 08:53 |
pokoli | Currently it's dificult to now which text is the message itself and which is just the header (autor and date) | 08:53 |
-!- rpit(~rpit@p200300c88f309100748b1eff5bf2d1d7.dip0.t-ipconnect.de) has joined #tryton | 08:56 | |
mrichez | hi, reviewbot seems not updating issue with review ? And when i try to manually update issue with review number got "An error has occured" | 09:25 |
cedk | pokoli: should be fixed https://gitlab.com/esr/irker/-/merge_requests/25 | 09:47 |
cedk | mrichez: should be fixed | 09:55 |
mrichez | cedk: ok | 09:55 |
pokoli | cedk: I confirm it works as expected now. Thank you so much! | 09:55 |
-!- mariomop(~quassel@190.247.127.213) has joined #tryton | 10:41 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 12:19 | |
-!- smorillo(0539e0e2@gateway/web/cgi-irc/kiwiirc.com/ip.5.57.224.226) has joined #tryton | 15:42 | |
smorillo | hi! I'm getting unexpected behaviour on 5.4 creating sale lines by code when quoting a sale. Taxes of new line are not added | 15:43 |
smorillo | it seems the cause is company is None and the tax company rule is filtering taxes of the product category | 15:44 |
smorillo | but I don't know why company is None ... | 15:45 |
smorillo | If I create same line manually it works as expected | 15:47 |
cedk | smorillo: it is probably that the company is missing in the context | 15:57 |
smorillo | hi cedk, company is in the context but in the read method of "res.user" it is change by None value. | 15:59 |
smorillo | here: https://hg.tryton.org/modules/company/file/5.4/company.py#l266 | 16:01 |
cedk | smorillo: so the user is not allowed to be in this company | 16:01 |
smorillo | yes it is, as is the current user in the current company | 16:02 |
cedk | smorillo: so it is the first option | 16:03 |
smorillo | yes, company is None in context. But ... if I print context before calling on_change_product company has value | 16:11 |
pokoli | smorillo: is the line linked to sale? Does this sale have a company set? | 16:12 |
smorillo | yes the sale is created and have the current company. In fact the line is created when clicking on "quote" button | 16:14 |
smorillo | I made a new clean deployment and add the method directly in sale module, quote method | 16:24 |
smorillo | no custom modules. the problem persist | 16:24 |
smorillo | a quickly test: https://paste.ofcode.org/347j9LxUSSxGqKEYUYbtteR | 16:25 |
smorillo | in the other hand the module sale_opportunity creates the line correctly | 16:27 |
pokoli | smorillo: did you tried setting the sale befor calling on_change product? | 16:28 |
pokoli | smorillo: ohh I see you set on the default method | 16:28 |
smorillo | yes, sorry there is a mistake in var name | 16:29 |
smorillo | but it is fixed and continue | 16:29 |
smorillo | fyi same code on 5.0 works | 16:53 |
cedk | it is probably because product instance has the wrong context. | 17:02 |
cedk | I think this have been fixed on latest version | 17:03 |
smorillo | that is! Getting product from pool works | 17:04 |
cedk | I think it is https://bugs.tryton.org/issue9111 | 17:05 |
smorillo | thanks guys! I'm all day with it ... | 17:08 |
-!- rpit(~rpit@185.213.155.168) has joined #tryton | 17:17 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 19:03 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!