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

chat.freenode.net #tryton log beginning Fri Dec 2 00:00:01 CET 2016
2016-12-02 00:26 -!- kstenger1(~karla@r167-56-245-95.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-02 00:40 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-02 02:00 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2016-12-02 04:01 -!- giesen(~ggiesen@2001:19f0:0:1019:5400:ff:fe25:bda6) has joined #tryton
2016-12-02 04:16 -!- thaneor1(~ldlc6@179.26.17.144) has joined #tryton
2016-12-02 04:21 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-02 04:30 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2016-12-02 05:27 -!- csotelo(~csotelo@2001:1388:49c4:ff15:86d1:c758:5eed:def2) has joined #tryton
2016-12-02 07:15 -!- JanGB(~jan@ipservice-092-216-122-042.092.216.pools.vodafone-ip.de) has joined #tryton
2016-12-02 07:23 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-12-02 07:32 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2016-12-02 07:49 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-12-02 08:25 -!- rpit(~rpit@2a02:908:e678:4f00:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-12-02 08:52 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-12-02 09:06 -!- silwol_(~silwol@80.66.37.182) has joined #tryton
2016-12-02 09:48 -!- silwol_(~silwol@80.66.37.182) has joined #tryton
2016-12-02 10:05 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-12-02 10:23 -!- silwol_(~silwol@80.66.37.182) has joined #tryton
2016-12-02 10:30 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2016-12-02 10:34 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-02 10:36 -!- estan(~astan@90-231-138-16-no13.tbcn.telia.com) has joined #tryton
2016-12-02 11:22 -!- estan(~astan@kde/developer/astan) has joined #tryton
2016-12-02 12:06 -!- mariomop(~quassel@181.110.60.168) has joined #tryton
2016-12-02 12:28 -!- kstenger(~karla@r186-55-77-77.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-02 13:48 -!- kstenger(~karla@r186-55-77-77.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-02 13:52 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-12-02 14:36 <tryingtryton> After 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': None
2016-12-02 14:58 <cedk> tryingtryton: please fill an issue
2016-12-02 14:58 <cedk> tryingtryton: with the full traceback
2016-12-02 14:59 <tryingtryton> This is against 4.0. Are you guys maintaining that still?
2016-12-02 15:03 <cedk> tryingtryton: releases are supported for 2.5 years
2016-12-02 15:04 <tryingtryton> I'll try an upgrade to 4.2 which i have to do anyway to see if the problem is present still.
2016-12-02 15:05 <tryingtryton> After 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?
2016-12-02 15:05 <cedk> tryingtryton: see the discuss thread
2016-12-02 15:07 <tryingtryton> Where is that?
2016-12-02 15:07 <tryingtryton> I just see the release notes.
2016-12-02 15:11 <cedk> tryingtryton: https://discuss.tryton.org/t/migration-from-4-0-to-4-2/161
2016-12-02 15:12 <tryingtryton> Regarding the second point, if there's no custom translation, that step doesn't need to be performed, correct?
2016-12-02 15:13 -!- mamcode(~mamcode@186-94-190-27.genericrev.cantv.net) has joined #tryton
2016-12-02 15:14 <tryingtryton> About the first point, wouldn't those views be replaced during the upgrade? If so, does that apply only to custom views?
2016-12-02 15:18 -!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has joined #tryton
2016-12-02 15:37 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-12-02 15:40 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-12-02 15:41 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-12-02 15:41 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2016-12-02 15:48 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-12-02 16:19 -!- thaneor(~ldlc6@r179-24-114-244.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-02 16:38 -!- udono(~udono@tmo-112-253.customers.d1-online.com) has joined #tryton
2016-12-02 16:55 -!- JanGB(~jan@x59cc9b35.dyn.telefonica.de) has joined #tryton
2016-12-02 17:24 -!- JanGB(~jan@x59cc9b35.dyn.telefonica.de) has joined #tryton
2016-12-02 17:57 -!- mamcode(~mamcode@186-94-190-27.genericrev.cantv.net) has joined #tryton
2016-12-02 18:03 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-12-02 18:31 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2016-12-02 18:45 <mamcode> Hi, How can I know if a form view is in create mode to display a field or not?
2016-12-02 19:05 <JanGB> mamcode: Transaction().context.get('active_id') possibly
2016-12-02 19:08 <mamcode> JanGB: I will review that. Thanks
2016-12-02 19:55 -!- zodman(~zodman@178.62.7.89) has joined #tryton
2016-12-02 20:41 -!- udono(~udono@x59cc9a94.dyn.telefonica.de) has joined #tryton
2016-12-02 21:56 -!- mamcode(~mamcode@186-94-190-27.genericrev.cantv.net) has joined #tryton
2016-12-02 21:59 <mamcode> Hi, it is posible use a function field for a field Binary ?
2016-12-02 22:00 <mamcode> Something like that: fields.Function(fields.Binary('Image'), 'get_image_resize') ???
2016-12-02 22:01 <mamcode> When I try it I get an error...
2016-12-02 22:16 <kstenger> mamcode: which error?
2016-12-02 22:23 <mamcode> The 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)
2016-12-02 22:25 <cedk> mamcode: you must cast the value with Binary.cast
2016-12-02 22:27 <cedk> mamcode: for create mode, I guess you mean that the record is not yet created.
2016-12-02 22:27 <cedk> mamcode: so you can just check the sign of id
2016-12-02 22:27 <mamcode> cedk: Thanks, I will rewiew that. Exists any example in the core?
2016-12-02 22:28 <cedk> mamcode: I do not think because we try to avoid such side effects
2016-12-02 22:28 <mamcode> This is the method that returns the value for the function field
2016-12-02 22:28 <mamcode> http://pastebin.com/HQZnXa2B
2016-12-02 22:28 <mamcode> cedk: ok
2016-12-02 22:35 <tryingtryton> cedk: That bug described earlier cannot be reproduced under 4.2.
2016-12-02 22:36 <cedk> tryingtryton: any way, it is good to report it if it hits a supported series
2016-12-02 22:36 <cedk> tryingtryton: but on last version
2016-12-02 22:37 <tryingtryton> Sure, i'll file a bug report against 4.0 so whoever is affected gets those updates.
2016-12-02 22:37 <tryingtryton> The tallies on the tabs in the 4.2 client are very helpful.
2016-12-02 22:46 <tryingtryton> Done.
2016-12-02 22:47 <tryingtryton> BTW, i'm one of the maintainers of the tryton packages in pkgsrc, so i'll be committing the 4.2 series tonight or tomorrow.
2016-12-02 22:48 <tryingtryton> I never needed to use this software until recently, so hence all the questions and lack of knowledge.
2016-12-02 22:50 <cedk> tryingtryton: should we add a link on http://www.tryton.org/download.html
2016-12-02 22:51 <cedk> tryingtryton: pkgsrc is for NetBSD, no?
2016-12-02 22:51 <tryingtryton> That would be cool. pkgsrc runs on ~23 OSes, so your userbase is expanded quite a bit by having the package there.
2016-12-02 22:52 <cedk> tryingtryton: could you provide a patch for http://hg.tryton.org/www.tryton.org
2016-12-02 22:56 <tryingtryton> Sure, no problem. I'll gather the links for the SunOS, Linux, and MacOS binaries for pkgsrc, plus whatever else has been built recently.
2016-12-02 23:21 <tryingtryton> Got through the purchase workflow. Will go through sales on Monday and might have another pile of questions. Until then, gents.
2016-12-02 23:44 -!- mamcode(~mamcode@186-94-190-27.genericrev.cantv.net) has joined #tryton
2016-12-02 23:58 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton

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