mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[REF] pms-l10n_es: required fields for SES
This commit is contained in:
@@ -282,10 +282,6 @@ class PmsCheckinPartner(models.Model):
|
||||
inverse_name="checkin_partner_possible_customer_id",
|
||||
)
|
||||
|
||||
partner_relationship = fields.Char(
|
||||
string="Partner relationship", help="Family relationship between travelers"
|
||||
)
|
||||
|
||||
signature = fields.Image(
|
||||
string="Signature",
|
||||
help="Signature of the guest",
|
||||
|
||||
@@ -115,7 +115,6 @@
|
||||
<field name="reservation_id" />
|
||||
<field name="folio_id" />
|
||||
<field name="identifier" />
|
||||
<field name="partner_relationship" />
|
||||
<field name="signature" />
|
||||
<field name="sign_on" />
|
||||
<field name="pms_property_id" invisible="1" />
|
||||
|
||||
@@ -20,6 +20,33 @@ class PmsCheckinPartner(models.Model):
|
||||
compute="_compute_support_number",
|
||||
)
|
||||
|
||||
ses_partners_relationship = fields.Selection(
|
||||
selection=[
|
||||
("AB", "Abuelo/a"),
|
||||
("BA", "Bisabuelo/a"),
|
||||
("BN", "Bisnieto/a"),
|
||||
("CD", "Cuñado/a"),
|
||||
("CY", "Cónyuge"),
|
||||
("HJ", "Hijo/a"),
|
||||
("HR", "Hermano"),
|
||||
("NI", "Nieto/a"),
|
||||
("PM", "Padre o Madre"),
|
||||
("SB", "Sobrino/a"),
|
||||
("SG", "Suegro/a"),
|
||||
("TI", "Tío/a"),
|
||||
("YN", "Yerno o Nuera"),
|
||||
("TU", "Tutor/a"),
|
||||
("OT", "Otro"),
|
||||
],
|
||||
required=False,
|
||||
)
|
||||
|
||||
ses_related_checkin_partner_id = fields.Many2one(
|
||||
comodel_name="pms.checkin.partner",
|
||||
string="Related checkin partner",
|
||||
required=False,
|
||||
)
|
||||
|
||||
@api.depends("partner_id")
|
||||
def _compute_support_number(self):
|
||||
for record in self:
|
||||
|
||||
Reference in New Issue
Block a user