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
- Бухоблік
- Склад
- PoS
- Проект
- MRP
Це запитання позначене
1
Відповісти
5046
Переглядів
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!
Реєстрація| Related Posts | Відповіді | Переглядів | Дія | |
|---|---|---|---|---|
|
|
3
лип. 23
|
28805 | ||
|
|
2
черв. 22
|
6446 | ||
|
|
2
вер. 21
|
5693 | ||
|
|
1
лист. 20
|
9030 | ||
|
|
2
бер. 19
|
6811 |