IRC logs of #tryton for Thursday, 2013-07-04

chat.freenode.net #tryton log beginning Thu Jul 4 00:00:19 CEST 2013
iamnoobHi, i have a many2many field, and im wondering if there's a way where after i added a certain record to it, and i wanted to add another record to it, i wont be able to see the records that i have already added (the window that will popup after you click on the '+' sign or 'add existing button'09:19
iamnoobHi, i have a many2many field, and im wondering if there's a way where after i added a certain record to it, and i wanted to add another record to it, i wont be able to see the records that i have already added (the window that will popup after you click on the '+' sign or 'add existing button'10:49
udonoiamnoob: hi, I do not understand your question. Maybe an example?10:56
iamnoobudono: hi,  i got this many2many field, and it is connected to another model/table with 5 records.  what i need is. if i select 3 of those 5 records. the next time i try to add another record. i can only see 2 records left (since i already selected the 3 records earlier)11:00
cedkiamnoob: if select twice the same record, it will only appear once in the m2m11:02
cedkiamnoob: what you suggest will be great to implement11:02
iamnoobcedk: hi yes its not adding up again, those my problem really is the enduser's .. where the enduser is getting confused11:03
iamnoobcedk: im trying to figure out what else i can do, they are adding records to the many2many field, but on sometime they make mistakes becuase they added a same record, though tryton now will not add it again, in the enduser's mindset he/she didnt know if he made a mistake if we are talking hundreds of recored already inside that many2many field11:06
udonoiamnoob: doesn't it work in a wizard with recursive give the m2m only the data which is usefull after finalising the processing step?11:08
iamnoobudono: hmm im afraid im not yet in a level to understand some part of what you said, is there an example of what you had said in the official modules?11:12
iamnoobudono: some experiments i made was to use domain and then after selecting a certain record, i update the field being read by the domain. but got problem with this because domain doesnt allow me to save records that had been changed11:14
udonoiamnoob: yes, domain sounds to restrictive. Maybe fields function with many2many and separate getter and setter?11:15
cedkthe filtering of m2m search box is not there because we won't want to send queries like this: id not in (....) long list of ids11:17
cedkbut now, I think I have a good idea11:18
cedkwe could filter the search box on the client side by removing from the search result the ids already in the m2m11:18
cedkthis will prevent to have bad queries on server side11:18
iamnoobthat would be great cedk11:20
udonoiamnoob: Does cedk idea solve your problem?11:21
iamnoobudono: i think of cedk idea. and i think that will solve it. though i dont know how to do it,11:22
udonoiamnoob: First step is creating a feature request. And then find out if you can solve the issue by yourself, codereview, ...11:26
iamnoobudono: is this the site? http://codereview.tryton.org/11:28
udonoiamnoob: https://bugs.tryton.org/ to create the issue (feature request).11:30
cedkiamnoob: https://bugs.tryton.org/issue328511:31
udonoiamnoob: anything else you'll find in http://code.google.com/p/tryton/wiki/HowtoContribute11:32
iamnoobcedk: thanks  , udono: thanks, ill try my best also if i can make those feature11:33
prakash_hi14:49
WUDyes, prakash how can I help?14:51
WUDsorry. gtg14:52
resteveI'm stop to add new issues in Nereid. It's all :)16:01
sharoonthomasresteve: great, should have some patches and features for review16:02
restevesharoonthomas: I know how to create tests. I try next feedback.17:20
restevesharoonthomas: why add nereid.cms.article a reference field? This field is not available in XML view and is required when save17:45
restevehttps://github.com/openlabs/nereid-cms/blob/develop/cms.py#L55117:47
Guest29931Is it possible to raise user error inside Report?21:26

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!