From 1e76ed594d1e3e86bd22cfa086fa0c28d02b97d9 Mon Sep 17 00:00:00 2001 From: PASCALE NOYRET Date: Tue, 5 Apr 2022 16:34:38 +0200 Subject: [PATCH] pour Essai avec Eric --- InterfaceWeb/browser.py | 8 ++++---- Validation/V_MCSIMP.py | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/InterfaceWeb/browser.py b/InterfaceWeb/browser.py index b5dee728..83117d96 100644 --- a/InterfaceWeb/browser.py +++ b/InterfaceWeb/browser.py @@ -109,10 +109,10 @@ class JDCNode(): validite=self.item.isValid() if debug : print ('ds onValid', self.item.nom, self.oldValidite, validite) if self.oldValidite==validite : return - #if self.oldValidite=='init' : - # self.oldValidite=validite - # print ('self.item.state' , self.item.state) - # if self.item.state != 'modified' : return + if self.oldValidite=='init' : + self.oldValidite=validite + print ('self.item.state' , self.item.state) + if self.item.state != 'modified' : return self.oldValidite=validite self.editor.connecteur.toWebApp('propageValide',self.getIdUnique(), validite) if debug : print ('appel de propageValide pour ', self.item.nom, validite,self.oldValidite) diff --git a/Validation/V_MCSIMP.py b/Validation/V_MCSIMP.py index b484672f..b6a7b499 100644 --- a/Validation/V_MCSIMP.py +++ b/Validation/V_MCSIMP.py @@ -85,6 +85,7 @@ class MCSIMP(object): self.valid = valid self.state = 'unchanged' if not old_valid or old_valid != self.valid: + self.parent.state = 'modified' self.initModifUp() def isValid(self, cr='non'): -- 2.39.2