[ADD] pms: add specific fields of the Spanish National Statistical Institute to the property

This commit is contained in:
miguelpadin
2021-06-30 00:01:06 +02:00
parent c178b96c09
commit 68519c206a
2 changed files with 41 additions and 0 deletions

View File

@@ -33,6 +33,26 @@ class PmsProperty(models.Model):
string="Institution password",
help="Password provided by institution to send the data.",
)
ine_tourism = fields.Char(
"Tourism number",
help="Registration number in the Ministry of Tourism. Used for INE statistics.",
)
ine_rooms = fields.Integer(
"Rooms Available", default=0, help="Used for INE statistics."
)
ine_seats = fields.Integer(
"Beds available", default=0, help="Used for INE statistics."
)
ine_permanent_staff = fields.Integer(
"Permanent Staff", default=0, help="Used for INE statistics."
)
ine_eventual_staff = fields.Integer(
"Eventual Staff", default=0, help="Used for INE statistics."
)
ine_category_id = fields.Many2one(
"pms.ine.tourism.category",
help="Hotel category in the Ministry of Tourism. Used for INE statistics.",
)
def test_connection(self):
headers = {

View File

@@ -34,6 +34,27 @@
/>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="o_horizontal_separator">
INE Settings
</div>
</div>
<div class="col-6">
<group>
<field name="ine_tourism" />
<field name="ine_category_id" />
</group>
</div>
<div class="col-6">
<group>
<field name="ine_rooms" />
<field name="ine_seats" />
<field name="ine_permanent_staff" />
<field name="ine_eventual_staff" />
</group>
</div>
</div>
</xpath>
</field>
</record>