Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1576 Weergaven

Hello

I want to hide lines from sale order report (PDF)

Especially lines with ) quantity, is there any way i can do so?


Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer

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>

Gerelateerde posts Antwoorden Weergaven Activiteit
0
okt. 22
2847
0
mrt. 15
3749
1
feb. 24
1559
2
jan. 24
5883
0
mrt. 15
5535