+
+
+
+
@@ -450,22 +456,21 @@
-
-
+
+
-
diff --git a/yuthon_property_approval/views/property_menu_all.xml b/yuthon_property_approval/views/property_menu_all.xml
index ff3e26381..a7c19db62 100644
--- a/yuthon_property_approval/views/property_menu_all.xml
+++ b/yuthon_property_approval/views/property_menu_all.xml
@@ -367,4 +367,21 @@
+
+
+
\ No newline at end of file
diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py
index bb2c45a55..54fb651aa 100644
--- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py
+++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py
@@ -249,7 +249,7 @@ class PropertyReconciliationWizard(models.Model):
'property_id': line.property_id.id,
'contract_id': line.contract_id.id,
'delivered1': line.amount,
- 'payout_date': self.actual_date,
+ 'payout_date': rec.actual_date if (line.rent == line.amount and line.rent != 0) else None,
'original_amount': line.rent,
'remark': line.remake,
'reconciliation_time': fields.Datetime.now(),
diff --git a/yuthon_purchase/models/__init__.py b/yuthon_purchase/models/__init__.py
index 28bd0f1b4..8ba4ff994 100644
--- a/yuthon_purchase/models/__init__.py
+++ b/yuthon_purchase/models/__init__.py
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
from . import purchase_fixed_assets
from . import purchase_low_orders
-from . import purchase_service_orders
\ No newline at end of file
+from . import purchase_service_orders
+from . import inherit_purchase_order
\ No newline at end of file
diff --git a/yuthon_purchase/models/inherit_purchase_order.py b/yuthon_purchase/models/inherit_purchase_order.py
new file mode 100644
index 000000000..c2b513f7d
--- /dev/null
+++ b/yuthon_purchase/models/inherit_purchase_order.py
@@ -0,0 +1,13 @@
+# -*- coding: utf-8 -*-
+from odoo import api, fields, models
+
+
+class InheritPurchaseOrder(models.Model):
+ _inherit = 'purchase.order'
+
+ def get_no_read_count(self):
+ domain = [
+ ('company_id', '=', self.env.user.company_id.id),
+ ]
+ return self.search_count(domain)
+