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
- MRP
This question has been flagged
1
Reply
5038
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 up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
3
Jul 23
|
28790 | ||
|
|
2
Jun 22
|
6424 | ||
|
|
2
Sep 21
|
5685 | ||
|
|
1
Nov 20
|
9019 | ||
|
|
2
Mar 19
|
6778 |