Se rendre au contenu
Menu
Cette question a été signalée
3617 Vues


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
Ignorer
Publications associées Réponses Vues Activité
0
juin 20
6818
0
déc. 24
1325
1
mars 24
2380
1
juin 23
12401
2
mars 23
9981