- Mailing Lists
- Contributors
- Re: [Odoo CE 17.0] Help needed with client search on budgets
Archives
- By thread 1419
-
By date
- August 2019 59
- September 2019 118
- October 2019 165
- November 2019 97
- December 2019 35
- January 2020 58
- February 2020 204
- March 2020 121
- April 2020 172
- May 2020 50
- June 2020 158
- July 2020 85
- August 2020 94
- September 2020 193
- October 2020 277
- November 2020 100
- December 2020 159
- January 2021 38
- February 2021 87
- March 2021 146
- April 2021 73
- May 2021 90
- June 2021 86
- July 2021 123
- August 2021 50
- September 2021 68
- October 2021 66
- November 2021 74
- December 2021 75
- January 2022 98
- February 2022 77
- March 2022 68
- April 2022 31
- May 2022 59
- June 2022 87
- July 2022 141
- August 2022 38
- September 2022 73
- October 2022 152
- November 2022 39
- December 2022 50
- January 2023 93
- February 2023 49
- March 2023 106
- April 2023 47
- May 2023 69
- June 2023 92
- July 2023 64
- August 2023 103
- September 2023 91
- October 2023 101
- November 2023 94
- December 2023 46
- January 2024 75
- February 2024 79
- March 2024 104
- April 2024 63
- May 2024 40
- June 2024 160
- July 2024 80
- August 2024 70
- September 2024 62
- October 2024 121
- November 2024 117
- December 2024 89
- January 2025 59
- February 2025 104
- March 2025 96
- April 2025 107
- May 2025 52
- June 2025 72
- July 2025 60
- August 2025 81
- September 2025 124
- October 2025 63
- November 2025 22
Contributors
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
Hi,
you can implement the search in Many2one fields of models via adjustments to name_search() or _name_search().
Best Regards
Christian Zöllner
Von: "Redes Sociales JLBBERP" <notifications@odoo-community.org>
An: "Odoo Community Association, (OCA) Contributors" <contributors@odoo-community.org>
Gesendet: Dienstag, 19. November 2024 11:22:43
Betreff: Re: [Odoo CE 17.0] Help needed with client search on budgets
An: "Odoo Community Association, (OCA) Contributors" <contributors@odoo-community.org>
Gesendet: Dienstag, 19. November 2024 11:22:43
Betreff: Re: [Odoo CE 17.0] Help needed with client search on budgets
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
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Christian Zöllner - 11:31 - 19 Nov 2024
Reference
-
[Odoo CE 17.0] Help needed with client search on budgets
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.
by Alejandro Párraga Alcázar - 10:21 - 19 Nov 2024