What's the method that triggers once import/export button is clicked?
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
3978
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
3
Jul 23
|
24341 | ||
|
2
Jun 22
|
4593 | ||
|
2
Sep 21
|
3480 | ||
|
1
Nov 20
|
6784 | ||
|
2
Mar 19
|
4977 |