跳至内容
菜单
此问题已终结
3606 查看


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)

 

形象
丢弃
相关帖文 回复 查看 活动
0
6月 20
6804
0
12月 24
1323
1
3月 24
2367
1
6月 23
12366
2
3月 23
9941