I added one many2one field in sale order using inheritance . can anyone tell how can i use ondelete="cascade" optional parameter in many2one filed . which are fields i want to change for this ondelete parameter adding?
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
1
Reply
2557
Views
Hello
you can over-right the field
<<field_name>> = fields.Many2one("<<model_name>>", ondelete="cascade")
Just you find which field you have to set ondelete='cascade'
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