[IMP] update dotfiles [ci skip]

This commit is contained in:
oca-git-bot
2022-03-31 17:06:41 +02:00
parent f2ee4d1753
commit ea5f7b8d08
13 changed files with 24 additions and 65 deletions

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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

View File

@@ -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

View File

@@ -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,

View File

@@ -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