IRC logs of #tryton for Wednesday, 2010-11-17

chat.freenode.net #tryton log beginning Wed Nov 17 00:00:02 CET 2010
2010-11-17 00:12 -!- johbo_(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 00:27 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 00:47 -!- kwmiebach(~ad@xdsl-87-79-58-24.netcologne.de) has joined #tryton
2010-11-17 00:58 -!- rednul(~rednul@host-174-45-250-246.bln-mt.client.bresnan.net) has joined #tryton
2010-11-17 01:14 -!- johbo_(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 01:19 -!- johbo__(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 01:44 -!- tony__(~tony@116.233.246.78) has joined #tryton
2010-11-17 01:44 -!- kwmiebach(~ad@xdsl-87-79-58-24.netcologne.de) has left #tryton
2010-11-17 01:45 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 02:08 -!- johbo_(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 02:20 -!- ikks_(~ikks@190.158.122.179) has joined #tryton
2010-11-17 02:24 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 03:18 -!- rednul(~rednul@host-174-45-250-246.bln-mt.client.bresnan.net) has joined #tryton
2010-11-17 03:33 -!- johbo_(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 03:44 -!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton
2010-11-17 03:49 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 04:35 -!- johbo_(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 04:38 -!- paepke(~paepke@p4FEB7BCA.dip.t-dialin.net) has joined #tryton
2010-11-17 04:43 -!- gremly(~gremly@190.26.156.189) has joined #tryton
2010-11-17 05:18 -!- yangoon(~mathiasb@p549F69C3.dip.t-dialin.net) has joined #tryton
2010-11-17 05:21 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 06:15 -!- yangoon(~mathiasb@p549F4650.dip.t-dialin.net) has joined #tryton
2010-11-17 06:16 -!- johbo_(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 06:46 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 06:48 -!- evernichon(~evernicho@mailout.fief.ch) has joined #tryton
2010-11-17 07:11 -!- vladimir_(~vladimir@adsl-dyn-88.95-102-9.t-com.sk) has joined #tryton
2010-11-17 07:19 -!- rednul(~rednul@209-193-110-226.mammothnetworks.com) has joined #tryton
2010-11-17 07:29 -!- rednul(~rednul@209-193-110-226.mammothnetworks.com) has joined #tryton
2010-11-17 07:32 -!- svaksha_(~svaksha@unaffiliated/svaksha) has joined #tryton
2010-11-17 07:54 -!- svaksha(~svaksha@unaffiliated/svaksha) has joined #tryton
2010-11-17 08:12 -!- johbo_(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 08:28 -!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton
2010-11-17 08:55 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-11-17 09:06 -!- Timitos(~kp@88.217.184.172) has joined #tryton
2010-11-17 09:30 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-11-17 09:59 -!- bechamel(~user@host-85-201-147-56.brutele.be) has joined #tryton
2010-11-17 10:14 <sharkcz> cedk: http://sharkcz.livejournal.com/7018.html
2010-11-17 10:25 -!- Red15(~red15@unaffiliated/red15) has joined #tryton
2010-11-17 10:43 <cedk> sharkcz: great
2010-11-17 10:47 -!- gordon_geeko(~jeroen@212.147.120.127) has joined #tryton
2010-11-17 10:51 <cedk> gordon_geeko: you could be interested in http://sharkcz.livejournal.com/7018.html
2010-11-17 10:52 <gordon_geeko> cedk: i made the switch to 1.8 yesterday, rebuilt the fedora rawhide packages!
2010-11-17 10:53 <gordon_geeko> cedk: like the improvements
2010-11-17 10:54 <gordon_geeko> cedk: ah, i see he's also packaged the modules
2010-11-17 11:01 -!- paepke(~paepke@p4FEB26A8.dip0.t-ipconnect.de) has joined #tryton
2010-11-17 11:28 <gordon_geeko> is it possible to set the context in an on_change?
2010-11-17 11:29 <cedk> gordon_geeko: no (bad practice :-)
2010-11-17 11:30 <gordon_geeko> cedk: i'd like to set a required attribute on a field from an on_change event
2010-11-17 11:32 <cedk> gordon_geeko: this is not a good design because it will depend on the way the form is filled
2010-11-17 11:32 <cedk> but you try this bad practice because it is the only way in OE :-)
2010-11-17 11:33 <cedk> gordon_geeko: there is some way to solve this depending of the data model
2010-11-17 11:33 <gordon_geeko> cedk: yes ;-), would you suggest a function field - and if so, when is that evaluated?
2010-11-17 11:33 <cedk> gordon_geeko: but generaly, you must use a PYSON statement in states['required']
2010-11-17 11:34 <cedk> gordon_geeko: there is this example: http://hg.tryton.org/modules/account/file/b5bdbac9d33b/party.py#l26
2010-11-17 11:34 <gordon_geeko> cedk: this would work for a lookup or calculation?
2010-11-17 11:34 <cedk> gordon_geeko: what do you mean by lookup and calculation?
2010-11-17 11:35 <gordon_geeko> for example, i need to set required for party move line depending on the account kind
2010-11-17 11:37 <cedk> gordon_geeko: so I will create a boolean function field on move that define if party is required or not
2010-11-17 11:37 <cedk> gordon_geeko: and put a on_change_with on it
2010-11-17 11:37 <cedk> gordon_geeko: it looks like http://hg.tryton.org/modules/stock/file/cf398145492f/move.py#l81
2010-11-17 11:38 <gordon_geeko> cedk: ah, thx for the pointers - i'll give it a try
2010-11-17 11:39 <cedk> gordon_geeko: one thing you should know is that in Tryton states are validated on server side
2010-11-17 11:40 <cedk> gordon_geeko: so the server must always be able to evaluate the PYSON statement then it can not depend on the click scenario
2010-11-17 11:40 <gordon_geeko> cedk: seems sensible...
2010-11-17 13:02 -!- paepke(~paepke@p4FEB26A8.dip0.t-ipconnect.de) has left #tryton
2010-11-17 13:45 -!- paepke(~paepke@p4FEB7BCA.dip.t-dialin.net) has joined #tryton
2010-11-17 14:54 -!- pepeu(~manuel@201.155.193.192) has joined #tryton
2010-11-17 15:12 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2010-11-17 15:34 -!- hoRn(~chatzilla@dslb-094-223-183-073.pools.arcor-ip.net) has joined #tryton
2010-11-17 15:35 <hoRn> Hi
2010-11-17 16:14 -!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton
2010-11-17 16:27 -!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton
2010-11-17 16:55 <hoRn> cedk: ping
2010-11-17 17:08 -!- johbo__(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 17:12 <cedk> hoRn: pong
2010-11-17 17:14 <hoRn> cedk: you remember my confusion about the issue with the history and the 'you are trying to access a lost entry'? (sale_opportunity)
2010-11-17 17:17 <hoRn> cedk: i was cleaning up my module and so the problem seems fixed. but i think, the mainproblem behind is, that a posible ROLLBACK isn't rollbacking ;) the _history of the object. Possibly, only an idea ...
2010-11-17 17:19 <hoRn> cedk: i was manipulating the selection of a SELECTION-field in fields_view_get with wrong datatype - so the transaction was not commited. But there was an entry in the history.
2010-11-17 17:28 <cedk> hoRn: normally there is no commit
2010-11-17 17:29 <bechamel> hoRn: if there is an error in fields_view_get, the problem appear on read, while history record are created on create, write and delete
2010-11-17 17:39 <hoRn> yes - the error came from sale_opportunity_histories readmethod
2010-11-17 17:41 <hoRn> finally - it was a error caused by a mistake of mine - but i was thinking about handling such errors
2010-11-17 17:42 <hoRn> a similar error can occur, when a copy-action is not done right.
2010-11-17 17:45 <bechamel> hoRn: and you do a copy on read ?
2010-11-17 17:45 <cedk> hoRn: no, every requests are run in a unique transaction
2010-11-17 17:46 <hoRn> no - i did a write and create in a fields_view_get
2010-11-17 17:47 <hoRn> on a different model
2010-11-17 17:48 <cedk> hoRn: except if you make explicit commit
2010-11-17 17:49 <hoRn> cedk: i was trying that by updating the _rpc of the model
2010-11-17 17:53 <cedk> hoRn: even, it will still stay transactional all over the request
2010-11-17 17:54 <hoRn> cedk: ok - i will take a deeper dive in this next days - first i have to finish the modul, client ist waiting and angry
2010-11-17 18:05 -!- rednul(~rednul@host-174-45-250-246.bln-mt.client.bresnan.net) has joined #tryton
2010-11-17 18:12 -!- paepke(~paepke@p4FEB26A8.dip0.t-ipconnect.de) has joined #tryton
2010-11-17 18:21 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 18:39 -!- paepke(~paepke@p4FEB1014.dip0.t-ipconnect.de) has joined #tryton
2010-11-17 19:08 -!- gordon_geeko(~jeroen@77-56-129-131.dclient.hispeed.ch) has joined #tryton
2010-11-17 19:32 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-11-17 19:48 -!- pepeu(~manuel@201.155.193.192) has joined #tryton
2010-11-17 19:54 -!- johbo_(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 19:57 -!- rednul(~rednul@host-174-45-250-246.bln-mt.client.bresnan.net) has joined #tryton
2010-11-17 20:06 -!- FWiesing(~FWiesing@85-126-100-130.work.xdsl-line.inode.at) has joined #tryton
2010-11-17 20:12 -!- woakas(~woakas@200.106.202.91) has joined #tryton
2010-11-17 20:33 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 20:59 -!- johbo_(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 21:24 -!- udono(~udono@dynamic-unidsl-85-197-25-1.westend.de) has joined #tryton
2010-11-17 21:28 <gordon_geeko> i notice that my function field is never called, even with depends - unless i use an on_change_with in the function field
2010-11-17 21:29 <gordon_geeko> could this be a bug?
2010-11-17 21:36 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 21:46 -!- vladimir_(~vladimir@213.151.246.136) has joined #tryton
2010-11-17 21:57 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has joined #tryton
2010-11-17 21:57 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has left #tryton
2010-11-17 21:58 <cedk> gordon_geeko: could you re-copy/paste the code
2010-11-17 21:59 -!- vladimir_(~vladimir@213.151.246.136) has joined #tryton
2010-11-17 22:05 <gordon_geeko> cedk: went back to try the earlier issue i had, see: http://pastebin.com/Lg5609mb
2010-11-17 22:08 <cedk> gordon_geeko: I just think. Do you know that Function field are not called on non-saved records?
2010-11-17 22:10 <gordon_geeko> cedk: but these records are saved, and it works after manually changin the period field
2010-11-17 22:10 <cedk> gordon_geeko: which period field
2010-11-17 22:11 <gordon_geeko> cedk: the original one from move
2010-11-17 22:12 <gordon_geeko> cedk: only then is on_change_with called, the get func is never called
2010-11-17 22:13 <cedk> gordon_geeko: so you must have something wrong in the field definition
2010-11-17 22:13 <cedk> gordon_geeko: but I don't see
2010-11-17 22:22 -!- paepke(~paepke@p4FEB1014.dip0.t-ipconnect.de) has left #tryton
2010-11-17 22:38 -!- ccomb(~ccomb@vau75-2-81-57-244-84.fbx.proxad.net) has joined #tryton
2010-11-17 22:38 -!- ccomb(~ccomb@vau75-2-81-57-244-84.fbx.proxad.net) has left #tryton
2010-11-17 22:47 -!- jbunting(~jbunting@99-5-88-198.lightspeed.nsvltn.sbcglobal.net) has joined #tryton
2010-11-17 22:49 -!- jbunting(~jbunting@99-5-88-198.lightspeed.nsvltn.sbcglobal.net) has joined #tryton
2010-11-17 22:51 -!- ccomb(~ccomb@vau75-2-81-57-244-84.fbx.proxad.net) has joined #tryton
2010-11-17 22:51 -!- ccomb(~ccomb@vau75-2-81-57-244-84.fbx.proxad.net) has left #tryton
2010-11-17 22:55 -!- jbunting(~jbunting@99-5-88-198.lightspeed.nsvltn.sbcglobal.net) has joined #tryton
2010-11-17 22:56 -!- jbunting(~jbunting@99-5-88-198.lightspeed.nsvltn.sbcglobal.net) has joined #tryton
2010-11-17 22:59 <hoRn> Is anybody there?
2010-11-17 22:59 <hoRn> i have a issue with
2010-11-17 23:00 <hoRn> or only the computers are eatin energy ;)
2010-11-17 23:08 <gordon_geeko> shouldn't obj.create call default_field?
2010-11-17 23:12 <hoRn> i think it doesn't - copy has the posibilty to apply default as dict
2010-11-17 23:13 <cedk> gordon_geeko: yes if you don't pass value for some fields
2010-11-17 23:14 <hoRn> i have found a possible issue in sale_opportunity and a small patch - where to post - in issuetracker?
2010-11-17 23:15 <cedk> hoRn: see http://code.google.com/p/tryton/wiki/HowtoContribute
2010-11-17 23:18 <hoRn> to much text - i will use the tracker ;)
2010-11-17 23:19 -!- nicoe(~nicoe@91.180.49.201) has joined #tryton
2010-11-17 23:21 <gordon_geeko> cedk: for the default, what should i return for a boolean?
2010-11-17 23:22 <gordon_geeko> cedk: because False isn't working
2010-11-17 23:24 <gordon_geeko> neither does 0
2010-11-17 23:26 <gordon_geeko> something is wierd
2010-11-17 23:28 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-11-17 23:35 <cedk> gordon_geeko: it is False normally
2010-11-17 23:50 <cedk> gordon_geeko: you should also verify that there is not a ir.default entry for the field
2010-11-17 23:53 <cedk> gordon_geeko: if you want you can send me your module, I could find time to analyze the issue

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