In the standard view of partner, if this one is a company, there is a tab at the bottom called Contacts, which shows every partner (person) working for that partner (company). If you click on the name of the person, their information is shown in a popup.
I would like to change that behaviour and show their information through the standard view of partner, in spite of a popup. Just like property_account_receivable and property_account_payable fields do with their corresponding accounts (Those fields are also in the standard view of partner, but inside the Accountancy tab).
So I want to change this line of base.view_partner_form:
<a type="open"><field name="name"/></a>
To link it to base.view_partner_form, with the ID of the corresponding partner (person). Any idea? It is driving me crazy! I tried everything!
You can turn this one2many list into the ordinalry list view first (you'll need to inherit "base.view_partner_form" in XML and so on...), then you can add to that list a button (will be added to each row) and corresponding row will be opened by click on the button, in the same window as you want. Please refer to this answer.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 10/6/14, 7:57 AM|
|Seen: 712 times|
|Last updated: 3/16/15, 8:10 AM|