[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#118278 X-original-commit: 4e309ce5eae282fd28e77bf46d3fdf6bb91bd92b Signed-off-by: Guillaume Merlin (megu) <megu@odoo.com>
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<field name="copied" position="after">
|
||||
<field name="state" invisible="1"/>
|
||||
<field name="tracking" attrs="{'readonly': [('state','!=', 'manual')]}"/>
|
||||
<field name="tracking" attrs="{'invisible': [('ttype', '=', 'binary')], 'readonly': [('state','!=', 'manual')]}"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user