mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms-api-rest-ocr: fix issue ocr
This commit is contained in:
committed by
Darío Lodeiros
parent
b38fce9ef9
commit
5cd6d303b8
@@ -223,7 +223,7 @@ class PmsProperty(models.Model):
|
||||
value["province"],
|
||||
self.env["res.country.state"].search(domain).mapped("name"),
|
||||
)
|
||||
if candidates[1] >= 90:
|
||||
if candidates and candidates[1] >= 90:
|
||||
country_state = self.env["res.country.state"].search(
|
||||
domain + [("name", "=", candidates[0])]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user