Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6065 มุมมอง

 Hello, how is it possible to inherit and  add new custom filters on dynamic finance reports on enterprise version.

ex-In Profit and Loss  report currently there are filters like last month last quarter etc ,which is different from other search filters in tree and pivot views, Can anyone explain how to proceed particularly inheriting the search_template and adding new filter?



<odoo>
   <data>

<template id="report_account_reports_filter_inherit" inherit_id="account_reports.search_template_date_filter">
   

<xpath expr="//ul[@t-if='options['date'].get('date')']" position="after">
    <li title="End of Last Quarter" data-filter="last_quarter" class="js_account_report_date_filter"><a>End of Last Quarter year</a></li>
    </xpath>

</template>

    </data>

</odoo>


This is the code which i tried but got an error invalid predicate.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด
It is working now, I made mistake on the xpath.








อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

https://apps.odoo.com/apps/modules/18.0/odoo_accounting_filters

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 22
17948
3
เม.ย. 22
10364
0
ส.ค. 18
2859
0
พ.ค. 18
3113
1
พ.ค. 20
3731