Odoo Help


Model Button (next To Create)

Dustin Blad
on 6/16/15, 6:29 PM 539 views

I'm looking to create a button to trigger an action or function. The button would be located next to the 'Create or Import' buttons in the salesmen model. That function would then pull information from an external mongodb which would then populate the salesmen model. Any thoughts on where to get started?

class salesmen(models.Model):

_name = 'model.salesmen'

name = fields.Char(string="Salesman Name", required=True, index=True, help="Salesman Name")

dealership_id = fields.Many2one(dealerships', ondelete='cascade', string="Dealership", required=True)


Your Answer

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

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/16/15, 6:29 PM
Seen: 539 times
Last updated: 6/16/15, 6:29 PM