Hi,
I am trying to add a pivot view in contacts, i can't find the correct inherit_id fo it. Any one have done this ? Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
Thanks for the Answer the above code worked!!
Hello Guhan Dhamodiraswamy
Hope you are doing well.
First, we have to inherit the current action of 'Contact' and add 'pivot' name in that.
Example: 1
// Code in Comment
Also after adding name of view, We have to create pivot view and pass some fields to render.
Example: 2
// Code in Comment
Please reach out to us if any queries.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Example: 1
<record id="contacts.action_contacts" model="ir.actions.act_window">
<field name="view_mode">kanban,tree,form,activity,pivot</field>
</record>
Example: 2
<record id="res_partner_view_pivot" model="ir.ui.view">
<field name="name">res.partner.view.pivot</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<pivot string="New Pivot Res partner" sample="1">
<field name="phone" widget="phone"/>
<field name="mobile" widget="phone"/>
<field name="user_ids" invisible="1"/>
</pivot>
</field>
</record>
Hi,
You can refer to the following module for creating a custom pivot report for any model:
https://apps.odoo.com/apps/modules/17.0/custom_pivot_report
Hope it helps
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
2
يونيو 21
|
4020 | ||
|
1
نوفمبر 24
|
1708 | ||
|
5
يوليو 24
|
93122 | ||
|
1
ديسمبر 23
|
3103 | ||
|
1
مايو 22
|
3769 |
Hi, I am trying to do the same. I want to add a pivot view so that i can better analyse my contacts without adding a menuitem or any python code.
How is this possible?
Help much appreciated!
-Friedrich