mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms: wrong default value in property_id field of room model (#81)
This commit is contained in:
@@ -35,7 +35,7 @@ class PmsRoom(models.Model):
|
||||
help="Properties with access to the element;"
|
||||
" if not set, all properties can access",
|
||||
required=True,
|
||||
default=lambda self: self.env.user.active_property_ids[0],
|
||||
default=lambda self: self.env.user.get_active_property_ids()[0],
|
||||
comodel_name="pms.property",
|
||||
ondelete="restrict",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user