[17.0][OU-IMP] mail: field_desc and field_type to field_info#5106
[17.0][OU-IMP] mail: field_desc and field_type to field_info#5106adasatorres wants to merge 2 commits intoOCA:17.0from
Conversation
c74c3f3 to
31d821c
Compare
rrebollo
left a comment
There was a problem hiding this comment.
Looks good but You need to reflect the changes in the upgrade_analysis_work.txt file. Example: openupgrade_scripts/scripts/website_sale/17.0.1.1/upgrade_analysis_work.txt
Exactly. |
31d821c to
82a73c1
Compare
| NEW res.groups: mail.group_mail_notification_type_inbox (noupdate) | ||
| # NOTHING TO DO | ||
|
|
||
| mail / mail.tracking.value / field_info (jsonb) : NEW isfunction: function, stored |
There was a problem hiding this comment.
you have to do something with lines 170-175.
There was a problem hiding this comment.
@MiquelRForgeFlow Adding the DONE line below line 175 should be enough, right? Also, line 172 has the wrong field type — the field is actually of type jsonb.

There was a problem hiding this comment.
Adding the DONE line below line 175 should be enough, right?
No, because someone looking into this file will get confused, for duplicated/contradictory information. It's better to amend line 175 and explain your approach there.
Also, line 172 has the wrong field type — the field is actually of type jsonb.
Column type is jsonb, but odoo type is json. The same way you see many2one odoo types there instead of int4.
There was a problem hiding this comment.
@adasatorres can you group together the lines and put for all of them the DONE message for continuing with this?
There was a problem hiding this comment.
@pedrobaeza I was also thinking of adding the commit ID to the NOTHING TO DO.
82a73c1 to
f575dcd
Compare
|
Anyway, I'm checking source code, and it seems that part is only filled when a ir.model.fields is removed: but no other reference to that in the rest of tracking references. I have tried to set the value in one message, and I get an error: as Filling that information on a regular tracking value, is not showing nothing extra on the chatter, as On summary, this change is not correct and we can't recreate the information for ir.model.fields unlink trackings, so let's keep it as is. Which thing brought you to this initially? |
|
The migration of project_task_report to version 17.0 is what led me to investigate the mail.tracking.value model. While reviewing the code, I saw that some methods were using that field to store information. I suppose I didn’t review it thoroughly enough — sorry about that. @pedrobaeza |

Possible solution for the following issue #5105 .