Hello Everyone!
How can I modify or extend the POS module to download POS daily sales report in xlsx, csv instead of pdf.
Thanks in advance!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
For this You need to modify the below js function, this function is in closing_popup.js
downloadSalesReport
I was able to locate closing_popup.js at: \addons\point_of_sale\static\src\app\navbar\closing_popup.js\closing_popup.js
but I don't think that's the file, I previuosly modified report_userlabel.xml and report_sale_details.py to get some custom field and it worked. Can you provide the details on what to add to the closing_popup.js?
In the closing pop up file there is a function named downloadsalereport inside that a report is called that report is used to download that as pdf
what you need to do is create a report for both xlsx and csv then inherit downloadsalereport this function and chage the function to download either csv or xlsx
on the other hand hide the pdf download button and add two new buttons for csv and xlsx on the onclick function navigate to respective created reports
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ść | |
---|---|---|---|---|
PDF reports
Rozwiązane
|
|
5
lip 25
|
2194 | |
Wrong PDF Format
Rozwiązane
|
|
2
mar 24
|
2721 | |
|
0
lis 22
|
2947 | ||
|
0
wrz 17
|
5259 | ||
|
0
mar 15
|
3634 |