Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3679 Lượt xem


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)

 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 20
6980
0
thg 12 24
1445
1
thg 3 24
2482
1
thg 6 23
12492
2
thg 3 23
10176