(self, changed_fields)
Ensure the consistency between:
        account.payment & account.move
        account.bank.statement.line & account.move

        The idea is to call the method performing the synchronization of the business
        models regarding their related journal entries. To avoid cycling, the
        'skip_account_move_synchronization' key is used through the context.

        :param changed_fields: A set containing all modified fields on account.move.
Ensure the consistency between:
        account.payment & account.move
        account.bank.statement.line & account.move
Ensure the consistency between : account . payment & account . move account . bank . statement . line & account . move
def _synchronize_business_models(self, changed_fields):
        ''' Ensure the consistency between:
        account.payment & account.move
        account.bank.statement.line & account.move

        The idea is to call the method performing the synchronization of the business
        models regarding their related journal entries. To avoid cycling, the
        'skip_account_move_synchronization' key is used through the context.

        :param changed_fields: A set containing all modified fields on account.move.
        '''
        if self._context.get('skip_account_move_synchronization'):
            return

        self_sudo = self.sudo()
        self_sudo.payment_id._synchronize_from_moves(changed_fields)
        self_sudo.statement_line_id._synchronize_from_moves(changed_fields)
def _synchronize_business_models ( self , changed_fields ) : if self . _context . get ( 'skip_account_move_synchronization' ) : return self_sudo = self . sudo ( ) self_sudo . payment_id . _synchronize_from_moves ( changed_fields ) self_sudo . statement_line_id . _synchronize_from_moves ( changed_fields )