Skip to content
Snippets Groups Projects
Commit 9a49f8e3 authored by MerlinGuillaume's avatar MerlinGuillaume
Browse files

[FIX] mail: disable the tracking of binary fields


Tracked binary fields do not produce any message in the chatter

Steps to reproduce:
1. Install Sales and Studio
2. Open any quotation
3. Trigger Studio and add a signature field to the form
4. With debug mode enabled, edit the field (by clicking on MORE when the
   field is selected) and set the Enable Ordered Tracking to 1
5. Close Studio
6. Edit the signature and save
7. No message appears in the chatter to track the value

Solution:
Remove the `tracking` field from binary fields to prevent the user from
trying to track it

Problem:
We shouldn't track binary data in the chatter and we cannot use the
filenames

opw-3055108
task-3255810

closes odoo/odoo#118221

X-original-commit: 8506b9d6
Signed-off-by: default avatarGuillaume Merlin (megu) <megu@odoo.com>
parent 9482bdb5
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@
<field name="inherit_id" ref="base.view_model_fields_form"/>
<field name="arch" type="xml">
<field name="copied" position="after">
<field name="tracking" attrs="{'readonly': [('state','!=', 'manual')]}"/>
<field name="tracking" attrs="{'invisible': [('ttype', '=', 'binary')], 'readonly': [('state','!=', 'manual')]}"/>
</field>
</field>
</record>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment