changeset 71187a2c37b6 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=71187a2c37b6
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
diffstat:

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

diffs (12 lines):

diff -r 755eddf83411 -r 71187a2c37b6 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