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 a controller in odoo 10 like this
@http.route('/open_res_partner_form_view', auth= "public", csrf= False, type= "http")i want to achive this action, whenever this controller is called, it should populate res.partner form of partner id 18(some existing partner_id) to user_id 1 (to administrator)
def open_res_partner_form_view(self, **kwargs):
user_id= 1 #in odoo user_id 1 is for administrator
'views': [(self.env.ref('base.view_partner_form').id, 'form')],
'res_id': 18, #assume 18 is some partner_id in odoo
Is there any way to achieve this?
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: 11/30/16, 9:43 AM|
|Seen: 349 times|
|Last updated: 11/30/16, 10:06 AM|