Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1592 Представления

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
окт. 22
2863
0
мар. 15
3807
1
февр. 24
1596
2
янв. 24
5918
0
мар. 15
5549