Hi! I'm more or less new in openerp and I need to hide repeated elements of a list ma_ids[ ].
My code is the next:
for rt in r.repairs_ids: m_ids += [rt.id] for rtd in rt.repairs_ids: md_ids += [rtd.id] if (rtd.repair_id.rep_principal==True): ma_ids += [rtd.id]
I need in the last line that rtd.id only writes in ma_ids if rep.principal ==True and I need a condition that if this item already exists that It didn't written it. I try not to display repeated elements.
Sorry for my English, I'm Spanish, If the answer is in Spanish it will be better. :)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 8/21/13, 5:40 AM|
|Seen: 1628 times|
|Last updated: 3/16/15, 8:10 AM|