Odoo Help

Welcome!

This community 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.

0

Method for changing search criterias

By
David Verove
on 6/9/14, 12:04 PM 651 views

Hello,

I have created a new class containing 2 fields and which is likned to res.partner. I have added a list in client screen to select a value from this new class.  

In this list, I can see the first records from the table, and the option "Search more" and "Create/Update".

When I use "Search more", a window opens with all the records from the new table. My problem is I'd like to add a new column on this list.

Do I have to change an ORM method? Which one?

Thanks,

0
David Verove
On 6/23/14, 8:39 AM

Thanks for the response.

When opening the search more screen, I can't access the debug list which is in back, the window is open as modal (same behavior than creating a new civility in the client screen)

0

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 6/17/14, 5:20 AM

I don't think you need to alter any ORM method. I would go by doing this:

  • Set Odoo to debug mode in the client. 
  • Open the "search more" screen you want to alter
  • Using the debug-mode find the view that has been opened
  • Inherit that (xml-)view in your own module and add the column

This should give you the new view using the extra column.

Your 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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/9/14, 12:04 PM
Seen: 651 times
Last updated: 3/16/15, 8:10 AM