user_id = fields.Many2one('hr.employee', string='Employee', default=lambda self: self.env.user, tracking=True)i did not delet any record and its working on local but when i create create record on testing instance it give me above error.
user_id = fields.Many2one('hr.employee', string='Employee', default=lambda self: self.env.user, tracking=True)i did not delet any record and its working on local but when i create create record on testing instance it give me above error.
Hello your field definition model is hr.employee while you have default=lambda self: self.env.user, i think this is not true at all
user_id = fields.Many2one('res.users', string='Employee', default=lambda self: self.env.user, tracking=True)change model 'hr.employee' to 'res.users'., it will be work.
Thanks
Create an account today to enjoy exclusive features and engage with our awesome community!
साइन अप करें| Related Posts | Replies | डेटा देखने का तरीका | ऐक्टिविटी | |
|---|---|---|---|---|
|
1
दिस॰ 25
|
2125 | |||
|
2
फ़र॰ 21
|
9730 | |||
|
1
मार्च 24
|
3723 | |||
|
How can I recover ownership?
Solved
|
1
फ़र॰ 23
|
4048 | ||
|
Odoo database failed
Solved
|
1
दिस॰ 22
|
14410 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.