Hello
I want to hide lines from sale order report (PDF)
Especially lines with ) quantity, is there any way i can do so?
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>
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
0
มี.ค. 15
|
5149 | |||
|
2
พ.ค. 26
|
774 | |||
|
0
ต.ค. 22
|
4622 | |||
|
1
ก.พ. 24
|
3061 | |||
|
[SOLVED] Generate empty PDF in Odoo 16
แก้ไขแล้ว
|
2
ม.ค. 24
|
8428 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.