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

What's the method that triggers once import/export button is clicked?

Avatar
Discard
Best Answer

Hi Giezel,


The export function is named export_data. You can find the original function from Odoo itself at https://github.com/odoo/odoo/blob/10.0/odoo/models.py#L825-L837. If you inherit it with a super you can add your own logic to it. Your code should look something like this:

@api.multi
def your_export_function(self):
export_data = super(yourclass, self).export_data(self)
# your own logic here
return export_data
Avatar
Discard
Related Posts Replies Views Activity
3
Jul 23
24341
2
Jun 22
4593
2
Sep 21
3480
1
Nov 20
6784
2
Mar 19
4977