Tryton - Issues

 

Issue8040

Title Allow to extend Field string and help
Priority feature Status resolved
Superseder Nosy List ced, reviewbot, roundup-bot
Type feature request Components trytond
Assigned To ced Keywords review
Reviews 46731002,68451002
View: 46731002, 68451002

Created on 2019-01-24.18:33:23 by ced, last changed by roundup-bot.

Messages
New changeset c99aaf0f5647 by Cédric Krier in branch 'default':
Do not fail on importing string tools if missing python-Levenshtein
https://hg.tryton.org/tryton-env/rev/c99aaf0f5647
New changeset 50a3da2deefd by Cédric Krier in branch 'default':
Do not fail on importing string tools if missing python-Levenshtein
https://hg.tryton.org/trytond/rev/50a3da2deefd
New changeset 21e0b50a32e8 by Cédric Krier in branch 'default':
Allow to extend Field string and help
https://hg.tryton.org/tryton-env/rev/21e0b50a32e8
New changeset 11e271457e30 by Cédric Krier in branch 'default':
Allow to extend Field string and help
https://hg.tryton.org/trytond/rev/11e271457e30
New changeset 38b75a9f309e by Cédric Krier in branch 'default':
Add parent_unit_price to help field of formula
https://hg.tryton.org/modules/product_price_list_parent/rev/38b75a9f309e
review46731002 updated at https://codereview.tryton.org/46731002/#ps271081002
review46731002 updated at https://codereview.tryton.org/46731002/#ps20001
review68451002 updated at https://codereview.tryton.org/68451002/#ps1
review46731002 updated at https://codereview.tryton.org/46731002/#ps1
msg46231 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-01-24.18:33:23
In some cases, we need to update to the string or help text of a field (ex: msg41279).
My idea is the use a specialized sub-class of str which can remember how it was constructed. In this case we can create an ir.translation record for each part of the string. And to get the translated version, it is recomposed from translated parts.
The only drawback is that such composition may not follow the language structure. But I'm not sure such language exists.
History
Date User Action Args
2019-03-15 13:37:46roundup-botsetmessages: + msg47630
2019-03-15 13:37:41roundup-botsetmessages: + msg47629
2019-03-15 13:02:48roundup-botsetmessages: + msg47628
2019-03-15 13:02:44roundup-botsetmessages: + msg47627
2019-03-15 13:02:40roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg47626
2019-03-09 15:47:33reviewbotsetmessages: + msg47526
2019-01-24 21:39:42reviewbotsetmessages: + msg46239
2019-01-24 19:38:34reviewbotsetmessages: + msg46234
2019-01-24 19:38:07reviewbotsetnosy: + reviewbot
messages: + msg46233
2019-01-24 19:13:13cedsetreviews: 46731002 -> 46731002,68451002

Showing 10 items. Show all history (warning: this could be VERY long)