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

chat.freenode.net #tryton log beginning Wed Apr 5 00:00:01 CEST 2017
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:20
-!- JanGB(~jan@ipservice-092-208-133-119.092.208.pools.vodafone-ip.de) has joined #tryton00:22
-!- thaneor(~ldlc6@r186-48-17-79.dialup.adsl.anteldata.net.uy) has joined #tryton00:50
-!- csotelo(~csotelo@2001:1388:49c5:2815:3a82:a31e:ba22:7b55) has joined #tryton04:58
-!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton06:38
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton07:23
-!- JanGB(~jan@ipservice-092-208-133-119.092.208.pools.vodafone-ip.de) has joined #tryton07:25
-!- JanGB(~jan@ipservice-092-208-133-119.092.208.pools.vodafone-ip.de) has joined #tryton07:51
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:53
-!- VaticanCameos(~VaticanCa@103.208.200.210) has joined #tryton08:03
-!- kstenger1(~karla@r186-55-76-214.dialup.adsl.anteldata.net.uy) has joined #tryton08:09
-!- rpit(~rpit@aftr-37-24-150-184.unity-media.net) has joined #tryton08:14
-!- VaticanCameos(~VaticanCa@103.208.200.210) has joined #tryton08:34
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:53
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton09:16
-!- marcP(~marc@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton09:39
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:40
-!- VaticanCameos(~VaticanCa@103.208.200.210) has joined #tryton10:49
-!- piyush(7bc9095e@gateway/web/freenode/ip.123.201.9.94) has joined #tryton11:16
piyush"model.sale.line.account.tax" is the right model name for geeting sale line account tax?11:16
pokolipiyush: the model name is 'sale.line-account.tax'11:22
pokolipiyush: see http://hg.tryton.org/modules/sale/file/d28737a900b0/sale.py#l104011:22
pokolipiyush: 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 there11:23
-!- kstenger(~karla@r186-55-76-214.dialup.adsl.anteldata.net.uy) has joined #tryton11:28
piyushpokoli: thanks for your answer. but it gives me error as here https://pastebin.com/4PyV3n7x11:31
pokolipiyush: you are not using the correct value11:31
piyushfor which field?11:38
pokolipiyush: for the model11:38
pokolipiyush: nor the one you proposed, nor the one I said11:38
piyushI am using "model.sale.line-account.tax", isn't this correct?11:40
pokolipiyush: from the traceback you posted, this is not what the server is recieving11:54
pokolipiyush: it says you are using: "sale.line-account"11:54
-!- csotelo(~csotelo@2001:1388:49c5:2815:3a82:a31e:ba22:7b55) has joined #tryton12:06
csotelodear coders, I am having an Assertion error on a piece of code, relayed top saving models. https://pastebin.com/qrn2TM7A12:08
csoteloI have tried to use an integeer and the id of a model and tyhe result are completely different12:08
csotelothanks12:08
piyushpokoli: here you can find my request https://pastebin.com/bn0CBPcM12:09
-!- thaneor(~ldlc6@r186-48-17-79.dialup.adsl.anteldata.net.uy) has joined #tryton12:10
pokolipiyush: now it seems correct, but the preivous traceback was not generated with this method12:10
pokolipiyush: indeed, which method are you tryting to call?12:11
pokolipiyush: it misses the method to call on the method12:11
pokolipiyush: that's why the '.tax' part is splitted and you get an invalid method12:11
pokolicsotelo: you can directly use model instances in server side12:12
pokolicsotelo: it's the service many2one product target? Oir it's a diferent model?12:13
piyushpokoli: evenif the method is write, I am getting same error12:15
pokolipiyush: could you upload the request with the method?12:15
piyushpokoli: check here https://pastebin.com/6Y82KKkS12:20
pokolipiyush: the method is missig on the request, so that's why the model last '.tax' is removed and you get an Unexisting model error12:28
csotelopokoli, 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 works12:40
pokolicsotelo: it should work with integer ids too, but it's easier with instances as you don't have to manage None values12:42
pokolicsotelo: indeed, you have an extra coma in the "line.service.id," which makes the value a tuple12:43
csotelolet me try12:43
pokolicsotelo: removing the coma should make it work12:44
pokolicsotelo: 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 :)12:45
csotelopokoli, you are right, the commas was making a list from the id... really dummy question12:47
csotelothanks a lot12:47
pokolicsotelo: I have done this mistake a lot of times and sometimes its hard to notice about it :)12:50
csoteloI know, this is the thirdh day fighting with it12:51
csotelothanks a lot.. thanks so much12:51
-!- thaneor1(~ldlc6@r179-25-189-115.dialup.adsl.anteldata.net.uy) has joined #tryton12:54
pokolicsotelo: you are welcome12:56
-!- mariomop(~quassel@host21.190-138-102.telecom.net.ar) has joined #tryton13:34
-!- VaticanCameos(~VaticanCa@103.208.200.210) has joined #tryton14:39
pokoliwasn't client context reloaded after creating a company?14:53
cedkpokoli: is it a general question?15:04
pokolicedk: 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 behaviour15:05
cedkpokoli: I do not understand what you are talking about15:06
pokolicedk: sure, let me clarify.15:06
pokolicedk: I created a new database and created a company on it15:06
pokolicedk: Then I expect the user context to be updated to the new created company15:07
pokolicedk: but this is not done. And I will like to understand why15:07
pokolicedk: IIRC this was done on the past15:07
pokoliIndeed, i was looking for this changeset: http://hg.tryton.org/tryton/rev/540983eb97ad/15:10
pokolithe context is correctly set, but I don't know why I don't see the default accounts on the account configuration15:22
pokolibut they are stored correctly on the database table15:22
pokoliACTION is using the latest trunk15:22
-!- lukio(~lukio@181.47.220.45) has joined #tryton15:28
-!- csotelo_at_work(~csotelo@179.43.99.44) has joined #tryton15:36
-!- smarro(~sebastian@181.16.7.104) has joined #tryton16:23
-!- VaticanCameos(~VaticanCa@106.222.121.198) has joined #tryton16:28
-!- clews(~clews@www.lycee.asn-wien.ac.at) has joined #tryton17:27
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton18:12
-!- jobok(4a71b2a6@gateway/web/freenode/ip.74.113.178.166) has joined #tryton18:19
jobokis nereid dead? no longer in development?18:20
-!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has joined #tryton19:17
-!- smarro(~sebastian@181.165.123.245) has joined #tryton20:03
-!- kstenger1(~karla@r186-48-243-192.dialup.adsl.anteldata.net.uy) has joined #tryton20:11
-!- thaneor(~ldlc6@r179-25-189-115.dialup.adsl.anteldata.net.uy) has joined #tryton20:18
-!- JosDzG(~Thunderbi@189.250.82.1) has joined #tryton20:41
-!- catonano(~catonano@host250-192-dynamic.61-82-r.retail.telecomitalia.it) has joined #tryton20:49
-!- lukio(~lukio@iplan.gcoop.com.ar) has joined #tryton21:18
-!- rpit(~rpit@aftr-37-24-150-184.unity-media.net) has joined #tryton21:21
jobokhow do I get trytond and the core modules for version 4.1.0?21:43
kstengerjobok: 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.22:01
kstengerjobok: you can always download trytond from the mercurial repository and choose the revision you want.22:03
jobokkstenger hmm, so is it weird that the module I want to use lists version 4.1 in the tryton.cfg file?22:04
kstengerjobok: it looks to me as a development version of the module which was stuck at 4.122:04
-!- JosDzG(~Thunderbi@189.250.82.1) has joined #tryton22:07
jobokkstenger: so how would I grab 3.8 from the mercurial repository? with the -r switch?22:07
kstengerjobok: for specific versiones branches you can use 'hg update 3.8' for example22:08
kstengerversioned*22:08
kstengerjobok: that's after you cloned the repository of course (hg clone http://hg.tryton.org/trytond)22:09
jobokkstenger: thanks, I'm slowly getting the hang of things22:34
-!- smarro(~sebastian@181.16.7.104) has joined #tryton23:00
-!- lukio(~lukio@iplan.gcoop.com.ar) has left #tryton23:06

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