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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
1
Des 25
|
178 | |||
|
2
Feb 21
|
8500 | |||
|
1
Mar 24
|
2527 | |||
|
How can I recover ownership?
Diselesaikan
|
1
Feb 23
|
2833 | ||
|
Odoo database failed
Diselesaikan
|
1
Des 22
|
12781 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.