Hello,
I have a long condition which makes it possible to check if a field has been modified in order to call a function :
if self.half_pension or not self.half_pension or self.half_pension_occasional \
or not self.half_pension_occasional or self.half_pension_id != self._origin.half_pension_id \
or self.half_pension_begin_date != self._origin.half_pension_begin_date \
or self.half_pension_end_date != self._origin.half_pension_end_date \
or self.half_pension_monday != self._origin.half_pension_monday \
or self.half_pension_tuesday != self._origin.half_pension_tuesday \
or self.half_pension_thursday != self._origin.half_pension_thursday \
or self.half_pension_friday != self._origin.half_pension_friday \
or self.half_pension_responsible_partner != self._origin.half_pension_responsible_partner:
monstringxmlhalfpension = self.get_data_xml_for_halfpension(idUsager)
resp_halfpension = c.service.XmlAjouterUnEvenement(Synchrone=1, donneesXml=monstringxmlhalfpension)