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

odoo9 function return gives error with view_id

By
wizardz
on 8/9/16, 9:53 AM 209 views

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',
}

1

Pawan

--Pawan--
1267
| 4 3 5
Hyderabad, India
--Pawan--


Pawan
On 8/10/16, 8:44 AM

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

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: 8/9/16, 9:53 AM
Seen: 209 times
Last updated: 8/10/16, 9:11 AM