mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
* [WIP] Folio Checkins * [WIP] Process Partner checkin Import * [WIP] Process Partner checkin Import * [IMP] key fields to partner creation * [IMP] Views * [IMP] Folio Views
18 lines
446 B
Python
18 lines
446 B
Python
# Copyright 2009-2020 Noviat
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import models
|
|
|
|
|
|
class PmsFolio(models.Model):
|
|
_inherit = "pms.folio"
|
|
|
|
def rooming_xls(self):
|
|
checkins = self.checkin_partner_ids
|
|
ctx = {
|
|
"active_model": "pms.checkin.partner",
|
|
"active_ids": checkins.ids,
|
|
}
|
|
report = checkins.with_context(ctx).rooming_xls()
|
|
return report
|