Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3643 Prikazi


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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
jun. 20
6895
0
dec. 24
1382
1
mar. 24
2433
1
jun. 23
12445
2
mar. 23
10044