IRC logs of #tryton for Friday, 2015-03-27

chat.freenode.net #tryton log beginning Fri Mar 27 00:00:01 CET 2015
2015-03-27 00:06 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-03-27 00:07 -!- duesenfranz(~jona@chello213047255061.tirol.surfer.at) has joined #tryton
2015-03-27 00:20 -!- nicoe(~nicoe@2a02:a03f:302c:b000:ee55:f9ff:fe7b:f7ac) has joined #tryton
2015-03-27 01:22 -!- hiaselha1(~Thunderbi@212.186.50.97) has joined #tryton
2015-03-27 03:15 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-03-27 04:09 -!- digitalsatori(~Thunderbi@125.7.119.155) has joined #tryton
2015-03-27 04:11 -!- mathsniper(1b6d9fcd@gateway/web/freenode/ip.27.109.159.205) has joined #tryton
2015-03-27 06:01 -!- yangoon1(~mathiasb@p549F056A.dip0.t-ipconnect.de) has joined #tryton
2015-03-27 06:09 <mathsniper> I am using tryton windows client, sometimes I cannot delete the Account Move Lines due to wrong creation. What steps to delete it successfully?
2015-03-27 06:31 <mathsniper> When I edit Journal and save it after clicking "Allow cancelling moves", It shows "You are not allowed to modify this record. This record is part of the base configuration."
2015-03-27 06:40 -!- frispete_(~frispete@p54A90644.dip0.t-ipconnect.de) has joined #tryton
2015-03-27 07:00 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton
2015-03-27 07:34 -!- michael-kohlhaas(~mk@p5DD46EF0.dip0.t-ipconnect.de) has joined #tryton
2015-03-27 07:34 -!- michael-kohlhaas(~mk@unaffiliated/michael-kohlhaas) has joined #tryton
2015-03-27 07:50 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-03-27 09:06 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-03-27 09:33 <pokoli> mathsniper: which version are you using?
2015-03-27 09:39 -!- nicoe(~nicoe@2a02:a03f:302c:b000:ee55:f9ff:fe7b:f7ac) has joined #tryton
2015-03-27 10:04 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-03-27 10:13 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-03-27 10:32 -!- nicoe(~nicoe@249.74-247-81.adsl-dyn.isp.belgacom.be) has joined #tryton
2015-03-27 10:38 -!- Telesight(~anthony@4daeb131.ftth.telfortglasvezel.nl) has joined #tryton
2015-03-27 10:40 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-03-27 12:36 <mathsniper> I am using tryton 3.4.2
2015-03-27 12:49 -!- kstenger(~karla@200.124.209.158) has joined #tryton
2015-03-27 13:04 <pokoli> mathsniper: works for me
2015-03-27 13:04 <pokoli> mathsniper: using 3.4 series from sources
2015-03-27 13:04 <pokoli> mathsniper: how you created the journal?
2015-03-27 13:06 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-03-27 13:12 <mathsniper> I installed tryton data with python_demo.py
2015-03-27 13:13 <mathsniper> When I click Move > Actions... > Cancel Moves on one of the Account Move Line, it does nothing.
2015-03-27 13:15 <pokoli> mathsniper: another move should exist that cancels this move
2015-03-27 13:15 <pokoli> mathsniper: it's the expected behaviour to return anything
2015-03-27 13:15 <pokoli> mathsniper: maybe you can fill an issue to improve it
2015-03-27 13:19 <mathsniper> Please see this image: http://tinypic.com/r/2nklaa8/8
2015-03-27 13:52 <pokoli> mathsniper: so if you refresh the view a new move should be created with the reversed amount
2015-03-27 13:54 <mathsniper> Yes that's why I want to remove the original move line so the new line will not be created for the corresponding move
2015-03-27 14:02 <pokoli> mathsniper: so if the move is posted you have to check the cancel moves on the journal
2015-03-27 14:08 -!- mariomop(~quassel@host96.200-82-110.telecom.net.ar) has joined #tryton
2015-03-27 14:36 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-03-27 14:56 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton
2015-03-27 15:25 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-03-27 16:03 -!- sharoonthomas(~sharoonth@103.245.118.154) has joined #tryton
2015-03-27 16:49 -!- digitalsatori(~Thunderbi@203-59-128-105.perm.iinet.net.au) has joined #tryton
2015-03-27 16:53 -!- EdbO-me(~eddy@edbo.xs4all.nl) has joined #tryton
2015-03-27 16:54 <EdbO-me> Hello all
2015-03-27 16:54 <EdbO-me> I'm struggling with triggers
2015-03-27 16:54 <EdbO-me> It all works, but not with a on-write
2015-03-27 16:55 <EdbO-me> (changing a record)
2015-03-27 16:55 <EdbO-me> and saving it
2015-03-27 16:55 -!- bechamel(~user@2001:41d0:1:8b1d::1) has joined #tryton
2015-03-27 16:58 -!- sharoonthomas(~sharoonth@103.245.118.154) has joined #tryton
2015-03-27 17:00 <EdbO-me> I digged a little deeper
2015-03-27 17:01 <EdbO-me> ir/trigger.py -> def get_triggers
2015-03-27 17:01 <EdbO-me> trigger get cached
2015-03-27 17:07 <EdbO-me> trigger get evaluated and returned True
2015-03-27 17:07 <EdbO-me> But the action is not executed ....
2015-03-27 17:16 -!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton
2015-03-27 17:19 -!- sharoonthomas(~sharoonth@103.245.118.154) has joined #tryton
2015-03-27 17:23 <EdbO-me> Hmm, look like I found a bug
2015-03-27 17:27 <cedk> EdbO-me: fill an issue and if possible a test case that complete the trigger ones
2015-03-27 17:29 <EdbO-me> cedk: It's the same as https://bugs.tryton.org/issue3027
2015-03-27 17:30 <cedk> EdbO-me: OK so you have to write better condition
2015-03-27 17:32 <EdbO-me> cedk: I have a table with a certain amount of rows. These rows are constantly updated
2015-03-27 17:32 <cedk> EdbO-me: I guess someone should write the doc about Trigger as it seems it is not always well understood
2015-03-27 17:33 <EdbO-me> cedk: After the update I want to trigger an action
2015-03-27 17:33 <cedk> EdbO-me: I guess your condition should be the amount has changed
2015-03-27 17:33 <cedk> EdbO-me: this will need to store the previous amount and update in the trigger action
2015-03-27 17:35 <EdbO-me> cedk: Ok, but how to pack that into a condition?
2015-03-27 17:36 <cedk> EdbO-me: condition: this.previous_amount != this.amount
2015-03-27 17:37 <cedk> EdbO-me: and I guess in the triggered action, you should also remove the record of the processing of this action
2015-03-27 17:38 -!- gremly(~gremly@190.85.36.58) has joined #tryton
2015-03-27 17:39 <EdbO-me> cedk: Aha, an extra field which is updated by the trigger action. Am I right?
2015-03-27 17:40 <cedk> EdbO-me: yes
2015-03-27 17:41 <EdbO-me> cedk: Ok, but what do you mean with "you should also remove the record of the processing of this action" ?
2015-03-27 17:43 <cedk> EdbO-me: forget my previous statement about removing record of processing
2015-03-27 17:43 <cedk> EdbO-me: it was wrong
2015-03-27 17:49 <EdbO-me> cedk: I added a extra field prevValue
2015-03-27 17:50 <EdbO-me> cedk: and made the condition: self.value != self.prevValue
2015-03-27 17:50 <EdbO-me> cedk: Isn't working
2015-03-27 17:50 <cedk> EdbO-me: do you update prevValue?
2015-03-27 17:50 <cedk> EdbO-me: the important thing, is that the condition must be false before the write and true after
2015-03-27 17:52 <EdbO-me> cedk: In the client I open a record and change the value of the field Value
2015-03-27 17:52 <EdbO-me> cedk: then press Save
2015-03-27 17:52 -!- jim__(~jim@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton
2015-03-27 17:53 <jim__> does anyone know if trytond 3.4.1 uses the new of old config file format?
2015-03-27 17:53 <cedk> jim__: http://doc.tryton.org/3.4/trytond/doc/topics/configuration.html#topics-configuration
2015-03-27 17:54 <jim__> thanks
2015-03-27 17:54 <EdbO-me> cedk: Normally when I create a new record, and save it, the action will be triggered
2015-03-27 17:54 <cedk> jim__: no API change in the same series 3.4.x
2015-03-27 17:54 <jim__> I'm having server password invalid
2015-03-27 17:55 <cedk> EdbO-me: if the condition is True
2015-03-27 17:55 <cedk> EdbO-me: but on write: if the condition is True before and True after, it is not triggered
2015-03-27 17:56 <EdbO-me> cedk: Ok, but where do I have to modify the record? Do I have to create my own write def?
2015-03-27 17:58 <cedk> EdbO-me: I think you could just override write method
2015-03-27 17:59 <cedk> EdbO-me: but indeed what do you try to acheive?
2015-03-27 18:01 <EdbO-me> cedk: A script running in the background will put data into Tryton
2015-03-27 18:02 <EdbO-me> cedk: When values of that data are outside the given values
2015-03-27 18:02 <EdbO-me> cedk: an action is executed
2015-03-27 18:03 <cedk> EdbO-me: so it is not about changed but about out of range
2015-03-27 18:07 <EdbO-me> cedk: yes, the condition can be (self.Value > 100 and self.Value < 150)
2015-03-27 18:08 <EdbO-me> cedk: the script udates a record with self.Value = 180, no problem
2015-03-27 18:09 <EdbO-me> cedk: when the script updates a record with self.Value = 120, a action should be executed
2015-03-27 18:09 <EdbO-me> cedk: but maybe I shouldn't do this in the database but in memory
2015-03-27 18:11 <cedk> EdbO-me: this should work
2015-03-27 18:11 <cedk> EdbO-me: but of course if it is updated twice with a value of 120, it will be triggered once
2015-03-27 18:14 <EdbO-me> cedk: on creation of the record, the action is fired (self.Value = 120)
2015-03-27 18:14 <EdbO-me> cedk: on an update of the same record (self.Value = 134), the action is not fired
2015-03-27 18:16 <cedk> EdbO-me: what was the value before the update?
2015-03-27 18:16 <jim__> cedk: I'm getting "Sorry, wrong password for the Tryton server. Please try again." even though I've generated encrypted password and using the password used to generate it - any suggestions?
2015-03-27 18:17 <jim__> both server and client 3.4.1
2015-03-27 18:17 <cedk> jim__: doesn't it have sepcial char?
2015-03-27 18:18 <EdbO-me> cedk: record created with value = 120
2015-03-27 18:18 <jim__> no special character
2015-03-27 18:18 <EdbO-me> cedk: record changes with value = 134
2015-03-27 18:18 <EdbO-me> cedk: changes = changed
2015-03-27 18:19 <cedk> EdbO-me: so it goes from 120 to 134, where both are True condition so it is normal it doesn't trigger again
2015-03-27 18:20 <cedk> EdbO-me: it will work on write if it goes from 90 to 134
2015-03-27 18:21 <cedk> jim__: are you sure trytond is reading your configuration
2015-03-27 18:21 <jim__> How can I tell? When it starts, it says it is, but also says that when no file exists as specified
2015-03-27 18:22 <jim__> I've done chmod 777 on conf file
2015-03-27 18:22 <cedk> jim__: if it says so, it is
2015-03-27 18:22 <jim__> ok
2015-03-27 18:23 <EdbO-me> cedk: I created a new record with value = 90
2015-03-27 18:23 <cedk> jim__: did you put it in the right section without typo etc.
2015-03-27 18:23 <EdbO-me> cedk: then I change the value to 134 and clicked the save button
2015-03-27 18:23 <EdbO-me> cedk: noo action
2015-03-27 18:24 <cedk> EdbO-me: that is strange
2015-03-27 18:25 <EdbO-me> cedk: SORRY .......
2015-03-27 18:25 <EdbO-me> cedk: I made some changes and forgot to restart the server
2015-03-27 18:25 <EdbO-me> cedk: It's working now!
2015-03-27 18:26 <jim__> I think I see the problem - let me check
2015-03-27 18:27 <cedk> EdbO-me: OK, it is better because it started to be strange as it is well tested: http://hg.tryton.org/trytond/file/da413e412fb0/trytond/tests/test_trigger.py#l178
2015-03-27 18:31 <jim__> cedk: BTW, when superpwd fails, create dialog is frozen
2015-03-27 18:32 <cedk> jim__: fill an issue, please
2015-03-27 18:37 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton
2015-03-27 19:00 -!- sharoonthomas(~sharoonth@103.245.118.154) has joined #tryton
2015-03-27 19:31 -!- nicoe(~nicoe@2a02:a03f:302c:b000:ee55:f9ff:fe7b:f7ac) has joined #tryton
2015-03-27 19:47 -!- EdbO-me(~eddy@edbo.xs4all.nl) has left #tryton
2015-03-27 19:50 -!- marcdm(~marcdm@72.27.96.196) has joined #tryton
2015-03-27 19:53 <marcdm> Hello everyone. I am doing some refactoring of some code to better separate functionality between modules. I'd like to know, how difficult would it be to migrate an installation if the name of a module (or 3) changes?
2015-03-27 20:11 -!- sharoonthomas(~sharoonth@103.245.118.154) has joined #tryton
2015-03-27 20:14 -!- sharoonthomas(~sharoonth@103.245.118.154) has joined #tryton
2015-03-27 20:58 -!- nicoe(~nicoe@2a02:a03f:302c:b000:ee55:f9ff:fe7b:f7ac) has joined #tryton
2015-03-27 21:05 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-03-27 21:16 -!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton
2015-03-27 21:31 -!- Yakulu(~Yakulu@78.194.3.29) has joined #tryton

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