-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 >> did you verify that you end up in on_task_changed on the >> javascript side? That's where the write to the dataset takes >> place. I just had another look on one of my (ocb-)installations >> and it just works there. >> >> > no definitively not IMO this is a bad design issue if/that js code > does not use the standard write of the python module module.
it does, that's why I'm surprised. > AND that the js code does not come with the module, but with the > web client the code I talk about sits in web/addons/web_gantt/static/src/js/gantt.js that's where I would expect it. > apart from this - how do I convince the js code to use the function > in def write ? do I have to replicate the code ? you don't have to, in the function mentioned above he calls write() on the dataset that should come out at your function, if not something else goes wrong. > I never worked with js any help appreciated enable the web client's debug mode by adding &debug to the url (before the #-fragment) Then in chrome, go to tools/developer tools, go to the sources tab, navigate to web_gantt/static/src/js/gantt.js, set a breakpoint in on_task_changed and see where it goes wrong. JS is a hell of event handlers and closures that makes debugging a bit tedious sometimes, but in this case you should be able to step through quite straightforwardly until the JSON call to call_kw, then you're on the server side and maybe the problem also lies there. Success, Holger - -- Therp - Maatwerk in open ontwikkeling Holger Brunn - Ontwerp en implementatie mail: [email protected] web: http://therp.nl -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREIAAYFAlKp90sACgkQAcl2D+yjrhhdigEAkQi1BBXLs5NNIVyf5kzWPbCq 7PuBmBNsYj0K+IgI9AoBALNJyuJMZfFvukGn79CwsSXcHWjKw5PfDrHJE0wVn+ax =i9ni -----END PGP SIGNATURE----- _______________________________________________ Mailing list: https://launchpad.net/~openerp-community Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-community More help : https://help.launchpad.net/ListHelp

