Hello,
I want to add a filter for the POS product category in the report in pivot view. How can I achieve that?
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
I want to add a filter for the POS product category in the report in pivot view. How can I achieve that?
Thanks.
Hi
Try the following method,
Inherit the Existing Search View
You’ll need to locate the original search view, usually named something like view_report_pos_order_filter.
Then, inherit it and add a custom filter for product_categ_id like this:
<record id="view_report_pos_order_filter_inherit" model="ir.ui.view">
<field name="name">report.pos.order.filter.inherit</field>
<field name="model">report.pos.order</field>
<field name="inherit_id" ref="point_of_sale.view_report_pos_order_filter"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='product']" position="after">
<filter name="product_categ" string="Product Category"
context="{'group_by': 'product_categ_id'}"/>
</xpath>
</field>
</record>
Hope it helps
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
2
ส.ค. 24
|
1520 | ||
|
2
ส.ค. 20
|
7353 | ||
|
1
ม.ค. 20
|
4898 | ||
|
0
เม.ย. 17
|
2684 | ||
|
0
ม.ค. 17
|
4231 |