mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] pms: add specific fields of the Spanish National Statistical Institute to the property
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user