am trying to trickle up the "Note" module with the Contacts and for that I have created a xml file which have a button box just like "Opportunities/SalesOrder/Meeting" in "Contacts" form view.
Here is my Code
<record id="res_partner_view_button" model="ir.ui.view">
<field name="name">res.partner.view.buttons</field
<field name="model">res.partner</field
<field name="inherit_id" ref="base.view_partner_form"></field
<field name="priority" eval="20"/>
<field name="arch" type="xml"/>
<div name="button_box" position="inside">
<button class="oe_stat button" type="action" name="%(note.action_note_note)d" attrs="{'invisible':[('customer','=',False)]}"
<field string="Notes" name="x_note_count" widgrt="statinfo"/>
</div>
If I click onto my button box which is Called "Notes" it'll redirect me to the "Notes" kanban view,Which is fine for me.
But now I want exactly the same thing like "Sales/Opportunities". Eg:- If I click onto the "Notes" button from one particular Contact("ABC Company") it'll show me the list of Notes of "ABC Company" or that Particular Contact.