Impacted versions:
Master branch, should by 12.0

Steps to reproduce:
Install a third party addon with localization po file in i18n folder, even loading translation manually, the translation won't work, The console reports error: Translation .... not found in reference pot, skipping.
Reverse the change of  "odoo/tools/translate.py" in this commit, the issue was gone.

Expected behavior:
The po translation works as before.



odoo/tools/translate.py
"""Process a single PO (or POT) entry."""
            
            
            
            dic = dict.fromkeys(('type', 'name', 'res_id', 'src', 'value',
                                 'comments', 'imd_model', 'imd_name', 'module'))
            dic['lang'] = lang
            dic.update(pycompat.izip(fields, row))
            
            src = dic['src']
            target_key = (dic['type'], dic['name'], dic['type'] != 'code' and dic['res_id'] or 0)
            target = pot_targets.get(src)
            if not target or target_key not in target.targets:
                _logger.info("Translation '%s' (%s, %s, %s) not found in reference pot, skipping",
                    src[:60], dic['type'], dic['name'], dic['res_id'])
                return
            target.value = dic['value']
            target.targets.discard(target_key)
            
            res_id = dic['res_id']
            if not res_id and dic['type'] != 'code':
                return
            if isinstance(res_id, pycompat.integer_types) or \
                    (isinstance(res_id, pycompat.string_types) and res_id.isdigit()):
                dic['res_id'] = int(res_id)
                if module_name:
                    dic['module'] = module_name
            else: