- Mailing Lists
- Contributors
- Looking for best approach of changing description_sale of product.template from fields.Text to fields.Html
Contributors mailing list archives
contributors@odoo-community.org
Browse archives
- By thread
-
By date
- July 2025 4
- June 2025 72
- May 2025 52
- April 2025 107
- March 2025 96
- February 2025 152
- January 2025 61
- December 2024 89
- November 2024 117
- October 2024 121
- September 2024 62
- August 2024 70
- July 2024 104
- June 2024 160
- May 2024 40
- April 2024 63
- March 2024 104
- February 2024 111
- January 2024 75
- December 2023 46
- November 2023 94
- October 2023 101
- September 2023 91
- August 2023 103
- July 2023 64
- June 2023 92
- May 2023 69
- April 2023 47
- March 2023 106
- February 2023 49
- January 2023 93
- December 2022 50
- November 2022 39
- October 2022 152
- September 2022 73
- August 2022 38
- July 2022 141
- June 2022 87
- May 2022 59
- April 2022 31
- March 2022 68
- February 2022 77
- January 2022 98
- December 2021 75
- November 2021 74
- October 2021 66
- September 2021 68
- August 2021 50
- July 2021 123
- June 2021 86
- May 2021 90
- April 2021 73
- March 2021 146
- February 2021 87
- January 2021 38
- December 2020 159
- November 2020 100
- October 2020 277
- September 2020 193
- August 2020 94
- July 2020 85
- June 2020 158
- May 2020 50
- April 2020 172
- March 2020 121
- February 2020 210
- January 2020 58
- December 2019 35
- November 2019 97
- October 2019 165
- September 2019 118
- August 2019 86
- July 2019 56
- June 2019 124
- May 2019 77
- April 2019 84
- March 2019 64
- February 2019 53
- January 2019 80
- December 2018 64
- November 2018 31
- October 2018 55
- September 2018 69
- August 2018 28
- July 2018 52
- June 2018 34
- May 2018 81
- April 2018 98
- March 2018 47
- February 2018 77
- January 2018 70
- December 2017 64
- November 2017 159
- October 2017 118
- September 2017 161
- August 2017 18
- July 2017 41
- June 2017 56
- May 2017 106
- April 2017 110
- March 2017 112
- February 2017 69
- January 2017 94
- December 2016 115
- November 2016 132
- October 2016 264
- September 2016 124
- August 2016 143
- July 2016 44
- June 2016 137
- May 2016 84
- April 2016 80
- March 2016 130
- February 2016 98
- January 2016 109
- December 2015 140
- November 2015 189
- October 2015 335
- September 2015 136
- August 2015 208
- July 2015 43
- June 2015 64
- May 2015 8
Tests failing - related non dependent modules and bridging module.
Re: New set of module "Requests".
Looking for best approach of changing description_sale of product.template from fields.Text to fields.Html
by
Data Dance s.r.o., Radovan Skolnik
Hello, the users require that products description is at least somewhat "rich" - i.e. allow for some formatting that would be displayed in various places like: quotations, website, ... We already have more than 5000 products. Most of the descriptions were imported, some few hundreds have been manually edited to contain some plain text pseudo formatting. For simplicity we want to keep one description that goes out of company - i.e. quotations, website, ... We are not able to edit all of them at the same time so we need to take iterative approach to this meaning for some (long) time there will be products with plain text descriptions and some already HTML formatted (I plan to ask users to edit them whenever they add them to quotation). However this brings forward another issue: what would be the best approach? Because few issues come to mind: 1) I can either force different widget in product (and other) form(s) or (I guess) it should be possible to re-define the field as HTML. 2) If I just force different widget on forms I need to modify all the web templates that use the field to use t-raw instead of t-field and there is lot of them. It's doable but if I want to keep the changes in one place (module) there would be many dependencies across many modules which I do not consider healthy. 3) I also need to take into consideration that in the process I need to treat descriptions that weren't updated yet - i.e. put <pre> around them to get at least some formatting. Should I detect that in templates or is it possible to write a getter method that would do that automatically? So I would welcome any suggestions here. Which way would you recommend to go here? Thank you very much. Best regards Radovan Skolnik
Follow-Ups
-
Re: Looking for best approach of changing description_sale of product.template from fields.Text to fields.Html
byHunki Enterprises B.V., Holger Brunn -
Re: Looking for best approach of changing description_sale of product.template from fields.Text to fields.Html
byLe Filament, Rémi Cazenave