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. :)