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

chat.freenode.net #tryton log beginning Mon Oct 19 12:00:02 AM CEST 2020
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:24
-!- srgdts(~srgdts@unaffiliated/srgdts) has joined #tryton01:06
-!- lucascastro(~lucascast@177-185-139-15.dynamic.isotelco.net.br) has joined #tryton04:05
-!- lucascastro(~lucascast@177-185-139-15.dynamic.isotelco.net.br) has joined #tryton04:54
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton05:04
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton05:14
-!- Timitos(~kpreisler@2001:a61:4a4:e501:762b:62ff:fe84:ed7e) has joined #tryton06:10
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton07:29
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:48
pokoliirker is generating wrong llinks on tryton-commit channel: For example http://hg.tryton.org/lookup/31646531613108:52
pokoliabout the new bugs template, i'm wondering if it will be possible to add some box or similar to the message header08:53
pokoliCurrently 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 #tryton08:56
mrichezhi, 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
cedkpokoli: should be fixed https://gitlab.com/esr/irker/-/merge_requests/2509:47
cedkmrichez: should be fixed09:55
mrichezcedk: ok09:55
pokolicedk: I confirm it works as expected now. Thank you so much!09:55
-!- mariomop(~quassel@190.247.127.213) has joined #tryton10:41
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton12:19
-!- smorillo(0539e0e2@gateway/web/cgi-irc/kiwiirc.com/ip.5.57.224.226) has joined #tryton15:42
smorillohi! I'm getting unexpected behaviour on 5.4 creating sale lines by code when quoting a sale. Taxes of new line are not added15:43
smorilloit seems the cause is company is None and the tax company rule is filtering taxes of the product category15:44
smorillobut I don't know why company is None ...15:45
smorilloIf I create same line manually it works as expected15:47
cedksmorillo: it is probably that the company is missing in the context15:57
smorillohi cedk,  company is in the context but in the read method of "res.user" it is change by None value.15:59
smorillohere: https://hg.tryton.org/modules/company/file/5.4/company.py#l26616:01
cedksmorillo: so the user is not allowed to be in this company16:01
smorilloyes it is, as is the current user in the current company16:02
cedksmorillo: so it is the first option16:03
smorilloyes, company is None in context. But ... if I print context before calling on_change_product company has value16:11
pokolismorillo: is the line linked to sale? Does this sale have a company set?16:12
smorilloyes the sale is created and have the current company. In fact the line is created when clicking on "quote" button16:14
smorilloI made a new clean deployment and add the method directly in sale module, quote method16:24
smorillono custom modules. the problem persist16:24
smorilloa quickly test: https://paste.ofcode.org/347j9LxUSSxGqKEYUYbtteR16:25
smorilloin the other hand the module sale_opportunity creates the line correctly16:27
pokolismorillo: did you tried setting the sale befor calling on_change product?16:28
pokolismorillo: ohh I see you set on the default method16:28
smorilloyes, sorry there is a mistake in var name16:29
smorillobut it is fixed and continue16:29
smorillofyi same code on 5.0 works16:53
cedkit is probably because product instance has the wrong context.17:02
cedkI think this have been fixed on latest version17:03
smorillothat is! Getting product from pool works17:04
cedkI think it is https://bugs.tryton.org/issue911117:05
smorillothanks guys! I'm all day with it ...17:08
-!- rpit(~rpit@185.213.155.168) has joined #tryton17:17
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton19:03

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