Sign in
Try it free
  • Apps
    Websites
    Build great user experience
    • Website Builder
    • eCommerce
    • Blogs
    • Forums
    • Slides
    • Live Chat
    Sales
    Boost your success rate
    • Sales
    • CRM
    • Invoicing
    • Point of Sale
      • Shops
      • Restaurants
      • Hardware
    • Subscriptions
    • Sign
    Operations
    It's all about efficiency
    • Accounting
    • Project
    • Human Resources
      • Recruitment
      • Employees
      • Expenses
      • Appraisal
      • Fleet
      • Leaves
    • Inventory
    • Purchase
    • Manufacturing
      • MRP
      • PLM
      • Maintenance
      • Quality
    • Helpdesk
    Productivity Tools
    Great Tools = Happy People
    • Communication
      • Discuss
      • Mailing Lists
      • Notes
    • Timesheet
    • Email Marketing
    • Events
    • Survey
    • Appointments
    • Marketing Automation
    Third party apps | Odoo Studio | Odoo Cloud Platform NEW
  • Tour
  • Pricing
  • Community
  • Docs

Odoo Help


Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.

Take the tour
Help
  • Trending
  • Newest
  • People
  • Tags
  • Badges
Ask a Question
0

[SOLVED] How to link a field to a specific form?

By
Juan Formoso
on 10/6/14, 7:57 AM • 970 views

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!

  • Flag
  • Reply
  • Comment
  • Share
2

Temur

--Temur--

3107
| 6 5 7
Tbilisi, Georgia
--Temur--
Programmer
Temur
On 10/6/14, 8:34 AM

Hi,

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.

regards,

  • Flag

Wow!! Thank you a lot!!! I was looking for something like this. I replaced that line for this one: But the problem is that I am getting this error now: TypeError: call_button() takes at least 5 arguments (6 given). I do not understand very well what I have to do in the other link, in addition to change the type.

Juan Formoso
on 10/6/14, 9:31 AM

I do not get what you mean: I replaced that line for this one: ..... < ? >

Temur
on 10/6/14, 9:43 AM

I am sorry, I pasted a line with tags and it was removed when I posted the comment. No problem, I have just understood what I had to do and now it is working!!! Thank you so much! Really, a lot!!

Juan Formoso
on 10/6/14, 9:48 AM

You're welcome

Temur
on 10/6/14, 9:56 AM
  • Comment

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

Thanks for your subscription!
3 follower(s)

Stats

Asked: 10/6/14, 7:57 AM
Seen: 970 times
Last updated: 3/16/15, 8:10 AM
Community
  • Github
  • Download
  • Runbot
  • Translations
  • Mailing Lists
  • Forum
Services
  • Odoo Cloud Platform
  • Support
  • Upgrade
  • Find a partner
  • Become a partner
  • Training center
  • Education
  • Security
About us
  • Our company
  • Contact
  • Events
  • Blog
  • Customers
  • Jobs
  • Legal | Privacy
  • English
    • 简体中文
    • Nederlands
    • Français
    • Deutsch
    • Italiano
    • Português (BR)
    • Español

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Live Webinar on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Watch now