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

chat.freenode.net #tryton log beginning Fri Dec 11 00:00:01 CET 2015
2015-12-11 00:40 -!- niki(~niki@0x3e2c86e6.mobile.telia.dk) has joined #tryton
2015-12-11 01:16 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-12-11 02:00 -!- perilla(~perilla@186.43.167.138) has joined #tryton
2015-12-11 03:12 -!- smarro(~sebastian@190.14.157.18) has joined #tryton
2015-12-11 03:21 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-12-11 04:22 -!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton
2015-12-11 04:31 -!- perilla(~perilla@186.43.167.138) has joined #tryton
2015-12-11 04:41 -!- smarro(~sebastian@181.16.4.44) has joined #tryton
2015-12-11 05:40 -!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton
2015-12-11 06:01 -!- yangoon1(~mathiasb@p549F1614.dip0.t-ipconnect.de) has joined #tryton
2015-12-11 06:02 -!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton
2015-12-11 07:40 -!- frispete_(~frispete@p54A91C0E.dip0.t-ipconnect.de) has joined #tryton
2015-12-11 08:05 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton
2015-12-11 08:30 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-12-11 08:35 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-12-11 08:35 -!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton
2015-12-11 08:57 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2015-12-11 09:20 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton
2015-12-11 09:35 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2015-12-11 09:46 -!- frispete(~frispete@p54A91C0E.dip0.t-ipconnect.de) has joined #tryton
2015-12-11 10:03 -!- mholtzberg(~mholtzber@p50931afa.dip0.t-ipconnect.de) has joined #tryton
2015-12-11 10:04 -!- fmo(~frank@80.146.165.65) has joined #tryton
2015-12-11 10:15 <fmo> good morning everybody!
2015-12-11 10:15 <fmo> I am a bit confused and hope someone can help me with an explanation.
2015-12-11 10:15 <fmo> We use the jsonrpc webservice to read differnt kind of data from the tryton server.
2015-12-11 10:15 <fmo> So far it worked fine for all modules to use the read command with result parameter definition.
2015-12-11 10:15 <fmo> But it seems that that does not work for the model product.template.
2015-12-11 10:15 <fmo> Is this a but or a wanted feature?
2015-12-11 10:16 <fmo> To make it more concrete here an example request and response
2015-12-11 10:16 <fmo> request {"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"}
2015-12-11 10:16 <fmo> response {"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 dispatch
2015-12-11 10: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)\n
2015-12-11 10: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 'Non
2015-12-11 10:16 <fmo> eType'\n"]}
2015-12-11 10:16 <fmo> I found out that the tryton client use the following result parameter definition to read a product.template:
2015-12-11 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"]
2015-12-11 10:16 <fmo> we use Tryton 3.4
2015-12-11 10:19 <fmo> upps. I meant So far it worked fine for all modules to use the read command WITHOUT result parameter definition.
2015-12-11 10:30 <javivf> hi!
2015-12-11 10:55 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton
2015-12-11 11:04 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2015-12-11 11:16 -!- kstenger(~karla@r167-59-20-209.dialup.adsl.anteldata.net.uy) has joined #tryton
2015-12-11 11:58 -!- mariomop(~quassel@181.92.8.100) has joined #tryton
2015-12-11 13:09 -!- dj_xatra_(~dj_xatra@217.166.83.130) has joined #tryton
2015-12-11 14:22 -!- smarro(~sebastian@181.16.4.44) has joined #tryton
2015-12-11 14:26 -!- Abruancci(~Alejandro@181.229.83.182) has joined #tryton
2015-12-11 14:27 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2015-12-11 16:04 -!- smarro(~sebastian@190.14.157.18) has joined #tryton
2015-12-11 16:09 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2015-12-11 16:26 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-12-11 16:28 -!- babamelone(~babamelon@77.5.216.12) has joined #tryton
2015-12-11 16:32 -!- perilla(~perilla@corp-190-57-169-210-cue.puntonet.ec) has joined #tryton
2015-12-11 16:36 -!- bechamel(~Adium@95.182.199.152) has joined #tryton
2015-12-11 16:55 -!- mariomop(~quassel@181.92.8.100) has joined #tryton
2015-12-11 16:55 -!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton
2015-12-11 17:47 -!- zeittunnel(~234234234@p5DD19CB9.dip0.t-ipconnect.de) has joined #tryton
2015-12-11 17:49 <zeittunnel> hi, Is there a workaround for this bug https://bugs.tryton.org/issue5171
2015-12-11 18:48 -!- niki_(~niki@0x3e2c87a9.mobile.telia.dk) has joined #tryton
2015-12-11 19:22 -!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton
2015-12-11 19:33 -!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton
2015-12-11 19:50 -!- kstenger(~karla@r167-56-98-243.dialup.adsl.anteldata.net.uy) has joined #tryton
2015-12-11 20:34 -!- babamelone(~babamelon@x4d05d80c.dyn.telefonica.de) has joined #tryton
2015-12-11 21:12 -!- niki__(~niki@0x3e2c8727.mobile.telia.dk) has joined #tryton
2015-12-11 21:29 -!- csotelo(~csotelo@190.117.251.218) has joined #tryton
2015-12-11 22:43 -!- smarro(~sebastian@181.16.4.44) has joined #tryton
2015-12-11 22:48 -!- smarro(~sebastian@190.14.157.18) has joined #tryton
2015-12-11 23:11 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton

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