IRC logs of #tryton for Friday, 2017-01-13

chat.freenode.net #tryton log beginning Fri Jan 13 00:00:01 CET 2017
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton00:37
-!- nramirezuy(~nramirezu@r167-62-183-120.dialup.adsl.anteldata.net.uy) has joined #tryton01:34
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:37
-!- nramirezuy(~nramirezu@r167-62-183-120.dialup.adsl.anteldata.net.uy) has joined #tryton01:38
-!- JosDzGx(~Thunderbi@187.188.72.36) has joined #tryton02:32
-!- thaneor(~ldlc6@r186-48-70-140.dialup.adsl.anteldata.net.uy) has joined #tryton03:01
-!- nramirezuy(~nramirezu@r167-62-183-120.dialup.adsl.anteldata.net.uy) has joined #tryton03:05
-!- smarro(~sebastian@181.16.7.104) has joined #tryton04:46
-!- nramirezuy(~nramirezu@r167-62-183-120.dialup.adsl.anteldata.net.uy) has joined #tryton04:51
-!- travis_(616312eb@gateway/web/freenode/ip.97.99.18.235) has joined #tryton05:41
travis_Any tips on why my Tryton client is never in English after the first time. I've tried multiple OS's and it always ends up in Russian, German, or French05:43
-!- robinak(~quassel@unaffilated/robink) has joined #tryton06:42
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton07:12
-!- rpit(~rpit@aftr-37-24-149-240.unity-media.net) has joined #tryton08:44
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:55
-!- thaneor(~ldlc6@r186-48-52-216.dialup.adsl.anteldata.net.uy) has joined #tryton09:51
-!- Timitos(~kpreisler@tmo-122-96.customers.d1-online.com) has joined #tryton09:56
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:04
-!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton10:18
buxyI have a problem where moves created by invoices are duplicated once in draft, and once in posted mode. Is that a known bug with 4.2?10:53
buxyIt does not do it for all invoices, only some supplier invoices but I can't pinpoint the underlying problem. Usually I duplicate a former supplier invoice. It might be related.10:55
-!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has joined #tryton10:57
pokolibuxy: it's the first time a hear about this issue11:03
pokolibuxy: but moves, are created by purchase not by invoice11:04
buxypokoli: I'm not sure what difference you make, I use a screen named "Factures fournisseur" in French, and it means "Supplier invoices"11:07
pokolibuxy: but you create the invoices directly from there or you use the purchase workflow?11:08
buxyyes, we create the invoices there11:08
nicoepokoli: he's talking about accounting moves I think11:09
buxynicoe: yes, accounting moves11:10
pokolibuxy: sorry I get confused with stock moves :(11:10
pokolibuxy: maybe when you duplicate a posted invoice it's related move is also duplicated?11:11
nicoepokoli: move is reset to None in copy11:12
nicoebuxy: it seems very strange11:12
pokolibuxy: I agree with nicoe, it will be great if you can provide some steps to reproduce :$11:13
buxyYeah, I'll try to figure out at which point the moves are created. But since it doesn't do it for all invoices, it's not yet clear how I will reproduce it...11:14
nicoebuxy: when you say that the moves are duplicated what does it mean11:14
buxyit means I have move 1450 and move 1451 with similar lines, both associated to the same invoice (Origin field) but one is in draft mode and the other is posted with a sequence number11:15
cedkbuxy: issue498011:16
buxycedk: I don't have the account_invoice_stock module?11:18
buxyas nicoe pointed out, we are speaking of accounting moves, not of stock moves11:19
cedkbuxy: which modules have you?11:20
buxycedk: https://paste.debian.net/908576/11:27
buxy(the freexian module only overrides some reports)11:28
cedkbuxy: are the moves exactly the same?11:33
buxycedk: yes11:34
buxyexcept for the status, post number, post date11:35
cedkbuxy: even if you change something in the invoice after duplicate?11:36
buxythis is for posted invoices, so I can't change anything at this point, and the moves are different from the original invoice that we used to duplicate, we change labels and amounts frequently11:38
cedkbuxy: I mean changing the duplicates11:40
buxyI just discovered the problem this morning, I don't know yet when the duplicate is created, I just know that I have it for posted invoices11:41
buxyI'll do some tries later11:41
buxy..for some posted supplier invoices..11:42
cedkthis may be the problem: http://hg.tryton.org/modules/account_invoice/file/default/invoice.py#l131511:44
cedkfrom changeset 994ce81795a711:45
cedkif the transition is called with a list which contains many time the same invoice, it will create more than one move11:48
cedknow, why is the transition called with many times the same invoice11:48
cedkbuxy: how are you posting your invoice?11:49
buxycedk: with the button on the supplier invoice view11:49
buxy(usually by clicking first on "validate" and then on "post")11:50
buxyI have found a first way to create a move: click validate, then click draft again11:52
buxyand I have the draft move11:52
cedkbuxy: it should be deleted: http://hg.tryton.org/modules/account_invoice/file/default/invoice.py#l127611:53
buxywell, when I click validate I have no move at all11:54
buxyit gets only created when I click draft11:54
buxyand when I post, I get the correct posted move which is similar11:54
buxyit can't be deleted because invoice.move is still None11:55
cedkbuxy: I do not understand11:57
-!- Timitos1(~kpreisler@business-178-015-079-061.static.arcor-ip.net) has joined #tryton11:58
buxycedk: I duplicate my old supplier invoice, no new account moves12:00
buxyI click validate, no new account moves (and nothing show in the invoice.move field)12:00
buxyI click draft, new account move appeared in draft mode in the "Account moves" view (but invoice.move is still empty)12:01
buxylet me double check the second step, it would seem logical that it gets created at this point12:04
cedkbuxy: OK I got it, I think12:07
cedkbuxy: I'm writting a scenario test12:07
buxyok, I was wrong, the account move is created at step 2 but not recorded in invoice.move12:07
cedkbuxy: yes I think the issue is the save in validate_invoice12:08
cedkbut there are still the potential issue about multiple invoice in the list12:09
buxywhat's wrong with cls.save(invoices) in that function compared to the same in post? should we use cls.save(invoices_in) ?12:12
buxybecause browse returns copies of the objects?12:13
cedkbuxy: yes, this is my assumption12:19
cedkbuxy: my tests already fails without fix12:20
cedkbuxy: running now with a fix12:20
cedkbuxy: https://bugs.tryton.org/issue618512:27
buxycedk: thanks, sent a review and checked that it fixed my issue12:38
-!- JanGB(~jan@business-088-079-110-234.static.arcor-ip.net) has joined #tryton12:43
-!- mamcode_(~mamcode@190-204-4-95.dyn.dsl.cantv.net) has joined #tryton12:47
-!- Timitos(~kpreisler@business-088-079-110-234.static.arcor-ip.net) has joined #tryton12:59
-!- smarro(~sebastian@181.16.7.104) has joined #tryton13:50
-!- lukio(~lukio@201.216.209.29) has joined #tryton14:26
-!- lukio(~lukio@181.45.71.112) has joined #tryton15:09
-!- JanGB(~jan@business-088-079-110-234.static.arcor-ip.net) has joined #tryton15:34
-!- kstenger(~karla@r186-48-39-199.dialup.adsl.anteldata.net.uy) has joined #tryton16:01
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton16:52
-!- Timitos(~kpreisler@tmo-123-64.customers.d1-online.com) has joined #tryton17:06
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton17:13
-!- perilla(~perilla@corp-190-57-169-210.cue.puntonet.ec) has joined #tryton17:23
-!- lukio(~lukio@181.45.71.112) has left #tryton17:39
-!- Timitos(~kpreisler@tmo-103-11.customers.d1-online.com) has joined #tryton17:47
-!- Timitos(~kpreisler@tmo-103-11.customers.d1-online.com) has joined #tryton18:11
-!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton20:09
-!- mamcode_(~mamcode@190-204-4-95.dyn.dsl.cantv.net) has joined #tryton20:26
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton20:51
-!- nramirezuy(~nramirezu@r167-62-179-105.dialup.adsl.anteldata.net.uy) has joined #tryton20:54
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton21:41
-!- smarro(~sebastian@181.16.7.104) has joined #tryton21:43
-!- thaneor1(~ldlc6@r186-48-179-20.dialup.adsl.anteldata.net.uy) has joined #tryton21:52
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton21:56
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton21:58
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton22:36
-!- JanGB(~jan@dslb-088-073-241-030.088.073.pools.vodafone-ip.de) has joined #tryton22:39
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton23:10
-!- kstenger(~karla@r186-50-60-218.dialup.adsl.anteldata.net.uy) has joined #tryton23:58
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton23:59

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!