Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1617 Lượt xem

Hello

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

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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>

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 22
2889
0
thg 3 15
3829
1
thg 2 24
1618
2
thg 1 24
5966
0
thg 3 15
5582