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

I have a field 

'task_field': fields.many2one('project.task', 'task_id', required=True),

This is in the hr_timesheet_sheet.sheet model.

How can I use this input with the same task_id as I have when I go in a real task in projects.

I need something like this : task_id = self.id , task_field = self.id


I want to make a button in the hr_timesheet_sheet.sheet model, that creates me a time-record in the task that I selected in this task_field field in work_ids, every time the button is clicked in hr_timesheet_sheet.sheet. 



Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 20
4902
3
thg 4 16
17489
3
thg 8 15
8129
3
thg 3 15
4983
0
thg 3 24
1585