Skip to Content
Menu
This question has been flagged
1 Reply
2557 Views

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?

Avatar
Discard
Best Answer

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'


Avatar
Discard