diff --git a/hotel/models/inherited_res_partner.py b/hotel/models/inherited_res_partner.py
index d803e9a74..39b4080c9 100644
--- a/hotel/models/inherited_res_partner.py
+++ b/hotel/models/inherited_res_partner.py
@@ -63,7 +63,6 @@ class ResPartner(models.Model):
for i, record in enumerate(self):
if record.unconfirmed is True:
partner_dst = self.env['res.partner']._check_duplicated_partner(record)
- return
res = super(ResPartner, self).write(vals)
return res
diff --git a/hotel_l10n_es/models/inherit_hotel_checkin_partner.py b/hotel_l10n_es/models/inherit_hotel_checkin_partner.py
index 5314d50ee..b14608d89 100644
--- a/hotel_l10n_es/models/inherit_hotel_checkin_partner.py
+++ b/hotel_l10n_es/models/inherit_hotel_checkin_partner.py
@@ -30,6 +30,7 @@ class HotelCheckinPartner(models.Model):
document_number = fields.Char(related='partner_id.document_number')
document_expedition_date = fields.Date(related='partner_id.document_expedition_date')
gender = fields.Selection('Gender', related='partner_id.gender')
+ birthdate_date = fields.Date('Birhdate', related='partner_id.birthdate_date')
code_ine_id = fields.Many2one(related="partner_id.code_ine_id")
#TMP_FIX VAT Validation
diff --git a/hotel_l10n_es/views/inherit_hotel_checkin_partner_views.xml b/hotel_l10n_es/views/inherit_hotel_checkin_partner_views.xml
index 5ab2c0fd5..dee25f35c 100644
--- a/hotel_l10n_es/views/inherit_hotel_checkin_partner_views.xml
+++ b/hotel_l10n_es/views/inherit_hotel_checkin_partner_views.xml
@@ -35,6 +35,7 @@
+
@@ -58,6 +59,7 @@
+
diff --git a/hotel_l10n_es/wizard/police_wizard.py b/hotel_l10n_es/wizard/police_wizard.py
index a9b9462b4..c31cca439 100644
--- a/hotel_l10n_es/wizard/police_wizard.py
+++ b/hotel_l10n_es/wizard/police_wizard.py
@@ -41,9 +41,9 @@ class PoliceWizard(models.TransientModel):
def generate_file(self):
company = self.env.user.company_id
if company.police_number is not False and company.property_name is not False:
- lines = self.env['cardex'].search([('enter_date', '=',
+ lines = self.env['hotel.checkin.partner'].search([('enter_date', '=',
self.download_date)])
- content = "1|"+company.police_number+"|"+compa.property_name.upper()[0:40]
+ content = "1|"+company.police_number+"|"+company.property_name.upper()[0:40]
content += "|"
content += datetime.datetime.now().strftime("%Y%m%d|%H%M")
content += "|"+str(len(lines)) + """