Skip to content
Merged
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
9 changes: 0 additions & 9 deletions pms_partner_identification/models/pms_checkin_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,6 @@ def _check_document_country_id_document_type_consistence(self):
_("Document type and country of document do not match")
)

@api.constrains("document_number")
def check_document_number(self):
for record in self:
if record.partner_id:
for number in record.partner_id.id_numbers:
if record.document_type == number.category_id:
if record.document_number != number.name:
raise ValidationError(_("Document_type has already exists"))

@api.model
def _get_partner_by_document(self, document_number, document_type):
number = (
Expand Down