mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: allow create partner contact without vat fields
This commit is contained in:
@@ -747,7 +747,11 @@ class ResPartner(models.Model):
|
||||
|
||||
@api.model
|
||||
def _missing_document(self, vals, partners=False):
|
||||
# If not is a partner contact and not have vat, then return missing document True
|
||||
if (
|
||||
not vals.get("parent_id")
|
||||
or (partners and any([not partner.parent_id for partner in partners]))
|
||||
) and (
|
||||
vals.get("vat") is False
|
||||
or vals.get("vat") == ""
|
||||
or (
|
||||
|
||||
Reference in New Issue
Block a user