diff --git a/yuthon_contract/__manifest__.py b/yuthon_contract/__manifest__.py
index 6e3ecc183..1151ece57 100644
--- a/yuthon_contract/__manifest__.py
+++ b/yuthon_contract/__manifest__.py
@@ -10,10 +10,12 @@
'category': 'Human Resources/Attendances',
'version': '0.1',
'license': 'LGPL-3',
- 'depends': ['mail', 'hr_contract', 'sale_renting'],
+ 'depends': ['hr_contract', 'sale_renting'],
'data': [
'security/ir.model.access.csv',
'views/contract_menu_views.xml',
+ 'views/inherit_hr_contract_views.xml',
+ 'views/inherit_sale_order_views.xml',
],
'installable': True,
diff --git a/yuthon_contract/models/__init__.py b/yuthon_contract/models/__init__.py
index e69de29bb..ddcbf4194 100644
--- a/yuthon_contract/models/__init__.py
+++ b/yuthon_contract/models/__init__.py
@@ -0,0 +1,2 @@
+from . import inherit_hr_contract
+from . import inherit_sale_order
diff --git a/yuthon_contract/models/inherit_hr_contract.py b/yuthon_contract/models/inherit_hr_contract.py
new file mode 100644
index 000000000..f54c0d607
--- /dev/null
+++ b/yuthon_contract/models/inherit_hr_contract.py
@@ -0,0 +1,9 @@
+# -*- coding: utf-8 -*-
+from odoo import api, fields, models, tools
+from odoo.exceptions import ValidationError
+
+
+class HrContract(models.Model):
+ _inherit = "hr.contract"
+ _description = "员工合同拓展"
+
diff --git a/yuthon_contract/models/inherit_sale_order.py b/yuthon_contract/models/inherit_sale_order.py
new file mode 100644
index 000000000..0effe307b
--- /dev/null
+++ b/yuthon_contract/models/inherit_sale_order.py
@@ -0,0 +1,9 @@
+# -*- coding: utf-8 -*-
+from odoo import api, fields, models, tools
+from odoo.exceptions import ValidationError
+
+
+class SaleOrder(models.Model):
+ _inherit = "sale.order"
+ _description = "租赁合同拓展"
+
diff --git a/yuthon_contract/views/inherit_hr_contract_views.xml b/yuthon_contract/views/inherit_hr_contract_views.xml
new file mode 100644
index 000000000..77b001e87
--- /dev/null
+++ b/yuthon_contract/views/inherit_hr_contract_views.xml
@@ -0,0 +1,23 @@
+
+
+
+ inherit.hr.contract.yuthon.tree
+ hr.contract
+
+
+
+
+
+
+
+
+ inherit.hr.contract.yuthon.form
+ hr.contract
+
+
+
+
+
+
+
+
diff --git a/yuthon_contract/views/inherit_sale_order_views.xml b/yuthon_contract/views/inherit_sale_order_views.xml
new file mode 100644
index 000000000..1df22c69b
--- /dev/null
+++ b/yuthon_contract/views/inherit_sale_order_views.xml
@@ -0,0 +1,23 @@
+
+
+
+ inherit.sale.renting.yuthon.tree
+ sale.order
+
+
+
+
+
+
+
+
+ inherit.sale.renting.yuthon.form
+ sale.order
+
+
+
+
+
+
+
+