diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fdef9e47..71550970 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -91,7 +91,7 @@ repos: - id: mixed-line-ending args: ["--fix=lf"] - repo: https://github.com/acsone/setuptools-odoo - rev: 3.1.8 + rev: 3.3.2 hooks: - id: setuptools-odoo-make-default - id: setuptools-odoo-get-requirements diff --git a/l10n_es_aeat_partner_identification/models/res_partner.py b/l10n_es_aeat_partner_identification/models/res_partner.py index 6aecf14d..8be6469d 100644 --- a/l10n_es_aeat_partner_identification/models/res_partner.py +++ b/l10n_es_aeat_partner_identification/models/res_partner.py @@ -51,7 +51,11 @@ def _check_aeat_identification_unique(self): if self._context.get("partner_merge_in_progress"): return for record in self: - if record.parent_id or not record.aeat_identification: + if ( + record.parent_id + or not record.aeat_identification + or not record.aeat_identification_type + ): continue identification_types_aeat = self.env["res.partner.id_category"].search( [