- Mailing Lists
- Contributors
- New module for uuid fields
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
OWL Trainers Wanted (RFQ Deadline 17th April) by the OCA and AEOdoo
A bit of marketing: LinkedIn Banners for OCA contributors/members/delegates...
New module for uuid fields
Hello everyone,
I am currently working on a project where I wanted to use the native postgres type uuid, instead of storing the uuids in plain char fields. Since such a field does not seem to be available in Odoo yet, I threw together a very simple module: https://github.com/mkoeck/base-uuid-field/
Since I saw that there are some existing OCA modules using uuid’s (but storing them in plain char fields), I thought this module might also be interesting to others. I would be happy to integrate this into an existing OCA repo, if someone guides me what the best direction for this would be.
Do note, that I am quite the novice with JS / owl, so any feedback, but especially on that is appreciated J
Best regards,
Michael
by mkoeck - 01:15 - 1 Apr 2025
Follow-Ups
-
AW: New module for uuid fields
Yes, for sure in most cases you will set the field to be readonly. Still using a native uuid type over a char type can have various benefits. I am certainly not an expert but you can refer to this stackoverflow post, why you would want to use a uuid field over a char field even if only for display reasons: https://stackoverflow.com/questions/32189129/performance-difference-between-uuid-char-and-varchar-in-postgresql-table
Von: Vincent Hatakeyama [mailto:notifications@odoo-community.org]
Gesendet: Mittwoch, 2. April 2025 11:58
An: Contributors
Betreff: Re: New module for uuid fieldsHi,
I’ve had the need to use an uuid column in the past. The column was not meant to be filled by users. The table was built manually and a Char field was used to display the content.
The code can be viewed at https://orus.io/xcg/odoo-modules/xbus_common/-/blob/branch/18.0/models/xbus_message.py?ref_type=heads#L94
I believe the server-tools repository is the place to put a module adding UUID fields.
Regards,
--
Vincent Hatakeyama
Directeur du pôle développement " Orbeet

+33 1 83 62 72 88


27, boulevard Saint-Martin
75003 Paris
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by mkoeck - 12:25 - 2 Apr 2025 -
Re: New module for uuid fields
Hi,I’ve had the need to use an uuid column in the past. The column was not meant to be filled by users. The table was built manually and a Char field was used to display the content.The code can be viewed at https://orus.io/xcg/odoo-modules/xbus_common/-/blob/branch/18.0/models/xbus_message.py?ref_type=heads#L94I believe the server-tools repository is the place to put a module adding UUID fields.--Regards,Vincent Hatakeyama Directeur du pôle développement " Orbeet
+33 1 83 62 72 88
vincent.hatakeyama@orbeet.io
27, boulevard Saint-Martin
75003 Paris
https://orbeet.io
by "Vincent Hatakeyama" <vincent.hatakeyama@orbeet.io> - 11:56 - 2 Apr 2025 -
AW: New module for uuid fields
Ah yes, sorry forgot to make the repo public. Should work now!
Von: friedrich.sauer@servicum.com [mailto:notifications@odoo-community.org]
Gesendet: Dienstag, 1. April 2025 16:13
An: Contributors
Betreff: AW: New module for uuid fieldsHi Michael,
this sounds interesting to me! Unfortunately, I can't access the repo.
Can you share it?
Best,
Friedrich
Email: friedrich.sauer@servicum.com
Phone: 01721324603
Von: Elektro-Shop Köck GmbH - Michael Köck
Gesendet: Dienstag, 01. April 2025 13:17
Bis: Contributors
Betreff: New module for uuid fieldsHello everyone,
I am currently working on a project where I wanted to use the native postgres type uuid, instead of storing the uuids in plain char fields. Since such a field does not seem to be available in Odoo yet, I threw together a very simple module: https://github.com/mkoeck/base-uuid-field/
Since I saw that there are some existing OCA modules using uuid’s (but storing them in plain char fields), I thought this module might also be interesting to others. I would be happy to integrate this into an existing OCA repo, if someone guides me what the best direction for this would be.
Do note, that I am quite the novice with JS / owl, so any feedback, but especially on that is appreciated J
Best regards,
Michael
_______________________________________________
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 mkoeck - 05:11 - 1 Apr 2025 -
AW: New module for uuid fields
Hi Michael,this sounds interesting to me! Unfortunately, I can't access the repo.Can you share it?
Best,Friedrich
Email: friedrich.sauer@servicum.comPhone: 01721324603
Von: Elektro-Shop Köck GmbH - Michael Köck
Gesendet: Dienstag, 01. April 2025 13:17
Bis: Contributors
Betreff: New module for uuid fields
Hello everyone,
I am currently working on a project where I wanted to use the native postgres type uuid, instead of storing the uuids in plain char fields. Since such a field does not seem to be available in Odoo yet, I threw together a very simple module: https://github.com/mkoeck/base-uuid-field/
Since I saw that there are some existing OCA modules using uuid’s (but storing them in plain char fields), I thought this module might also be interesting to others. I would be happy to integrate this into an existing OCA repo, if someone guides me what the best direction for this would be.
Do note, that I am quite the novice with JS / owl, so any feedback, but especially on that is appreciated J
Best regards,
Michael
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Friedrich Sauer - 04:11 - 1 Apr 2025