Tryton - Issues

 

Issue8402

Title Improve design of title and description handling on ir.model and ir.model.field
Priority feature Status in-progress
Superseder Nosy List Timitos, ced, reviewbot
Type Components trytond
Assigned To Timitos Keywords review
Reviews 249431005
View: 249431005

Created on 2019-06-05.15:53:55 by Timitos, last changed by ced.

Messages
review249431005 updated at https://codereview.tryton.org/249431005/#ps271511010
msg50092 (view) Author: [hidden] (Timitos) (Tryton translator) Date: 2019-06-05.18:38:20
I just uploaded a patch for trytond. Until everything is clear there i will start to work on the modules.
msg50076 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-06-05.16:57:17
I do not think ir.model.field should be changed , we already have the label and the help.
msg50068 (view) Author: [hidden] (Timitos) (Tryton translator) Date: 2019-06-05.16:25:32
After talking with Cedric we decided to change the design.

The new design will look like the following:

Model ir.model:
 * New variable __title__ for the model title (currently the first line of the docstring)
 * New variable __description__ for the model description (currently the docstring)

Model ir.model.field:
 * New variable __title__ for the field title (currently the first line of the docstring)
 * New variable __description __ for the field description (currently the docstring)
review249441003 updated at https://codereview.tryton.org/249441003/#ps281621002
msg50061 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-06-05.16:07:51
I'm not sure we should continue with this design. The fact that trytond relies on docstring is a problem to run it with -O2. Also the docstring are not extendable by modules. So for me, the data to fill ir.model should be rethought.
msg50060 (view) Author: [hidden] (Timitos) (Tryton translator) Date: 2019-06-05.15:53:54
The content of this field could be used when creating meta data for exports. So it would be great if the information can be provided in different languages.
History
Date User Action Args
2019-06-17 22:07:57cedsetreviews: 249441003,249431005 -> 249431005
2019-06-05 18:53:48reviewbotsetmessages: + msg50099
2019-06-05 18:38:20Timitossetreviews: 249441003 -> 249441003,249431005
messages: + msg50092
2019-06-05 16:57:17cedsetmessages: + msg50076
2019-06-05 16:25:33Timitossetmessages: + msg50068
title: Make field info of model ir.model translatable -> Improve design of title and description handling on ir.model and ir.model.field
2019-06-05 16:13:22reviewbotsetnosy: + reviewbot
messages: + msg50063
2019-06-05 16:07:51cedsetnosy: + ced
messages: + msg50061
2019-06-05 15:55:25Timitossetreviews: 249441003
keyword: + review
2019-06-05 15:54:01Timitossetstatus: unread -> in-progress
2019-06-05 15:53:55Timitoscreate

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