Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: [Odoo CE 17.0] Help needed with client search on budgets
Re: [Odoo CE 17.0] Help needed with client search on budgets
Re: [Odoo CE 17.0] Help needed with client search on budgets
by
Jose Luis Baños Consulting, S.L.U., Alejandro Párraga Alcázar
Hello Francesco,
I have read your message, and I thank you for answering my problem. The thing is: I would need to be specified how to extend the method you mentioned (_compute_display_name()) so I can achieve my search display modification for budgets.
El 19/11/2024 11:02 CET Francesco Ballerini <notifications@odoo-community.org> escribió:Hi,I think you can achieve your goal by extending in your model the ORM method _compute_display_name which allows you to choose how the name will be represented when searching for a record. It should also affect the record visualization once selected.Note that if this requirement should apply to only specific views you could add a context attribute (e.g. context="{'show_x_cliente_interno: True'}" ) to the XML definition of the field node, it will be propagated to the _compute_display_name() method when searching on that field so you can choose whether or not show the client reference before the record name.Feel free to ask again if you need more specific information on how to properly extend method _compute_display_name() or adding context to the field node.Regards--Francesco
Il giorno mar 19 nov 2024 alle ore 10:23 Redes Sociales JLBBERP <notifications@odoo-community.org> ha scritto:Hello everyone,I am writing this message because I need assistance with modifying how searching a client while doing a budget works.What I am trying to do is, instead of searching just by the name, I want it to work like the following: I made a custom field called "x_cliente_interno", which is a number to identify the client, and I would like to make the search work like how product search works: If you write either the product's ID or the product's name, it will show you both fields merged from the data you wrote. Something like this:And when you select it, it shows the data like this:To sum up, what I am trying to do is that when you search a client, the search shows you the field "x_cliente_interno" behind the client name, like this: "[x_cliente_interno] client name" and it should also stay like in the second image when selected.Thanks in advance for the help._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
Reference
-
[Odoo CE 17.0] Help needed with client search on budgets
byJose Luis Baños Consulting, S.L.U., Alejandro Párraga Alcázar-
Re: [Odoo CE 17.0] Help needed with client search on budgets
byFrancesco Ballerini -
Re: [Odoo CE 17.0] Help needed with client search on budgets
byJose Luis Baños Consulting, S.L.U., Alejandro Párraga Alcázar -
Re: [Odoo CE 17.0] Help needed with client search on budgets
byJose Luis Baños Consulting, S.L.U., Alejandro Párraga Alcázar -
Re: [Odoo CE 17.0] Help needed with client search on budgets
byHolger Brunn -
Re: [Odoo CE 17.0] Help needed with client search on budgets
byFrancesco Ballerini -
Re: [Odoo CE 17.0] Help needed with client search on budgets
byClosingAp Open Source Integrators Europe, LDA, Daniel Reis -
Re: [Odoo CE 17.0] Help needed with client search on budgets
byFrancesco Ballerini -
Re: [Odoo CE 17.0] Help needed with client search on budgets
byMoaHub, Graeme Gellatly -
Re: [Odoo CE 17.0] Help needed with client search on budgets
byIntero Technologies GmbH, C. Zoellner
-