changeset d1b1b93864d8 in trytond:5.2
details: https://hg.tryton.org/trytond?cmd=changeset;node=d1b1b93864d8
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 cabd58328a68 -r d1b1b93864d8 trytond/convert.py
--- a/trytond/convert.py        Thu May 09 09:33:17 2019 +0200
+++ b/trytond/convert.py        Wed May 22 18:29:04 2019 +0200
@@ -764,7 +764,7 @@
             fs_values = old_values.copy()
             fs_values.update(new_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