IRC logs of #tryton for Wednesday, 2017-04-05

chat.freenode.net #tryton log beginning Wed Apr 5 00:00:01 CEST 2017
2017-04-05 00:20 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-04-05 00:22 -!- JanGB(~jan@ipservice-092-208-133-119.092.208.pools.vodafone-ip.de) has joined #tryton
2017-04-05 00:50 -!- thaneor(~ldlc6@r186-48-17-79.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-04-05 04:58 -!- csotelo(~csotelo@2001:1388:49c5:2815:3a82:a31e:ba22:7b55) has joined #tryton
2017-04-05 06:38 -!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton
2017-04-05 07:23 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2017-04-05 07:25 -!- JanGB(~jan@ipservice-092-208-133-119.092.208.pools.vodafone-ip.de) has joined #tryton
2017-04-05 07:51 -!- JanGB(~jan@ipservice-092-208-133-119.092.208.pools.vodafone-ip.de) has joined #tryton
2017-04-05 07:53 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2017-04-05 08:03 -!- VaticanCameos(~VaticanCa@103.208.200.210) has joined #tryton
2017-04-05 08:09 -!- kstenger1(~karla@r186-55-76-214.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-04-05 08:14 -!- rpit(~rpit@aftr-37-24-150-184.unity-media.net) has joined #tryton
2017-04-05 08:34 -!- VaticanCameos(~VaticanCa@103.208.200.210) has joined #tryton
2017-04-05 08:53 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-04-05 09:16 -!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton
2017-04-05 09:39 -!- marcP(~marc@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton
2017-04-05 10:40 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2017-04-05 10:49 -!- VaticanCameos(~VaticanCa@103.208.200.210) has joined #tryton
2017-04-05 11:16 -!- piyush(7bc9095e@gateway/web/freenode/ip.123.201.9.94) has joined #tryton
2017-04-05 11:16 <piyush> "model.sale.line.account.tax" is the right model name for geeting sale line account tax?
2017-04-05 11:22 <pokoli> piyush: the model name is 'sale.line-account.tax'
2017-04-05 11:22 <pokoli> piyush: see http://hg.tryton.org/modules/sale/file/d28737a900b0/sale.py#l1040
2017-04-05 11:23 <pokoli> piyush: but this is the intermediate model for the Many2Many which only sets the relation. If you read the taxes field of the sale line you will have it there
2017-04-05 11:28 -!- kstenger(~karla@r186-55-76-214.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-04-05 11:31 <piyush> pokoli: thanks for your answer. but it gives me error as here https://pastebin.com/4PyV3n7x
2017-04-05 11:31 <pokoli> piyush: you are not using the correct value
2017-04-05 11:38 <piyush> for which field?
2017-04-05 11:38 <pokoli> piyush: for the model
2017-04-05 11:38 <pokoli> piyush: nor the one you proposed, nor the one I said
2017-04-05 11:40 <piyush> I am using "model.sale.line-account.tax", isn't this correct?
2017-04-05 11:54 <pokoli> piyush: from the traceback you posted, this is not what the server is recieving
2017-04-05 11:54 <pokoli> piyush: it says you are using: "sale.line-account"
2017-04-05 12:06 -!- csotelo(~csotelo@2001:1388:49c5:2815:3a82:a31e:ba22:7b55) has joined #tryton
2017-04-05 12:08 <csotelo> dear coders, I am having an Assertion error on a piece of code, relayed top saving models. https://pastebin.com/qrn2TM7A
2017-04-05 12:08 <csotelo> I have tried to use an integeer and the id of a model and tyhe result are completely different
2017-04-05 12:08 <csotelo> thanks
2017-04-05 12:09 <piyush> pokoli: here you can find my request https://pastebin.com/bn0CBPcM
2017-04-05 12:10 -!- thaneor(~ldlc6@r186-48-17-79.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-04-05 12:10 <pokoli> piyush: now it seems correct, but the preivous traceback was not generated with this method
2017-04-05 12:11 <pokoli> piyush: indeed, which method are you tryting to call?
2017-04-05 12:11 <pokoli> piyush: it misses the method to call on the method
2017-04-05 12:11 <pokoli> piyush: that's why the '.tax' part is splitted and you get an invalid method
2017-04-05 12:12 <pokoli> csotelo: you can directly use model instances in server side
2017-04-05 12:13 <pokoli> csotelo: it's the service many2one product target? Oir it's a diferent model?
2017-04-05 12:15 <piyush> pokoli: evenif the method is write, I am getting same error
2017-04-05 12:15 <pokoli> piyush: could you upload the request with the method?
2017-04-05 12:20 <piyush> pokoli: check here https://pastebin.com/6Y82KKkS
2017-04-05 12:28 <pokoli> piyush: the method is missig on the request, so that's why the model last '.tax' is removed and you get an Unexisting model error
2017-04-05 12:40 <csotelo> pokoli, yes as you could see https://pastebin.com/qrn2TM7A on line 65. the wird part for me is when I use just a number, it works ( line 35 ) but, when I use the id ( same line ) that is an integer, it doesnt works
2017-04-05 12:42 <pokoli> csotelo: it should work with integer ids too, but it's easier with instances as you don't have to manage None values
2017-04-05 12:43 <pokoli> csotelo: indeed, you have an extra coma in the "line.service.id," which makes the value a tuple
2017-04-05 12:43 <csotelo> let me try
2017-04-05 12:44 <pokoli> csotelo: removing the coma should make it work
2017-04-05 12:45 <pokoli> csotelo: other comments about the code: "The help you defined on service is useless as it contains the same work". Have a look at https://discuss.tryton.org/t/how-to-write-tooltips/212 for a reference :)
2017-04-05 12:47 <csotelo> pokoli, you are right, the commas was making a list from the id... really dummy question
2017-04-05 12:47 <csotelo> thanks a lot
2017-04-05 12:50 <pokoli> csotelo: I have done this mistake a lot of times and sometimes its hard to notice about it :)
2017-04-05 12:51 <csotelo> I know, this is the thirdh day fighting with it
2017-04-05 12:51 <csotelo> thanks a lot.. thanks so much
2017-04-05 12:54 -!- thaneor1(~ldlc6@r179-25-189-115.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-04-05 12:56 <pokoli> csotelo: you are welcome
2017-04-05 13:34 -!- mariomop(~quassel@host21.190-138-102.telecom.net.ar) has joined #tryton
2017-04-05 14:39 -!- VaticanCameos(~VaticanCa@103.208.200.210) has joined #tryton
2017-04-05 14:53 <pokoli> wasn't client context reloaded after creating a company?
2017-04-05 15:04 <cedk> pokoli: is it a general question?
2017-04-05 15:05 <pokoli> cedk: currently it's not done, but in my memory it seems that it was done before. So I'm trying to find why we removed this behaviour
2017-04-05 15:06 <cedk> pokoli: I do not understand what you are talking about
2017-04-05 15:06 <pokoli> cedk: sure, let me clarify.
2017-04-05 15:06 <pokoli> cedk: I created a new database and created a company on it
2017-04-05 15:07 <pokoli> cedk: Then I expect the user context to be updated to the new created company
2017-04-05 15:07 <pokoli> cedk: but this is not done. And I will like to understand why
2017-04-05 15:07 <pokoli> cedk: IIRC this was done on the past
2017-04-05 15:10 <pokoli> Indeed, i was looking for this changeset: http://hg.tryton.org/tryton/rev/540983eb97ad/
2017-04-05 15:22 <pokoli> the context is correctly set, but I don't know why I don't see the default accounts on the account configuration
2017-04-05 15:22 <pokoli> but they are stored correctly on the database table
2017-04-05 15:22 <pokoli> ACTION is using the latest trunk
2017-04-05 15:28 -!- lukio(~lukio@181.47.220.45) has joined #tryton
2017-04-05 15:36 -!- csotelo_at_work(~csotelo@179.43.99.44) has joined #tryton
2017-04-05 16:23 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-04-05 16:28 -!- VaticanCameos(~VaticanCa@106.222.121.198) has joined #tryton
2017-04-05 17:27 -!- clews(~clews@www.lycee.asn-wien.ac.at) has joined #tryton
2017-04-05 18:12 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-04-05 18:19 -!- jobok(4a71b2a6@gateway/web/freenode/ip.74.113.178.166) has joined #tryton
2017-04-05 18:20 <jobok> is nereid dead? no longer in development?
2017-04-05 19:17 -!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has joined #tryton
2017-04-05 20:03 -!- smarro(~sebastian@181.165.123.245) has joined #tryton
2017-04-05 20:11 -!- kstenger1(~karla@r186-48-243-192.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-04-05 20:18 -!- thaneor(~ldlc6@r179-25-189-115.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-04-05 20:41 -!- JosDzG(~Thunderbi@189.250.82.1) has joined #tryton
2017-04-05 20:49 -!- catonano(~catonano@host250-192-dynamic.61-82-r.retail.telecomitalia.it) has joined #tryton
2017-04-05 21:18 -!- lukio(~lukio@iplan.gcoop.com.ar) has joined #tryton
2017-04-05 21:21 -!- rpit(~rpit@aftr-37-24-150-184.unity-media.net) has joined #tryton
2017-04-05 21:43 <jobok> how do I get trytond and the core modules for version 4.1.0?
2017-04-05 22:01 <kstenger> jobok: 4.1 was never a release, the next release to 4.0 is 4.2, and 4.1 was just a temporary version number for development in between.
2017-04-05 22:03 <kstenger> jobok: you can always download trytond from the mercurial repository and choose the revision you want.
2017-04-05 22:04 <jobok> kstenger hmm, so is it weird that the module I want to use lists version 4.1 in the tryton.cfg file?
2017-04-05 22:04 <kstenger> jobok: it looks to me as a development version of the module which was stuck at 4.1
2017-04-05 22:07 -!- JosDzG(~Thunderbi@189.250.82.1) has joined #tryton
2017-04-05 22:07 <jobok> kstenger: so how would I grab 3.8 from the mercurial repository? with the -r switch?
2017-04-05 22:08 <kstenger> jobok: for specific versiones branches you can use 'hg update 3.8' for example
2017-04-05 22:08 <kstenger> versioned*
2017-04-05 22:09 <kstenger> jobok: that's after you cloned the repository of course (hg clone http://hg.tryton.org/trytond)
2017-04-05 22:34 <jobok> kstenger: thanks, I'm slowly getting the hang of things
2017-04-05 23:00 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-04-05 23:06 -!- lukio(~lukio@iplan.gcoop.com.ar) has left #tryton

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