Skip to Content
Menú
This question has been flagged
3619 Vistes


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)

 

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de juny 20
6825
0
de des. 24
1328
1
de març 24
2381
1
de juny 23
12405
2
de març 23
9982