Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
1633 Näkymät

Hello

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

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


Avatar
Hylkää
Paras vastaus

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
Hylkää

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>

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
lokak. 22
2901
0
maalisk. 15
3833
1
helmik. 24
1628
2
tammik. 24
5976
0
maalisk. 15
5591