Hello
I want to hide lines from sale order report (PDF)
Especially lines with ) quantity, is there any way i can do so?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello
I want to hide lines from sale order report (PDF)
Especially lines with ) quantity, is there any way i can do so?
Hello @Touda OURBAA
Hope you are doing well.
- Please use the code below to hide the lines in the sale order report that have zero quantity.
Please find code in comment.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Please find code here :-
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="report_saleorder_document_inherited" inherit_id="sale.report_saleorder_document">
<xpath expr="//t[@t-foreach='lines_to_report']" position="attributes">
<attribute name="t-foreach">lines_to_report.filtered(lambda sol: sol.product_uom_qty != 0)</attribute>
</xpath>
</template>
</data>
</odoo>
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ść | |
---|---|---|---|---|
|
0
paź 22
|
2820 | ||
|
0
mar 15
|
3727 | ||
|
1
lut 24
|
1524 | ||
[SOLVED] Generate empty PDF in Odoo 16
Rozwiązane
|
|
2
sty 24
|
5827 | |
|
0
mar 15
|
5517 |