コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1605 ビュー

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>

関連投稿 返信 ビュー 活動
0
10月 22
2876
0
3月 15
3826
1
2月 24
1612
2
1月 24
5941
0
3月 15
5564