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

 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.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất
It is working now, I made mistake on the xpath.








Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 22
17910
3
thg 4 22
10334
0
thg 8 18
2832
0
thg 5 18
3096
1
thg 5 20
3689