Hi,
I would like to create a modal with two buttons within the account.move model. I have already inherited the model and added a custom button.
Now, my goal is to open a modal that includes a title, some text, and two buttons that perform simple actions.
Inside my model py
i have something like this
def open_custom_modal(self):
return {
'type': 'ir.actions.client',
'target': 'new',
'tag': 'custom_modal',
'params': {
'title': 'Important Message',
'body': 'This is an important message that needs to be displayed to the user.',
},
}
What i'm doing wrong?