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
- Księgowość
- Zapasy
- PoS
- Projekt
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
5042
Widoki
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
3
lip 23
|
28794 | ||
|
|
2
cze 22
|
6439 | ||
|
|
2
wrz 21
|
5686 | ||
|
|
1
lis 20
|
9022 | ||
|
|
2
mar 19
|
6805 |