IRC logs of #tryton for Tuesday, 2013-07-16 #tryton log beginning Tue Jul 16 00:00:05 CEST 2013
2013-07-16 08:38 <iamnoob> hi im trying to use on_change on a but its not working? only have this on_change problem on a
2013-07-16 09:04 <jeancavallo> iamnoob: What is not working ? AFAIK, there is no reason for which a Date field would have a different behaviour than any other field...
2013-07-16 09:15 <iamnoob> jeancavallo: thats what i would expect too. im trying to use the on_change of a and nothing is happening, im simply doing a python print , and nothing is showing up, so i decided to move my python print it to a field.char
2013-07-16 09:16 <jeancavallo> iamnoob: Did you see the on_change call in the client-server json log ?
2013-07-16 09:27 <iamnoob> jeancavallo: how can i find the json log?
2013-07-16 09:29 <jeancavallo> iamnoob: Use the -v and "-l DEBUG" options when launching the client. All json messages exchanged between the server and the client will be printed in the console
2013-07-16 09:31 <jeancavallo> iamnoob: So when you change your date field in the client, you should see a call to INFO:tryton.rpc:model.<your_model>.on_change + parameters
2013-07-16 09:32 <iamnoob> jeancavallo: thanks ill check the json logs.
2013-07-16 09:33 <jeancavallo> iamnoob: If you do not see the call in the log, it should mean that either there is a bug in the client (unlikely) or a depends / field no in view problem
2013-07-16 16:19 <oscar__> How can I set value in field origin on account.move, this 'origin': str(self) doesnt work for model account.voucher
2013-07-16 16:21 <oscar__> I?
2013-07-16 16:21 <cedk> oscar__: possible target must be define in get_origin
2013-07-16 16:25 <oscar__> cedk: this my code
2013-07-16 16:25 <oscar__> cedk: I think that get_origin was defined, but I am not sure :S
2013-07-16 16:28 <cedk> oscar__: I see no extention of account.move
2013-07-16 16:32 <oscar__> cedk: maybe line 96?
2013-07-16 16:34 <cedk> oscar__: don't understand
2013-07-16 16:34 <oscar__> cedk: on line 96 I define "move = fields.Many2One('account.move', 'Move', readonly=True)"
2013-07-16 16:35 <cedk> oscar__: nothing to do about defining account.voucher as possible origin on account.move
2013-07-16 16:37 <oscar__> cedk: So, I dont understand where I must to define account.move?
2013-07-16 16:39 <cedk> oscar__: you must extend it somewhere in your module
2013-07-16 16:47 <oscar__> cedk: Thanks Ok, I founded ! in this file is the response: account_invoice/

Generated by 2.17.3 by Marius Gedminas - find it at!