Hi all developer, my problem is when I create records in class that inherit with calendar.event , sometimes I can edit that record but some time I got message error as "Record does not exist or has been deleted." I dont know how to fix it because it is not show error in log , any help plz?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
This error raise when you are trying to access ID(record) of table which not exist in databse. You need to check in code if you are updating or deleting a records ID wrongly.
HI Ajeet Yadav,I note that when I am raise error alot of time , then I create new ID I see it was create but cannot edit . When edit I see error "Record does not exist or has been deleted"
Hi,
Did you set any default value for the field in the corresponding model ? User can set default values for the field from the user interface by activating the developer mode.
If if you take the case of the Sale Order, if you set the default customer for the sale order as Joseph and then later if you delete this customer from the database, when u load the Sale Order form again, system will check for the customer Joseph as it is set as default value, so as customer is record is deleted, system will return a message like this "Record does not exist or has been deleted"
Thanks
Thank bro Niyas Raphy
if it is helpful or solved your issue, You can accept and mark answer as solved.
Hi Niyas Raphy, I have one more problem : I note that when I am raise error alot of time , then I create new ID I see it was create but cannot edit . When edit I see error "Record does not exist or has been deleted". Could u help me how to solve it?
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up