mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[MIG] Compute status invoice sudo
This commit is contained in:
@@ -136,6 +136,7 @@ class PmsFolio(models.Model):
|
||||
compute="_compute_get_invoiced",
|
||||
readonly=True,
|
||||
copy=False,
|
||||
compute_sudo=True,
|
||||
)
|
||||
partner_invoice_id = fields.Many2one(
|
||||
"res.partner",
|
||||
@@ -264,6 +265,7 @@ class PmsFolio(models.Model):
|
||||
store=True,
|
||||
readonly=True,
|
||||
default="no",
|
||||
compute_sudo=True,
|
||||
)
|
||||
# Generic Fields-----------------------------------------------------
|
||||
internal_comment = fields.Text(string="Internal Folio Notes")
|
||||
|
||||
@@ -36,7 +36,6 @@ class PmsSharedRoom(models.Model):
|
||||
"pms.room",
|
||||
"shared_room_id",
|
||||
readonly=True,
|
||||
ondelete="restrict",
|
||||
)
|
||||
active = fields.Boolean("Active", default=True)
|
||||
sequence = fields.Integer("Sequence", required=True)
|
||||
|
||||
Reference in New Issue
Block a user