Skip to content

Commit

Permalink
fixup! [10.0] Improving the mail tracking value
Browse files Browse the repository at this point in the history
  • Loading branch information
TDu committed Mar 29, 2018
1 parent 40796ba commit 1668d07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mail_improved_tracking_value/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This module extends the mail_tracking_value functionality that records
value changes on predefined fields.
It adds support for many2many and one2many fields, which are not handled
well by default.
It implements as well a new view (little bit more user friendly than the
It also implements a new view (little bit more user friendly than the
existing one) to watch for changes

Installation
Expand Down Expand Up @@ -38,6 +38,7 @@ To access the new view displaying value changes :
Known issues / Roadmap
======================

* Improve rendering of values depending of type using qweb widgets

Bug Tracker
===========
Expand Down
1 change: 1 addition & 0 deletions mail_improved_tracking_value/models/mail_tracking_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class MailTrackingValue(models.Model):
'old_value_text', 'old_value_datetime', 'old_value_monetary')
def _compute_formatted_value(self):
""" Sets the value formatted field used in the view """
# Could be improved, by styling in the view depending of type of field
for record in self:
if record.field_type in ('many2many', 'one2many', 'char'):
record.new_value_formatted = record.new_value_char
Expand Down

0 comments on commit 1668d07

Please sign in to comment.