chat.freenode.net #tryton log beginning Thu Jul 4 00:00:19 CEST 2013 | ||
iamnoob | Hi, 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 |
---|---|---|
iamnoob | Hi, 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 |
udono | iamnoob: hi, I do not understand your question. Maybe an example? | 10:56 |
iamnoob | udono: 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 |
cedk | iamnoob: if select twice the same record, it will only appear once in the m2m | 11:02 |
cedk | iamnoob: what you suggest will be great to implement | 11:02 |
iamnoob | cedk: hi yes its not adding up again, those my problem really is the enduser's .. where the enduser is getting confused | 11:03 |
iamnoob | cedk: 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 field | 11:06 |
udono | iamnoob: 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 |
iamnoob | udono: 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 |
iamnoob | udono: 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 changed | 11:14 |
udono | iamnoob: yes, domain sounds to restrictive. Maybe fields function with many2many and separate getter and setter? | 11:15 |
cedk | the filtering of m2m search box is not there because we won't want to send queries like this: id not in (....) long list of ids | 11:17 |
cedk | but now, I think I have a good idea | 11:18 |
cedk | we could filter the search box on the client side by removing from the search result the ids already in the m2m | 11:18 |
cedk | this will prevent to have bad queries on server side | 11:18 |
iamnoob | that would be great cedk | 11:20 |
udono | iamnoob: Does cedk idea solve your problem? | 11:21 |
iamnoob | udono: i think of cedk idea. and i think that will solve it. though i dont know how to do it, | 11:22 |
udono | iamnoob: First step is creating a feature request. And then find out if you can solve the issue by yourself, codereview, ... | 11:26 |
iamnoob | udono: is this the site? http://codereview.tryton.org/ | 11:28 |
udono | iamnoob: https://bugs.tryton.org/ to create the issue (feature request). | 11:30 |
cedk | iamnoob: https://bugs.tryton.org/issue3285 | 11:31 |
udono | iamnoob: anything else you'll find in http://code.google.com/p/tryton/wiki/HowtoContribute | 11:32 |
iamnoob | cedk: thanks , udono: thanks, ill try my best also if i can make those feature | 11:33 |
prakash_ | hi | 14:49 |
WUD | yes, prakash how can I help? | 14:51 |
WUD | sorry. gtg | 14:52 |
resteve | I'm stop to add new issues in Nereid. It's all :) | 16:01 |
sharoonthomas | resteve: great, should have some patches and features for review | 16:02 |
resteve | sharoonthomas: I know how to create tests. I try next feedback. | 17:20 |
resteve | sharoonthomas: why add nereid.cms.article a reference field? This field is not available in XML view and is required when save | 17:45 |
resteve | https://github.com/openlabs/nereid-cms/blob/develop/cms.py#L551 | 17:47 |
Guest29931 | Is 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!