mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: improvement invoicing data checks
This commit is contained in:
@@ -555,15 +555,13 @@ class ResPartner(models.Model):
|
||||
key_fields.extend(["document_number"])
|
||||
return key_fields
|
||||
|
||||
def _enought_invoice_data(self):
|
||||
def _check_enought_invoice_data(self):
|
||||
self.ensure_one()
|
||||
if (
|
||||
self.document_number_to_invoice
|
||||
and not self.country_id
|
||||
and not self.state_id
|
||||
and not self.city
|
||||
and not self.zip
|
||||
and not self.street
|
||||
and self.country_id
|
||||
and self.city
|
||||
and self.street
|
||||
):
|
||||
return True
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user