IRC logs of #tryton for Friday, 2016-12-02

chat.freenode.net #tryton log beginning Fri Dec 2 00:00:01 CET 2016
-!- kstenger1(~karla@r167-56-245-95.dialup.adsl.anteldata.net.uy) has joined #tryton00:26
-!- smarro(~sebastian@181.16.7.104) has joined #tryton00:40
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton02:00
-!- giesen(~ggiesen@2001:19f0:0:1019:5400:ff:fe25:bda6) has joined #tryton04:01
-!- thaneor1(~ldlc6@179.26.17.144) has joined #tryton04:16
-!- smarro(~sebastian@181.16.7.104) has joined #tryton04:21
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton04:30
-!- csotelo(~csotelo@2001:1388:49c4:ff15:86d1:c758:5eed:def2) has joined #tryton05:27
-!- JanGB(~jan@ipservice-092-216-122-042.092.216.pools.vodafone-ip.de) has joined #tryton07:15
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:23
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton07:32
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:49
-!- rpit(~rpit@2a02:908:e678:4f00:56ee:75ff:fe0d:d3c7) has joined #tryton08:25
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:52
-!- silwol_(~silwol@80.66.37.182) has joined #tryton09:06
-!- silwol_(~silwol@80.66.37.182) has joined #tryton09:48
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton10:05
-!- silwol_(~silwol@80.66.37.182) has joined #tryton10:23
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:30
-!- smarro(~sebastian@181.16.7.104) has joined #tryton10:34
-!- estan(~astan@90-231-138-16-no13.tbcn.telia.com) has joined #tryton10:36
-!- estan(~astan@kde/developer/astan) has joined #tryton11:22
-!- mariomop(~quassel@181.110.60.168) has joined #tryton12:06
-!- kstenger(~karla@r186-55-77-77.dialup.adsl.anteldata.net.uy) has joined #tryton12:28
-!- kstenger(~karla@r186-55-77-77.dialup.adsl.anteldata.net.uy) has joined #tryton13:48
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton13:52
tryingtrytonAfter seeing the stock in today's inventory, i do a move from storage to another storage (internal shipment + move). Upon confirming the internal shipment, i get this:  AttributeError: 'purchase.line' Model has no attribute 'purchase': None14:36
cedktryingtryton: please fill an issue14:58
cedktryingtryton: with the full traceback14:58
tryingtrytonThis is against 4.0. Are you guys maintaining that still?14:59
cedktryingtryton: releases are supported for 2.5 years15:03
tryingtrytonI'll try an upgrade to 4.2 which i have to do anyway to see if the problem is present still.15:04
tryingtrytonAfter running the trytond-admin command after upgrading, is there anything else that needs to be done to ensure the old 4.0 DB will work properly?15:05
cedktryingtryton: see the discuss thread15:05
tryingtrytonWhere is that?15:07
tryingtrytonI just see the release notes.15:07
cedktryingtryton: https://discuss.tryton.org/t/migration-from-4-0-to-4-2/16115:11
tryingtrytonRegarding the second point, if there's no custom translation, that step doesn't need to be performed, correct?15:12
-!- mamcode(~mamcode@186-94-190-27.genericrev.cantv.net) has joined #tryton15:13
tryingtrytonAbout the first point, wouldn't those views be replaced during the upgrade? If so, does that apply only to custom views?15:14
-!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has joined #tryton15:18
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton15:37
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton15:40
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton15:41
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton15:41
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton15:48
-!- thaneor(~ldlc6@r179-24-114-244.dialup.adsl.anteldata.net.uy) has joined #tryton16:19
-!- udono(~udono@tmo-112-253.customers.d1-online.com) has joined #tryton16:38
-!- JanGB(~jan@x59cc9b35.dyn.telefonica.de) has joined #tryton16:55
-!- JanGB(~jan@x59cc9b35.dyn.telefonica.de) has joined #tryton17:24
-!- mamcode(~mamcode@186-94-190-27.genericrev.cantv.net) has joined #tryton17:57
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton18:03
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton18:31
mamcodeHi, How can I know if a form view is in create mode to display a field or not?18:45
JanGBmamcode: Transaction().context.get('active_id') possibly19:05
mamcodeJanGB: I will review that. Thanks19:08
-!- zodman(~zodman@178.62.7.89) has joined #tryton19:55
-!- udono(~udono@x59cc9a94.dyn.telefonica.de) has joined #tryton20:41
-!- mamcode(~mamcode@186-94-190-27.genericrev.cantv.net) has joined #tryton21:56
mamcodeHi, it is posible use a function field for a field Binary ?21:59
mamcodeSomething like that: fields.Function(fields.Binary('Image'), 'get_image_resize') ???22:00
mamcodeWhen I try it I get an error...22:01
kstengermamcode: which error?22:16
mamcodeThe method of function field returns an image resize but the client (web) shows the following error: UnicodeDecodeError: 'ascii' codec can't decode byte 0x89 in position 0: ordinal not in range(128)22:23
cedkmamcode: you must cast the value with Binary.cast22:25
cedkmamcode: for create mode, I guess you mean that the record is not yet created.22:27
cedkmamcode: so you can just check the sign of id22:27
mamcodecedk: Thanks, I will rewiew that. Exists any example in the core?22:27
cedkmamcode: I do not think because we try to avoid such side effects22:28
mamcodeThis is the method that returns the value for the function field22:28
mamcodehttp://pastebin.com/HQZnXa2B22:28
mamcodecedk: ok22:28
tryingtrytoncedk: That bug described earlier cannot be reproduced under 4.2.22:35
cedktryingtryton: any way, it is good to report it if it hits a supported series22:36
cedktryingtryton: but on last version22:36
tryingtrytonSure, i'll file a bug report against 4.0 so whoever is affected gets those updates.22:37
tryingtrytonThe tallies on the tabs in the 4.2 client are very helpful.22:37
tryingtrytonDone.22:46
tryingtrytonBTW, i'm one of the maintainers of the tryton packages in pkgsrc, so i'll be committing the 4.2 series tonight or tomorrow.22:47
tryingtrytonI never needed to use this software until recently, so hence all the questions and lack of knowledge.22:48
cedktryingtryton: should we add a link on http://www.tryton.org/download.html22:50
cedktryingtryton: pkgsrc is for NetBSD, no?22:51
tryingtrytonThat would be cool. pkgsrc runs on ~23 OSes, so your userbase is expanded quite a bit by having the package there.22:51
cedktryingtryton: could you provide a patch for http://hg.tryton.org/www.tryton.org22:52
tryingtrytonSure, no problem. I'll gather the links for the SunOS, Linux, and MacOS binaries for pkgsrc, plus whatever else has been built recently.22:56
tryingtrytonGot through the purchase workflow. Will go through sales on Monday and might have another pile of questions. Until then, gents.23:21
-!- mamcode(~mamcode@186-94-190-27.genericrev.cantv.net) has joined #tryton23:44
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton23:58

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