IRC logs of #tryton for Wednesday, 2015-06-03

chat.freenode.net #tryton log beginning Wed Jun 3 00:00:01 CEST 2015
2015-06-03 00:33 -!- cjbarnes18(~user@host86-176-5-13.range86-176.btcentralplus.com) has joined #tryton
2015-06-03 00:35 <cjbarnes18> evening all, I am trying to understand the operation of the sale-opportunity module in 3.6, but I keep getting an error. Is there any end user documentation available?
2015-06-03 00:42 <cjbarnes18> the error I am seeing when I create a new lead is "You try to read records that don't exist anymore.
2015-06-03 00:42 <cjbarnes18> (Document type: sale.opportunity)"
2015-06-03 01:38 <cjbarnes18> just tried the same thing on 3.4 and it worked OK so I guess this could be a bug.
2015-06-03 02:08 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2015-06-03 02:27 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-06-03 02:54 -!- newzen(~newzen@190.72.149.133) has joined #tryton
2015-06-03 03:20 -!- newzen(~newzen@190.72.149.133) has joined #tryton
2015-06-03 03:20 -!- digitalsatori(~Thunderbi@125.7.119.155) has joined #tryton
2015-06-03 03:43 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-06-03 04:03 -!- mathsniper(7d1f21cd@gateway/web/freenode/ip.125.31.33.205) has joined #tryton
2015-06-03 04:18 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-06-03 04:27 -!- digitalsatori(~Thunderbi@125.7.119.155) has joined #tryton
2015-06-03 04:31 -!- digitalsatori1(~Thunderbi@125.7.119.155) has joined #tryton
2015-06-03 06:31 -!- yangoon(~mathiasb@p549F0FB4.dip0.t-ipconnect.de) has joined #tryton
2015-06-03 06:40 -!- frispete(~frispete@p54A90488.dip0.t-ipconnect.de) has joined #tryton
2015-06-03 06:49 -!- zeittunnel(~234234234@p5DD18317.dip0.t-ipconnect.de) has joined #tryton
2015-06-03 06:54 -!- meanmicio(~meanmicio@207.Red-83-52-110.dynamicIP.rima-tde.net) has joined #tryton
2015-06-03 06:54 -!- meanmicio(~meanmicio@fsf/member/meanmicio) has joined #tryton
2015-06-03 07:02 -!- yangoon1(~mathiasb@p549F07F4.dip0.t-ipconnect.de) has joined #tryton
2015-06-03 07:40 -!- pjstevns(~Thunderbi@2001:981:7170:1:d94b:f261:2476:19a9) has joined #tryton
2015-06-03 07:43 -!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton
2015-06-03 07:44 -!- zeittunnel(~234234234@p5DD19F3E.dip0.t-ipconnect.de) has joined #tryton
2015-06-03 07:54 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-06-03 08:34 -!- cjbarnes18(~user@host86-176-5-13.range86-176.btcentralplus.com) has joined #tryton
2015-06-03 09:03 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-06-03 09:23 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-06-03 09:56 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-06-03 09:56 -!- nicoe(~nicoe@87.215.31.146) has joined #tryton
2015-06-03 10:09 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-06-03 10:28 -!- hiaselhans(~Thunderbi@ydvlwsU-187-087.uibk.ac.at) has joined #tryton
2015-06-03 10:30 -!- hiaselhans(~Thunderbi@ydvlwsU-187-087.uibk.ac.at) has joined #tryton
2015-06-03 10:39 -!- sharoonthomas(~sharoonth@103.245.118.154) has joined #tryton
2015-06-03 11:20 <sharoonthomas> nicoe: are you a fan of pytest ?
2015-06-03 11:22 <nicoe> sharoonthomas: I like it indeed.
2015-06-03 11:22 <nicoe> sharoonthomas: why?
2015-06-03 11:23 <sharoonthomas> nicoe: trying to write tryton tests using pytest
2015-06-03 11:24 <sharoonthomas> nicoe: wanted to know if you had tried and if you have had success with it
2015-06-03 11:24 <sharoonthomas> nicoe: from what I have written so far, it feels nicer than the unittest API
2015-06-03 11:25 <sharoonthomas> nicoe: and the reason I asked you is because Prakash mentioned that he saw your post from a while ago on the py-test mailing list
2015-06-03 11:26 <nicoe> sharoonthomas: I tried it, but it was difficult to implement what we're talking about in the pytest ML IIRC
2015-06-03 11:26 <nicoe> sharoonthomas: moreover we already have tests working so it was more a toy project than anything else
2015-06-03 11:28 <sharoonthomas> nicoe: let me upload a gist of what we have done so far
2015-06-03 11:28 <sharoonthomas> nicoe: https://gist.github.com/sharoonthomas/efd49c88928572359c84
2015-06-03 11:29 <nicoe> Yes that's the kind of stuff I have already written
2015-06-03 11:30 <cedk> but we already have scenario tools
2015-06-03 11:30 <nicoe> But what would be nice would be to define the stuffs in their own module and automatically discover them so that modules B depending of module A would have acces to the fixtures defined in B
2015-06-03 11:31 <sharoonthomas> nicoe: its seems it is possible. and its needed because most test code really are fixtures copied from an upstream module
2015-06-03 11:31 <cedk> nicoe: I really don't want to debug tests before testing a new module
2015-06-03 11:32 <nicoe> cedk: It the same work for doctests
2015-06-03 11:32 <cedk> nicoe: don't understand
2015-06-03 11:33 <nicoe> cedk: debugging for fixtures or for doctests is the same amount of work
2015-06-03 11:33 <sharoonthomas> cedk: this does not replace scenario tools IMO. It's a cleaner way of writing the unittest.TestCase. However the fixtures avoid duplication of code to a great extent.
2015-06-03 11:34 <cedk> nicoe: I doubt a lot
2015-06-03 11:35 <cedk> sharoonthomas: if you need such thing for unittest then you are write scenario in your unittest
2015-06-03 11:35 <nicoe> cedk: in fact I think doctest adds also the proteus layer that might introduce bugs
2015-06-03 11:36 <cedk> nicoe: that tests the real usage
2015-06-03 11:36 <nicoe> cedk: but I agree with you pytest are for scenarios
2015-06-03 11:36 <sharoonthomas> cedk: you have tried to achieve the same thing in account module: https://github.com/tryton/account/blob/develop/tests/tools.py
2015-06-03 11:36 <sharoonthomas> cedk: those really are fixtures
2015-06-03 11:38 <cedk> sharoonthomas: don't care about the name
2015-06-03 11:40 <cedk> after if you don't want to use that for your own stuffs, good for you
2015-06-03 11:48 -!- prakashpandey(~prakashpa@103.245.118.154) has joined #tryton
2015-06-03 13:01 -!- hiaselhans(~Thunderbi@ydvlwsU-187-087.uibk.ac.at) has joined #tryton
2015-06-03 13:03 -!- mariomop(~quassel@host97.186-125-103.telecom.net.ar) has joined #tryton
2015-06-03 13:22 <cedk> does anyone has a good way to store period of a year?
2015-06-03 13:25 <cedk> indeed it should be like a date but without the year
2015-06-03 13:29 <nicoe> cedk: what is a period? Something like 1st July up to 30th of Sep
2015-06-03 13:29 <nicoe> cedk: or just a date without the year
2015-06-03 13:30 <cedk> nicoe: it is the same
2015-06-03 13:30 -!- udono(~udono@ip-178-202-238-79.hsi09.unitymediagroup.de) has joined #tryton
2015-06-03 13:30 <nicoe> cedk: I don't see how it could be the same
2015-06-03 13:31 <cedk> nicoe: a range is two values
2015-06-03 13:32 <nicoe> cedk: OK, I don't call this "the same"
2015-06-03 13:33 <nicoe> cedk: The only time I needed this I used two fields
2015-06-03 13:33 <nicoe> cedk: But it's a so so solution
2015-06-03 13:38 <cedk> MySQL allows partial date
2015-06-03 13:39 -!- juanfe(~juanfe@190.85.115.49) has joined #tryton
2015-06-03 13:42 <cedk> It seems there are no perfect solution, so I will go with 2 fields and a complex domain
2015-06-03 13:47 <nicoe> from a pure storing point of view I found this SO question: http://stackoverflow.com/questions/8169452/how-to-store-year-month-in-database
2015-06-03 13:49 <cedk> nicoe: yep but which year to use?
2015-06-03 13:49 <cedk> and how to display to the user
2015-06-03 13:51 <nicoe> cedk: You don't care about the year but it must have a 29th of Feb
2015-06-03 13:51 <nicoe> cedk: and to display either two function fields or a new widget
2015-06-03 13:51 <cedk> nicoe: but I think the ui will not so good after all
2015-06-03 13:52 <cedk> nicoe: you will have unrelated weeks diplayed
2015-06-03 13:53 <cedk> if at the end, it is about to have 2 fields (month/day) better to store them with 2 fields
2015-06-03 13:55 <nicoe> cedk: yes the SO question just answer for a storing pov
2015-06-03 14:15 -!- digitalsatori(~Thunderbi@203.35.234.18) has joined #tryton
2015-06-03 14:22 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-06-03 14:33 -!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton
2015-06-03 14:34 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-06-03 14:45 -!- alimon(~alimon@134.134.139.74) has joined #tryton
2015-06-03 14:45 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-06-03 15:20 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2015-06-03 15:23 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-06-03 15:33 -!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton
2015-06-03 16:01 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-06-03 16:02 -!- newzen(~newzen@190.72.146.207) has joined #tryton
2015-06-03 16:04 -!- sharoonthomas(~sharoonth@103.245.118.154) has joined #tryton
2015-06-03 16:10 -!- kstenger(~karla@200.124.209.158) has joined #tryton
2015-06-03 16:38 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-06-03 17:01 -!- udono(~udono@ltea-047-067-126-098.pools.arcor-ip.net) has joined #tryton
2015-06-03 17:55 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-06-03 18:11 -!- alimon(~alimon@134.134.139.70) has joined #tryton
2015-06-03 18:29 -!- sharoonthomas(~sharoonth@122.177.83.79) has joined #tryton
2015-06-03 18:41 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-06-03 19:18 -!- bvillasanti1(~bvillasan@181.16.21.34) has joined #tryton
2015-06-03 19:35 -!- frispete(~frispete@p54A90488.dip0.t-ipconnect.de) has joined #tryton
2015-06-03 19:40 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-06-03 19:42 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-06-03 19:44 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-06-03 20:20 -!- sunny_dealmeida(~quassel@203.76.185.164) has joined #tryton
2015-06-03 20:29 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-06-03 21:07 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-06-03 21:25 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-06-03 21:55 -!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton
2015-06-03 21:57 -!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton
2015-06-03 22:03 -!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton
2015-06-03 23:13 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-06-03 23:14 -!- nineinchnick(~jwas@109.231.21.249) has joined #tryton
2015-06-03 23:20 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-06-03 23:32 -!- smarro(~sebastian@190.105.93.196) has joined #tryton

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