Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to use task_id selector in timesheet

By
wizardz
on 6/24/16, 6:27 AM 222 views

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. 



Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/24/16, 6:27 AM
Seen: 222 times
Last updated: 6/24/16, 6:29 AM