Skip to Content
Menu
This question has been flagged
3663 Rodiniai


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)

 

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
birž. 20
6922
0
gruod. 24
1424
1
kov. 24
2456
1
birž. 23
12464
2
kov. 23
10086