IRC logs of #tryton for Friday, 2015-12-11

chat.freenode.net #tryton log beginning Fri Dec 11 00:00:01 CET 2015
-!- niki(~niki@0x3e2c86e6.mobile.telia.dk) has joined #tryton00:40
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:16
-!- perilla(~perilla@186.43.167.138) has joined #tryton02:00
-!- smarro(~sebastian@190.14.157.18) has joined #tryton03:12
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton03:21
-!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton04:22
-!- perilla(~perilla@186.43.167.138) has joined #tryton04:31
-!- smarro(~sebastian@181.16.4.44) has joined #tryton04:41
-!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton05:40
-!- yangoon1(~mathiasb@p549F1614.dip0.t-ipconnect.de) has joined #tryton06:01
-!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton06:02
-!- frispete_(~frispete@p54A91C0E.dip0.t-ipconnect.de) has joined #tryton07:40
-!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton08:05
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:30
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:35
-!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton08:35
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:57
-!- aroncero(~aroncero@86.63.19.153) has joined #tryton09:20
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton09:35
-!- frispete(~frispete@p54A91C0E.dip0.t-ipconnect.de) has joined #tryton09:46
-!- mholtzberg(~mholtzber@p50931afa.dip0.t-ipconnect.de) has joined #tryton10:03
-!- fmo(~frank@80.146.165.65) has joined #tryton10:04
fmogood morning everybody!10:15
fmoI am a bit confused and hope someone can help me with an explanation.10:15
fmoWe use the jsonrpc webservice to read differnt kind of data from the tryton server.10:15
fmoSo far it worked fine for all modules to use the read command with result parameter definition.10:15
fmoBut it seems that that does not work for the model product.template.10:15
fmoIs this a but or a wanted feature?10:15
fmoTo make it more concrete here an example request and response10:16
fmorequest {"params":[3,"ce595f00bb0940deac97b07093815986",[1,2,3,4,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],[],{"language":"en_US","locale":{"date":"%m/%d/%Y","thousands_sep":",","decimal_point":".","grouping":[3,3,0]},"language_direction":"ltr","company.rec_name":"mdex AG","groups":[3,5,10,11,15,14,6,1,8,7,9,4,13,12,16,17,2],"company":1}],"id":4,"method":"model.product.template.read"}10:16
fmoresponse {"id": 4, "error": ["unsupported operand type(s) for +=: 'Decimal' and 'NoneType'", "Traceback (most recent call last):\n  File \"/dist-packages/trytond/protocols/jsonrpc.py\", line 150, in _marshaled_dispatch\n    response['result'] = dispatch_method(method, params)\n  File \"/dist-packages/trytond/protocols/jsonrpc.py\", line 179, in _dispatch\n    res = dispatch(*args)\n  File \"/dist-packages/trytond/protocols/dispatcher.py\", line 161, in dispatch10:16
fmo\n    result = rpc.result(meth(*c_args, **c_kwargs))\n  File \"/dist-packages/trytond/model/modelsql.py\", line 645, in read\n    getter_results = field.get(ids, cls, field_list, values=result)\n  File \"/dist-packages/trytond/model/fields/function.py\", line 86, in get\n    return dict((name, call(name)) for name in names)\n  File \"/dist-packages/trytond/model/fields/function.py\", line 86, in <genexpr>\n    return dict((name, call(name)) for name in names)\n10:16
fmo  File \"/dist-packages/trytond/model/fields/function.py\", line 80, in call\n    return dict((r.id, method(r, name)) for r in records)\n  File \"/dist-packages/trytond/model/fields/function.py\", line 80, in <genexpr>\n    return dict((r.id, method(r, name)) for r in records)\n  File \"/dist-packages/trytond/modules/stock/product.py\", line 39, in sum_product\n    sum_ += getattr(product, name)\nTypeError: unsupported operand type(s) for +=: 'Decimal' and 'Non10:16
fmoeType'\n"]}10:16
fmoI found out that the tryton client use the following result parameter definition to read a product.template:10:16
fmo["category", "list_price", "name", "purchasable", "taxes_category", "salable", "account_category", "default_uom", "active", "type", "cost_price", "category.rec_name", "default_uom.rec_name", "rec_name", "_timestamp"]10:16
fmowe use Tryton 3.410:16
fmoupps. I meant So far it worked fine for all modules to use the read command WITHOUT result parameter definition.10:19
javivfhi!10:30
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton10:55
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton11:04
-!- kstenger(~karla@r167-59-20-209.dialup.adsl.anteldata.net.uy) has joined #tryton11:16
-!- mariomop(~quassel@181.92.8.100) has joined #tryton11:58
-!- dj_xatra_(~dj_xatra@217.166.83.130) has joined #tryton13:09
-!- smarro(~sebastian@181.16.4.44) has joined #tryton14:22
-!- Abruancci(~Alejandro@181.229.83.182) has joined #tryton14:26
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton14:27
-!- smarro(~sebastian@190.14.157.18) has joined #tryton16:04
-!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton16:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton16:26
-!- babamelone(~babamelon@77.5.216.12) has joined #tryton16:28
-!- perilla(~perilla@corp-190-57-169-210-cue.puntonet.ec) has joined #tryton16:32
-!- bechamel(~Adium@95.182.199.152) has joined #tryton16:36
-!- mariomop(~quassel@181.92.8.100) has joined #tryton16:55
-!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton16:55
-!- zeittunnel(~234234234@p5DD19CB9.dip0.t-ipconnect.de) has joined #tryton17:47
zeittunnelhi, Is there a workaround for this bug https://bugs.tryton.org/issue517117:49
-!- niki_(~niki@0x3e2c87a9.mobile.telia.dk) has joined #tryton18:48
-!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton19:22
-!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton19:33
-!- kstenger(~karla@r167-56-98-243.dialup.adsl.anteldata.net.uy) has joined #tryton19:50
-!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton20:34
-!- niki__(~niki@0x3e2c8727.mobile.telia.dk) has joined #tryton21:12
-!- csotelo(~csotelo@190.117.251.218) has joined #tryton21:29
-!- smarro(~sebastian@181.16.4.44) has joined #tryton22:43
-!- smarro(~sebastian@190.14.157.18) has joined #tryton22:48
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton23:11

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