Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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. :)
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/21/13, 5:40 AM|
|Seen: 2177 times|
|Last updated: 3/16/15, 8:10 AM|