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.
I have this situation in Odoo 8:
odoo_partner_id: fields.many2one('res.partner', 'Contact from outside')
I need put a button on my "x.form.view" to call a res.partners list on wizard.
That wizard must be filtered by possible options of my res.partners with
['name, 'like', same customer_name] or ['email' , 'like', 'customer_email' ],
and give me the option so select what i want and complete x.odoo_partner_id field,
If don't exist any partners with that condition create a new one.
I really don't know odoo enough. Was really simple, I just have to return an 'ir.actions.act_window' with a domain:
'domain': "[('phone','=', '"+self.browse(cr, uid, ids).telephone +"'),('is_company','=', False)]",
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: 9/1/17, 11:41 AM|
|Seen: 222 times|
|Last updated: 10/12/17, 2:21 PM|