changeset f751de8173d1 in trytond:4.8
details: https://hg.tryton.org/trytond?cmd=changeset;node=f751de8173d1
description:
        Always update ir.model.data if the filesystem value is different

        We must compare against the filesystem value instead of the old value 
because
        it is the actual target.

        issue8353
        review261471002
        (grafted from 71187a2c37b6a377d5464db9218e58cf920e91b1)
diffstat:

 trytond/convert.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 494282634672 -r f751de8173d1 trytond/convert.py
--- a/trytond/convert.py        Mon Apr 22 10:24:09 2019 +0200
+++ b/trytond/convert.py        Wed May 22 18:29:04 2019 +0200
@@ -765,7 +765,7 @@
             temp_values.update(values)
             values = temp_values
 
-            if values != old_values:
+            if values != fs_values:
                 self.grouped_model_data.extend(([self.ModelData(mdata_id)], {
                             'fs_id': fs_id,
                             'model': model,

Reply via email to