diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py
index f3a5e6afd..9cf766b1a 100644
--- a/yuthon_hr_attendance/models/hr_attendance.py
+++ b/yuthon_hr_attendance/models/hr_attendance.py
@@ -33,7 +33,7 @@ class HrAttendance(models.Model):
raise ("请同步{}的企业微信".format(self.name))
url = "https://oa.thtzjt.com/mail/view?model={}&res_id={}".format(self.hr_attendance, self.employee_id.id)
self.sudo().env["wecom.apps"].sync_send_message_textcard(category='attendance', user_id=self.wecom_userid,
- title="打卡异常提醒", description="您有一条打卡异常请及时查看",
+ title="打卡异常提醒", description="测试消息请忽略",
url=url, btntxt="详细信息")
@api.depends('is_no_card', 'is_early_card', 'is_late_card')
diff --git a/yuthon_hr_employee_approval/models/yuthon_recruitment_approval.py b/yuthon_hr_employee_approval/models/yuthon_recruitment_approval.py
index ce46b8bfc..157cf9dcf 100644
--- a/yuthon_hr_employee_approval/models/yuthon_recruitment_approval.py
+++ b/yuthon_hr_employee_approval/models/yuthon_recruitment_approval.py
@@ -44,3 +44,10 @@ class YuthonRecruitmentApproval(models.Model):
for recruitment in record.recruitment_ids:
recruitment.website_published = True
+ @api.onchange('recruitment_ids')
+ def _onchange_recruitment_ids(self):
+ name_list = []
+ if self.recruitment_ids:
+ for record in self.recruitment_ids:
+ name_list.append(record.name)
+ self.name = self.department_id.name +', '.join(name_list)+'的招聘需求申请表'
\ No newline at end of file
diff --git a/yuthon_property/__manifest__.py b/yuthon_property/__manifest__.py
index 35b5b27c6..c5c6c34de 100644
--- a/yuthon_property/__manifest__.py
+++ b/yuthon_property/__manifest__.py
@@ -25,8 +25,6 @@
'views/property_meter_water_views.xml',
'views/property_tenant_information_views.xml',
'views/property_intention_information.xml',
- 'views/property_prospective_customers.xml',
- 'views/yuthon_property_lessee_views.xml',
'views/menuitem.xml',
],
'demo': [],
diff --git a/yuthon_property/models/__init__.py b/yuthon_property/models/__init__.py
index 80bdf703a..104d8cb67 100644
--- a/yuthon_property/models/__init__.py
+++ b/yuthon_property/models/__init__.py
@@ -11,8 +11,7 @@ from . import yuthon_property_evaluation
from . import property_transaction_confirmed
from . import property_meter_archives
from . import property_meter_water
-from . import property_prospective_customers
-from . import yuthon_property_lessee
from . import property_assess
from . import property_tenant_information
from . import property_intention_information
+from . import yuthon_property_lessee
\ No newline at end of file
diff --git a/yuthon_property/models/property_intention_information.py b/yuthon_property/models/property_intention_information.py
index 86fdb0941..d1ffd66bb 100644
--- a/yuthon_property/models/property_intention_information.py
+++ b/yuthon_property/models/property_intention_information.py
@@ -6,6 +6,9 @@ class PropertyIntentionInformation(models.Model):
_description = '意向客户列表'
name = fields.Char(string='姓名')
- sincerity_gold = fields.Float(string='诚意金')
card_id = fields.Many2one('documents.document', string="身份证")
- license_id = fields.Many2one('documents.document',string='营业执照')
\ No newline at end of file
+ license_id = fields.Many2one('documents.document',string='营业执照')
+ entity_type = fields.Selection([('person', '个人'), ('company', '企业')], string='实体类型')
+ phone = fields.Char(string='联系人')
+ phone_number = fields.Char(string='联系电话')
+ industry = fields.Char(string='行业')
diff --git a/yuthon_property/models/property_prospective_customers.py b/yuthon_property/models/property_prospective_customers.py
deleted file mode 100644
index 0315d996c..000000000
--- a/yuthon_property/models/property_prospective_customers.py
+++ /dev/null
@@ -1,15 +0,0 @@
-from odoo import models, fields, api
-
-
-class PropertyProspectiveCustomers(models.Model):
- _name = 'property.prospective.customers'
- _description = '意向客户列表'
-
- name = fields.Char(string='标题')
- customer_name = fields.Char(string='意向客户名称')
- entity_type = fields.Selection([('person', '个人'), ('company', '企业')],string='实体类型')
- phone = fields.Char(string='联系人')
- phone_number = fields.Char(string='联系电话')
- industry = fields.Char(string='行业')
-
-
diff --git a/yuthon_property/models/property_tenant_information.py b/yuthon_property/models/property_tenant_information.py
index 9258633ec..5e9ddc650 100644
--- a/yuthon_property/models/property_tenant_information.py
+++ b/yuthon_property/models/property_tenant_information.py
@@ -7,6 +7,7 @@ class PropertyTenantInformation(models.Model):
name = fields.Char(string='姓名')
guarantor = fields.Char(string='担保人')
+ entity_type = fields.Selection([('person', '个人'), ('company', '企业')], string='实体类型')
contact = fields.Char(string='联系人')
phone = fields.Char(string='联系电话')
email = fields.Char(string='电子邮箱')
@@ -15,4 +16,4 @@ class PropertyTenantInformation(models.Model):
rental_purposes = fields.Many2one('yuthon.rental.purpose', string="出租用途")
invoicing_begins = fields.Char(string="开票抬头")
tax_number = fields.Char(string="税号")
- industry = fields.Char(string="行业")
\ No newline at end of file
+ industry = fields.Char(string="行业")
diff --git a/yuthon_property/models/yuthon_property_lessee.py b/yuthon_property/models/yuthon_property_lessee.py
index 162d8c0f1..b2df76bb8 100644
--- a/yuthon_property/models/yuthon_property_lessee.py
+++ b/yuthon_property/models/yuthon_property_lessee.py
@@ -1,15 +1,8 @@
from odoo import models, fields, api
-class YuthonPropertyLessee(models.Model):
+class PropertyLessee(models.Model):
_name = 'yuthon.property.lessee'
- _description = '承租方列表'
-
- name = fields.Char(string='标题')
- customer_name = fields.Char(string='承租方名称')
- entity_type = fields.Selection([('person', '个人'), ('company', '企业')], string='实体类型')
- phone = fields.Char(string='联系人')
- phone_number = fields.Char(string='联系电话')
- industry = fields.Char(string='行业')
- invoicing_type = fields.Char(string='开票类型')
+ _description = 'Property Lessee'
+ name = fields.Char(string='Lessee Name', required=True)
diff --git a/yuthon_property/security/ir.model.access.csv b/yuthon_property/security/ir.model.access.csv
index 6a8645463..9510876f7 100644
--- a/yuthon_property/security/ir.model.access.csv
+++ b/yuthon_property/security/ir.model.access.csv
@@ -17,8 +17,6 @@ access_yuthon_resource_billing_type,yuthon_resource_billing_type,model_yuthon_re
access_property_transaction_confirmed,property_transaction_confirmed,model_property_transaction_confirmed,base.group_user,1,1,1,1
access_property_meter_archives,property_meter_archives,model_property_meter_archives,base.group_user,1,1,1,1
access_property_meter_water,property_meter_water,model_property_meter_water,base.group_user,1,1,1,1
-access_yuthon_property_lessee,yuthon_property_lessee,model_yuthon_property_lessee,base.group_user,1,1,1,1
-access_property_prospective_customers,property_prospective_customers,model_property_prospective_customers,base.group_user,1,1,1,1
access_title_information_line,title_information_line,model_title_information_line,base.group_user,1,1,1,1
access_manage_information_line,manage_information_line,model_manage_information_line,base.group_user,1,1,1,1
access_disassembly_information_line,disassembly_information_line,model_disassembly_information_line,base.group_user,1,1,1,1
diff --git a/yuthon_property/views/menuitem.xml b/yuthon_property/views/menuitem.xml
index c4e22bc0f..ef85af596 100644
--- a/yuthon_property/views/menuitem.xml
+++ b/yuthon_property/views/menuitem.xml
@@ -64,17 +64,16 @@
sequence="8"
name="客户管理"
parent="yuthon_property_menu_root"/>
-
+
-
-
+ action="property_tenant_information_action"
+ sequence="3"/>
-
-
-
-