Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3790 Tampilan


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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jun 20
7255
0
Des 24
1673
1
Mar 24
2778
1
Jun 23
12758
2
Mar 23
10477