IRC logs of #tryton for Saturday, 2012-05-19

chat.freenode.net #tryton log beginning Sat May 19 00:00:02 CEST 2012
2012-05-19 12:32 <grasbauer> Hi
2012-05-19 12:36 <grasbauer> Blackhole in my head: I'm setting with onchange some records to a many2many. If I save the record an inspect write, there are no values in the dict - I think it was working before ...
2012-05-19 13:00 <cedk> grasbauer: is it filled in the client?
2012-05-19 13:01 <grasbauer> cedk: yes
2012-05-19 13:02 <grasbauer> cedk: i see the values in the client according to what is set in the onchange-method. if i click save, there is no key for this field in the dict
2012-05-19 13:06 <cedk> grasbauer: probably: 1676434b13b2
2012-05-19 13:12 <grasbauer> cedk: what?
2012-05-19 13:14 <cedk> grasbauer: probably the guilty changeset
2012-05-19 13:30 <grasbauer> cedk: ah - ok
2012-05-19 13:47 <cedk> grasbauer: fill an issue
2012-05-19 13:48 -!- Telesight(~anthony@s537751a5.adsl.wanadoo.nl) has left #tryton
2012-05-19 14:07 <grasbauer> cedk: if I revert to the changeset: ImportError: No module named tdp
2012-05-19 14:33 <grasbauer> cedk: issue filed and possible patch attached
2012-05-19 14:58 <cedk> grasbauer: I submitted a better patch
2012-05-19 15:05 <grasbauer> cedk: works better - but there there should be also a hook to unlink all, if an empty list is in the on_change-dict
2012-05-19 15:07 <cedk> grasbauer: it does
2012-05-19 15:07 <grasbauer> cedk: I'll try again
2012-05-19 15:10 <grasbauer> write {'coating_layer': [['add', [166, 151, 221]]]}
2012-05-19 15:10 <grasbauer> on_change {'priority': 4, 'coating_layer': [], 'coating_layerset': None}
2012-05-19 15:10 <grasbauer> sorry
2012-05-19 15:10 <grasbauer> cedk: I pasted accidently
2012-05-19 15:13 <grasbauer> cedk: if I set the many2many = [] in the onchange - in write I can see that a empty list is passed - but after the former records are there. is this append ;)
2012-05-19 15:13 <cedk> grasbauer: after what?
2012-05-19 15:15 <cedk> grasbauer: it seems there is an other bug
2012-05-19 15:24 <grasbauer> cedk: I think it should not be 'add' - it should be 'set' in case of manipulation in on_change
2012-05-19 15:26 <cedk> grasbauer: I try on sale and it works as expected
2012-05-19 15:26 <grasbauer> cedk: ok
2012-05-19 15:27 <grasbauer> cedk: whre in sale is such a case?
2012-05-19 15:28 <cedk> grasbauer: taxes on sale line
2012-05-19 15:28 <cedk> albertca: did you test the required patch?
2012-05-19 15:34 <grasbauer> cedk: how you test it? there is no onchange which sets the taxes to [] - if taxes are set, they are not deleted ...
2012-05-19 15:36 <cedk> grasbauer: I select a product with taxes and after that I change the product for one without taxes
2012-05-19 15:37 <grasbauer> cedk: ok - so everything is done witch your patch ...
2012-05-19 15:38 <grasbauer> afk - family needs a to be complete
2012-05-19 15:38 -!- grasbauer(~jan@dslb-094-223-213-015.pools.arcor-ip.net) has left #tryton
2012-05-19 19:31 <cjbarnes18> Hi all, How does record locking / save conflict resolution work in Tryton?
2012-05-19 19:34 <cedk> cjbarnes18: https://en.wikipedia.org/wiki/Optimistic_concurrency_control
2012-05-19 19:35 <cjbarnes18> excellent, thank you.
2012-05-19 19:42 <smarro> cedk: ping
2012-05-19 20:09 <cedk> smarro: pong
2012-05-19 20:09 <smarro> cedk: hi, can you tell me if the changeset 2787:140087fedf85 was backported?
2012-05-19 20:11 <cedk> smarro: from which repo
2012-05-19 20:11 <smarro> cedk: from trunk to 2.4
2012-05-19 20:11 <smarro> cedk: trytond
2012-05-19 20:13 <cedk> smarro: I'm pretty sure
2012-05-19 20:13 <smarro> cedk: where i can see the backport? In http://downloads1.tryton.org/2.4/trytond-2.4.1.tar.gz?
2012-05-19 20:14 <smarro> cedk: i ask because it is last modified on 2012-Apr-24 19:41:34
2012-05-19 20:14 <cedk> smarro: you can't
2012-05-19 20:15 <smarro> cedk: sorry, i don't understand how the backports work...
2012-05-19 20:16 <cedk> smarro: it is in the repo
2012-05-19 20:17 <smarro> cedk: if i do pip install trytond, the changeset is included on that installation?
2012-05-19 20:18 <cedk> smarro: no
2012-05-19 20:19 <smarro> cedk: but will be, once you release trytond-2.4.2 on june?
2012-05-19 20:20 <cedk> smarro: it will be in 2.4.2 but don't know when
2012-05-19 20:20 <smarro> cedk: ok
2012-05-19 20:23 <smarro> cedk: the 2.4 repository is public? can someone get a copy from http://hg.tryton.org?
2012-05-19 20:25 <cedk> smarro: http://hg.tryton.org/2.4/
2012-05-19 20:26 <smarro> cedk: thanks
2012-05-19 21:05 <cjbarnes18> ced: started seeing an init error for sale module.
2012-05-19 21:11 <cjbarnes18> cedk: http://pastebin.com/CBMzm11i
2012-05-19 22:57 <cedk> cjbarnes18: fill an issue
2012-05-19 23:01 <cjbarnes18> cedk: ok
2012-05-19 23:02 <cedk> cjbarnes18: it is always: fill an issue
2012-05-19 23:03 <cjbarnes18> cedk: tob

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