diff --git a/pms/__manifest__.py b/pms/__manifest__.py
index e16e2ca3f..8fe7b5a54 100644
--- a/pms/__manifest__.py
+++ b/pms/__manifest__.py
@@ -89,6 +89,7 @@
"wizards/wizard_massive_changes.xml",
"wizards/wizard_advanced_filters.xml",
"views/payment_transaction_views.xml",
+ "views/account_move_line_views.xml",
],
"demo": [
"demo/pms_master_data.xml",
diff --git a/pms/models/account_move_line.py b/pms/models/account_move_line.py
index 515edf5d6..97772eaa7 100644
--- a/pms/models/account_move_line.py
+++ b/pms/models/account_move_line.py
@@ -32,6 +32,12 @@ class AccountMoveLine(models.Model):
store=True,
compute="_compute_name_changed_by_user",
)
+ pms_property_id = fields.Many2one(
+ name="Property",
+ comodel_name="pms.property",
+ related="move_id.pms_property_id",
+ store=True,
+ )
@api.depends("name")
def _compute_name_changed_by_user(self):
diff --git a/pms/models/pms_reservation.py b/pms/models/pms_reservation.py
index 97f79ea81..e0a823670 100644
--- a/pms/models/pms_reservation.py
+++ b/pms/models/pms_reservation.py
@@ -22,8 +22,8 @@ class PmsReservation(models.Model):
_check_company_auto = True
name = fields.Text(
- string="Reservation Id",
- help="Reservation Name",
+ string="Reservation Code",
+ help="Reservation Code Identification",
readonly=True,
)
priority = fields.Integer(
diff --git a/pms/models/pms_service.py b/pms/models/pms_service.py
index d52c73f92..3c35e53f0 100644
--- a/pms/models/pms_service.py
+++ b/pms/models/pms_service.py
@@ -106,6 +106,7 @@ class PmsService(models.Model):
string="State",
help="Service status, it corresponds with folio status",
related="folio_id.state",
+ store=True,
)
per_day = fields.Boolean(
string="Per Day",
diff --git a/pms/views/account_journal_views.xml b/pms/views/account_journal_views.xml
index f787708c8..d63420eff 100644
--- a/pms/views/account_journal_views.xml
+++ b/pms/views/account_journal_views.xml
@@ -10,4 +10,32 @@
+
+
+ account.journal
+
+
+
+
+
+
+
+
+
+ account.journal
+
+
+
+
+
+
+
diff --git a/pms/views/account_move_line_views.xml b/pms/views/account_move_line_views.xml
new file mode 100644
index 000000000..a272e096a
--- /dev/null
+++ b/pms/views/account_move_line_views.xml
@@ -0,0 +1,31 @@
+
+
+
+
+ account.move.line
+
+
+
+
+
+
+
+
+
+ account.move.line
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pms/views/account_move_views.xml b/pms/views/account_move_views.xml
index d6fa4eba8..0776f0c53 100644
--- a/pms/views/account_move_views.xml
+++ b/pms/views/account_move_views.xml
@@ -14,6 +14,50 @@
+
+ account.move
+
+
+
+
+
+
+
+
+
+ account.move
+
+
+
+
+
+
+
+
+
+
+
+
+ account.move
+
+
+
+
+
+
+
+
+
+
+