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

when I try to return to the timesheet, activitys in this model: account.analytic.line and view_id: hr_timesheet.hr_timesheet_line_tree

I get an error.

If I try it like this: I get on an other account.analytic.line from analytic.view_account_analytic_line_tree

why?

And What I need to put in this account_id to create a new data in the timesheet activitys?

            self.env['account.analytic.line'].create({

'account_id': self.task_field.id,

'name': "Your Description",

})                     return {

'type': 'ir.actions.act_window',
'res_model': 'account.analytic.line',
'view_type': 'form',
'view_mode': 'tree,form',
#'view_id': 'hr_timesheet.hr_timesheet_line_tree',
}

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I have replied to your previous question, you can check there!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 16
3430
2
thg 9 15
6340
0
thg 5 25
826
2
thg 5 25
2838
1
thg 4 25
948