mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] update dotfiles [ci skip]
This commit is contained in:
@@ -708,7 +708,7 @@ class PmsCheckinPartner(models.Model):
|
||||
return True
|
||||
|
||||
def open_partner(self):
|
||||
""" Utility method used to add an "View Customer" button in checkin partner views """
|
||||
"""Utility method used to add an "View Customer" button in checkin partner views"""
|
||||
self.ensure_one()
|
||||
partner_form_id = self.env.ref("pms.view_partner_data_form").id
|
||||
return {
|
||||
|
||||
@@ -1176,7 +1176,7 @@ class PmsFolio(models.Model):
|
||||
}
|
||||
|
||||
def open_partner(self):
|
||||
""" Utility method used to add an "View Customer" button in folio views """
|
||||
"""Utility method used to add an "View Customer" button in folio views"""
|
||||
self.ensure_one()
|
||||
partner_form_id = self.env.ref("pms.view_partner_data_form").id
|
||||
return {
|
||||
|
||||
@@ -1685,7 +1685,7 @@ class PmsReservation(models.Model):
|
||||
|
||||
# Action methods
|
||||
def open_partner(self):
|
||||
""" Utility method used to add an "View Customer" button in reservation views """
|
||||
"""Utility method used to add an "View Customer" button in reservation views"""
|
||||
self.ensure_one()
|
||||
partner_form_id = self.env.ref("pms.view_partner_data_form").id
|
||||
return {
|
||||
@@ -1787,7 +1787,7 @@ class PmsReservation(models.Model):
|
||||
def name_get(self):
|
||||
result = []
|
||||
for res in self:
|
||||
name = u"{} ({})".format(res.name, res.rooms if res.rooms else "No room")
|
||||
name = "{} ({})".format(res.name, res.rooms if res.rooms else "No room")
|
||||
result.append((res.id, name))
|
||||
return result
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ class PmsReservationLine(models.Model):
|
||||
result = []
|
||||
for res in self:
|
||||
date = fields.Date.from_string(res.date)
|
||||
name = u"{}/{}".format(date.day, date.month)
|
||||
name = "{}/{}".format(date.day, date.month)
|
||||
result.append((res.id, name))
|
||||
return result
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ class PmsRoomType(models.Model):
|
||||
# TODO: Review Check product fields default values to room
|
||||
@api.model
|
||||
def create(self, vals):
|
||||
""" Add room types as not purchase services. """
|
||||
"""Add room types as not purchase services."""
|
||||
vals.update(
|
||||
{
|
||||
"purchase_ok": False,
|
||||
|
||||
@@ -585,7 +585,7 @@ class TestPmsFolioInvoice(TestPms):
|
||||
line by unit prices/qty with nights"""
|
||||
|
||||
def _test_autoinvoice_folio(self):
|
||||
""" Test create and invoice the cron by partner preconfig automation """
|
||||
"""Test create and invoice the cron by partner preconfig automation"""
|
||||
|
||||
def _test_downpayment(self):
|
||||
"""Test invoice qith a way of downpaument and check dowpayment's
|
||||
|
||||
Reference in New Issue
Block a user