'Receive a dictionary having accounts in values and try to replace those accounts accordingly to the fiscal position.'

@api.model
def map_accounts(self, accounts):

    ref_dict = {}
    for line in self.account_ids:
        ref_dict[line.account_src_id] = line.account_dest_id
    for (key, acc) in accounts.items():
        if (acc in ref_dict):
            accounts[key] = ref_dict[acc]
    return accounts
