changeset 0e1806f28627 in trytond:5.0
details: https://hg.tryton.org/trytond?cmd=changeset;node=0e1806f28627
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 b3ad9950eeff -r 0e1806f28627 trytond/convert.py
--- a/trytond/convert.py        Mon May 06 11:34:11 2019 +0200
+++ b/trytond/convert.py        Wed May 22 18:29:04 2019 +0200
@@ -755,7 +755,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