[IMP] pms: xls checkin partners export & validate fields import (#34)

* [FIX] pms: fix xls checkin partners export & validate fields import

* [FIX] pms: fix last commit file missing
This commit is contained in:
Miguel Padin
2021-01-07 11:20:07 +01:00
committed by GitHub
parent ed74fe1764
commit 8b429b4da5
4 changed files with 104 additions and 3 deletions

View File

@@ -49,7 +49,9 @@ class RoomingCheckinXlsx(models.AbstractModel):
}
wanted_list = ["code", "folio", "room"]
for field_str in self.env["pms.checkin.partner"]._checkin_partner_fields():
render_field_str = "checkin." + field_str
render_field_str = (
"checkin." + field_str + " if checkin." + field_str + " else ''"
)
checkin_template[field_str] = {
"header": {
"value": CheckinPartner._fields[field_str].string,