Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion l10n_es_aeat_partner_identification/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down