IRC logs of #tryton for Monday, 2014-03-24

chat.freenode.net #tryton log beginning Mon Mar 24 00:00:01 CET 2014
2014-03-24 00:58 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2014-03-24 02:28 -!- defyasdf(~defyasdf@ec2-54-234-60-70.compute-1.amazonaws.com) has joined #tryton
2014-03-24 02:56 -!- digitalsatori(~Thunderbi@114.92.199.176) has joined #tryton
2014-03-24 03:50 -!- digitalsatori(~Thunderbi@114.92.199.176) has joined #tryton
2014-03-24 06:17 -!- yangoon(~mathiasb@p549F1AC3.dip0.t-ipconnect.de) has joined #tryton
2014-03-24 07:09 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton
2014-03-24 07:27 -!- digitalsatori(~Thunderbi@116.234.123.99) has joined #tryton
2014-03-24 07:30 -!- udono(~udono@ip-88-152-168-173.unitymediagroup.de) has joined #tryton
2014-03-24 07:39 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2014-03-24 07:48 -!- nicoe(~nicoe@91.179.19.67) has joined #tryton
2014-03-24 08:03 -!- acu(~acu@50.244.13.221) has joined #tryton
2014-03-24 08:20 -!- udono(~udono@ip-88-152-168-173.unitymediagroup.de) has joined #tryton
2014-03-24 08:21 -!- digitalsatori(~Thunderbi@116.234.123.99) has joined #tryton
2014-03-24 09:02 -!- defyasdf(~defyasdf@ec2-54-234-60-70.compute-1.amazonaws.com) has joined #tryton
2014-03-24 09:27 -!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton
2014-03-24 09:29 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2014-03-24 09:31 -!- Shrine(~mark@37.46.136.17) has joined #tryton
2014-03-24 09:34 -!- digitalsatori(~Thunderbi@116.234.123.99) has joined #tryton
2014-03-24 09:34 -!- grasbauer(~jan@dslb-094-223-195-081.pools.arcor-ip.net) has joined #tryton
2014-03-24 09:35 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton
2014-03-24 09:40 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2014-03-24 09:42 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2014-03-24 09:51 -!- defyasdf(~defyasdf@ec2-54-234-60-70.compute-1.amazonaws.com) has joined #tryton
2014-03-24 09:56 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has joined #tryton
2014-03-24 10:39 -!- strebitz(~sebastian@91.183.59.105) has joined #tryton
2014-03-24 10:48 -!- strebitz(~sebastian@91.183.59.105) has joined #tryton
2014-03-24 10:55 -!- digitalsatori(~Thunderbi@116.234.123.99) has joined #tryton
2014-03-24 11:12 -!- corro(~corro@46.22.23.85) has joined #tryton
2014-03-24 11:26 -!- jeancavallo(~giovanni@LPuteaux-656-01-230-52.w80-12.abo.wanadoo.fr) has joined #tryton
2014-03-24 12:18 -!- nicoe(~nicoe@2001:6f8:3aa:0:b699:baff:fe56:2328) has joined #tryton
2014-03-24 13:20 -!- hiaselhans(~hiaselhan@212.186.35.254) has joined #tryton
2014-03-24 13:25 -!- ronaldm(~ronaldm@wvale-ggsn-55.133.econet.co.zw) has joined #tryton
2014-03-24 13:41 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2014-03-24 13:49 -!- gremly(~gremly@190.85.36.58) has joined #tryton
2014-03-24 14:32 -!- mdupont(~mdupont@ip24-255-230-41.ks.ks.cox.net) has joined #tryton
2014-03-24 14:33 -!- smarro(~sebastian@190.105.85.74) has joined #tryton
2014-03-24 14:43 <mdupont> hi all
2014-03-24 14:44 <mdupont> i had started to port the backend of openerp to django, am thinking to apply this to tryton
2014-03-24 14:47 <Pilou> mdupont: you should post on tryton-contrib mailing list http://groups-contrib.tryton.org/ when some code will be available :)
2014-03-24 14:50 <mdupont> ihave some code already
2014-03-24 14:50 <mdupont> wait
2014-03-24 14:50 -!- jeancavallo(~giovanni@LPuteaux-656-01-230-52.w80-12.abo.wanadoo.fr) has joined #tryton
2014-03-24 14:52 <mdupont> https://code.launchpad.net/~jamesmikedupont/openobject-server/nodb actually, I was removing the database totally to begin with
2014-03-24 14:57 <cedk> mdupont: what's the point?
2014-03-24 14:58 <mdupont> the point of removing the database?
2014-03-24 14:58 <mdupont> well first you remove the low level ties to pg
2014-03-24 14:58 <mdupont> replace it with an api
2014-03-24 14:58 <mdupont> and then you can implement it with another generic driver,
2014-03-24 14:59 <cedk> mdupont: Tryton is already DB agnostic
2014-03-24 15:01 -!- hiaselhans(~hiaselhan@212.186.35.254) has joined #tryton
2014-03-24 15:02 <mdupont> yes? great. I was just going by the main page : http://www.tryton.org/ and using PostgreSQL as database engine.
2014-03-24 15:02 <mdupont> i dont know anything about tryton, just worked a bit on openerp
2014-03-24 15:03 <cedk> mdupont: yes PG is the best
2014-03-24 15:03 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has joined #tryton
2014-03-24 15:05 <Pilou> see http://hg.tryton.org/trytond/file/2bf7f7b3c54b/trytond/backend : database.py, fields.py and table.py are interfaces, implementations are in the subdirectories
2014-03-24 15:06 <mdupont> thanks
2014-03-24 15:06 <mdupont> great news
2014-03-24 15:09 <pokoli> mdupont: did you read the django wiki page on http://code.google.com/p/tryton/wiki/TrytonDjango ??
2014-03-24 15:10 <mdupont> no not yet
2014-03-24 15:11 <mdupont> thanks
2014-03-24 15:11 <mdupont> pokoli,
2014-03-24 15:11 <pokoli> mdupont: I'm wondering what's the objective of what you're trying to do
2014-03-24 15:12 <mdupont> pokoli, i was just asking if people were interested in that
2014-03-24 15:13 <mdupont> but it seems that the db abstraction is done so that is good news
2014-03-24 15:13 <pokoli> mdupont: what do you understand by that?
2014-03-24 15:13 <mdupont> well if i can use a different database with tryton
2014-03-24 15:14 <mdupont> like mysql or sqllite that would be a first goal,
2014-03-24 15:14 <mdupont> one thing that i wanted to change in openerp was to abstract the db from the system
2014-03-24 15:15 <pokoli> mdupont: already done on tryton, so what's next with django?
2014-03-24 15:15 <mdupont> well the original idea was to use djangos db abstraction
2014-03-24 15:16 <mdupont> so that you have a django app created using your module
2014-03-24 15:16 <mdupont> so you can keep your openerp model and in the back end it uses django
2014-03-24 15:16 <mdupont> that was my first idea
2014-03-24 15:17 <pokoli> mdupont: do yo need a web interface?
2014-03-24 15:17 <mdupont> well, this was just an idea.
2014-03-24 15:17 <mdupont> right now i am evaluating gnuhealth
2014-03-24 15:17 <mdupont> i heard the talk on flossweekly
2014-03-24 15:18 <cedk> mdupont: Tryton works with MySQL but it includes all the bugs of MySQL
2014-03-24 15:18 <mdupont> well i have an existing app in cakephp
2014-03-24 15:18 <mdupont> for a customer
2014-03-24 15:19 <cedk> it works also with SQLite but mainly for testing because SQLite lakes important features
2014-03-24 15:19 <mdupont> and i want to evaluate the cost of porting that into gnuhealth
2014-03-24 15:19 <mdupont> sure, of course
2014-03-24 15:19 <mdupont> sqlite is limited, used mostly for dev testing
2014-03-24 15:20 <mdupont> ok thanks for your help. now will try and install gnuhealth on my laptop ....
2014-03-24 15:20 <pokoli> mdupont: what's your cakephp app functionality?
2014-03-24 15:20 <mdupont> it is a proprietory app
2014-03-24 15:20 <mdupont> a health care app
2014-03-24 15:20 <mdupont> and the company is looking for a new platform
2014-03-24 15:21 <mdupont> also want desktop functionality
2014-03-24 15:21 <pokoli> mdupont: so ho ahead with gnuhealt
2014-03-24 15:22 <mdupont> ok thanks
2014-03-24 15:23 <mdupont> here is the link :
2014-03-24 15:23 <mdupont> FLOSS Weekly 288: GNU Health - FLOSS Weekly (MP3) http://www.podtrac.com/pts/redirect.mp3/twit.cachefly.net/audio/floss/floss0288/floss0288.mp3
2014-03-24 15:30 <pokoli> mdupont: thanks for sharing, listening to it :)
2014-03-24 15:47 -!- smarro(~sebastian@190.105.85.74) has joined #tryton
2014-03-24 15:57 -!- acu(~acu@50.244.13.221) has joined #tryton
2014-03-24 16:18 -!- strebitz(~sebastian@91.183.59.105) has left #tryton
2014-03-24 16:36 -!- schnitzel123(~jona@212.186.35.254) has joined #tryton
2014-03-24 16:37 -!- schnitzel123(~jona@212.186.35.254) has joined #tryton
2014-03-24 16:37 -!- hiaselhans(~hiaselhan@212.186.35.254) has joined #tryton
2014-03-24 16:38 <schnitzel123> so I tried to understand what the on_change_<field> functions do...
2014-03-24 16:39 <schnitzel123> and on http://doc.tryton.org/3.0/trytond/doc/ref/models/fields.html#trytond.model.fields.Field.on_change , it says that you have to explicititely set a value on the field for the function to be called
2014-03-24 16:39 <schnitzel123> so I looked on sale.sale.SaleLine, but I can't find where this is parameter is set
2014-03-24 16:42 -!- hiaselhans(~hiaselhan@212.186.35.254) has joined #tryton
2014-03-24 16:42 -!- hiaselhans(~hiaselhan@212.186.35.254) has joined #tryton
2014-03-24 16:46 <corro> schnitzel123: you must set the on_change attribute to a list of dependent fields (as strings) for the corresponding on_change_<field_name> method to be called
2014-03-24 16:47 <schnitzel123> so it's done by the @fields.depends(...) decorator?
2014-03-24 16:47 <corro> schnitzel123: I don't know about the newer versions yet, I'm still working with 2.8
2014-03-24 16:48 <schnitzel123> corro: ok... thanks anyhow!
2014-03-24 16:48 <hiaselhans> @co
2014-03-24 16:48 <hiaselhans> sorry
2014-03-24 16:50 <corro> schnitzel123: the decorator function seems to be part of the upcoming 3.2 release. If you're working with 3.0 you probably have to use the old style I described.
2014-03-24 16:51 <schnitzel123> corro: I'm working with 3.1...
2014-03-24 16:53 <corro> schnitzel123: then I guess you must define a method called on_change_<field_name> and decorate it with @fields.depends(...) just like it's done in the sale module you mentioned
2014-03-24 16:53 <schnitzel123> corro: so generally, on_change_with will be unnecessary in future? since i can set the dependencies with a decorator
2014-03-24 16:54 -!- hiaselhans(~hiaselhan@212.186.35.254) has left #tryton
2014-03-24 16:54 -!- hiaselhans(~hiaselhan@212.186.35.254) has joined #tryton
2014-03-24 16:55 <corro> schnitzel123: no, on_change_with is a different functionality
2014-03-24 16:58 <schnitzel123> corro: i simply don't get it... if i set on_change_quanitity, it will get called when i change the quantity... so what do i set with @fields.depends? the values that are expected to be changed with the dictionary that gets returned?
2014-03-24 16:59 <corro> schnitzel123: no, the fields you rely on during the computation of the new values
2014-03-24 17:01 <schnitzel123> corro: but then where do i set when on_change_with_<field> will be called?
2014-03-24 17:02 <schnitzel123> because @fields.depends just sets the fields i rely during the computation?
2014-03-24 17:02 <schnitzel123> or are these two things the same in this case?
2014-03-24 17:04 <corro> schnitzel123: for on_change_with the interpretation of @fields.depends is "call me if one of these fields changes"
2014-03-24 17:05 <schnitzel123> ok... I think I got it, thank you very much! and sorry for not getting it earlier
2014-03-24 17:06 <corro> schnitzel123: you're welcome. Once you get your head around it actually makes sense :)
2014-03-24 18:00 -!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton
2014-03-24 18:19 <hiaselhans> hi there
2014-03-24 18:20 <hiaselhans> is it possible that inheritance does not work for example in 'stock.shipment.out'?
2014-03-24 18:21 <hiaselhans> it is fine for every normal model
2014-03-24 18:21 <hiaselhans> but not on this one :)
2014-03-24 18:34 <jvblasco> hiaselhans: have u laoded the class in the __init__.py file?
2014-03-24 18:35 <hiaselhans> yep its registered in the pool
2014-03-24 18:36 <hiaselhans> but i cant access its cls.write function
2014-03-24 18:36 <hiaselhans> and if i print dir(cls)
2014-03-24 18:36 <hiaselhans> it only shows functions and fields defined in the current module
2014-03-24 18:40 <schnitzel123> So I ran into another problem:
2014-03-24 18:40 <schnitzel123> ERROR: UPDATE cannot be executed in a read-only-transaction
2014-03-24 18:41 <cedk> hiaselhans: you did not use PoolMeta as metaclass
2014-03-24 18:42 <hiaselhans> i did __metaclass__ = PoolMeta
2014-03-24 18:42 <hiaselhans> it is a module with some other classes where inheritance works perfectly
2014-03-24 18:43 <cedk> hiaselhans: or you did not have stock module installed
2014-03-24 18:45 <hiaselhans> cedk: thanks for helping, but stock module is installed. i forgot it in module depends first but its in there now..
2014-03-24 18:52 <cedk> hiaselhans: wrong __name__ ?
2014-03-24 18:54 <hiaselhans> no, using pgadmin i see the field added...
2014-03-24 18:56 <cedk> hiaselhans: did you retrieve the cls from the Pool?
2014-03-24 18:58 <hiaselhans> cedk: like Pool().get(cls.__name__)
2014-03-24 18:58 <hiaselhans> cedk: no, i thought that was not needed as it is a classmethod of same __name__
2014-03-24 18:59 <cedk> hiaselhans: the cls can not magically change
2014-03-24 19:12 <hiaselhans> cedk: ok, thanks stupid mistake, i called the modules class definition from another class...
2014-03-24 19:17 <schnitzel123> thanks, found it!
2014-03-24 19:17 <schnitzel123> I didn't set __rpc__['execute'] to RPC(False)
2014-03-24 19:18 <schnitzel123> are there docs on this?
2014-03-24 19:22 -!- littlebit(~Thunderbi@ulmg-5d845698.pool.mediaWays.net) has joined #tryton
2014-03-24 19:29 <cedk> schnitzel123: http://doc.tryton.org/3.0/trytond/doc/ref/models/models.html?highlight=rpc#trytond.model.Model.__rpc__
2014-03-24 19:34 -!- schnitzel123(~jona@212.186.35.254) has left #tryton
2014-03-24 19:55 -!- hiaselhans(~hiaselhan@212.186.35.254) has left #tryton
2014-03-24 20:55 -!- pjstevns(~Thunderbi@nfg1.nfgs.net) has joined #tryton
2014-03-24 21:05 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2014-03-24 21:08 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton
2014-03-24 21:30 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton
2014-03-24 22:11 -!- nicoe(~nicoe@91.179.19.67) has joined #tryton
2014-03-24 22:21 -!- azi(~azi@67.142.48.59) has joined #tryton
2014-03-24 23:52 -!- digitalsatori(~Thunderbi@114.92.199.176) has joined #tryton

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