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
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
1
Beantwoorden
5041
Weergaven
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
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
|
3
jul. 23
|
28794 | ||
|
|
2
jun. 22
|
6439 | ||
|
|
2
sep. 21
|
5686 | ||
|
|
1
nov. 20
|
9022 | ||
|
|
2
mrt. 19
|
6805 |