Hii,
How can i delete the record in odoo17 i tried with
thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hii,
How can i delete the record in odoo17 i tried with
thanks
Hi,
If you need to delete a record you can make it from the UI itself.Select the record -> Action -> delete
Hope it helps
Hi,
You cannot delete a record from XML.
Python Code to delete a record:
// for deleting record from own model
def delete_own_record(self):
for record in self:
record.unlink()
// for deleting record from another model
def delete_another_record(self):
record = self.env['custom.model.name'].search([domain], limit=1)
record.unlink()
Hope this helps!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
Please recheck your post and update the question with more information