diff --git a/yuthon_purchase/__manifest__.py b/yuthon_purchase/__manifest__.py
index 6f868e07d..5d33968f4 100644
--- a/yuthon_purchase/__manifest__.py
+++ b/yuthon_purchase/__manifest__.py
@@ -12,6 +12,7 @@
'data/purchase_data.xml',
'views/purchase_fixed_assets_views.xml',
'views/purchase_low_orders_views.xml',
+ 'views/inherit_res_partner_views.xml',
'views/purchase_service_orders_views.xml',
'views/menu.xml',
],
diff --git a/yuthon_purchase/models/__init__.py b/yuthon_purchase/models/__init__.py
index 8ba4ff994..0db799b6a 100644
--- a/yuthon_purchase/models/__init__.py
+++ b/yuthon_purchase/models/__init__.py
@@ -2,4 +2,5 @@
from . import purchase_fixed_assets
from . import purchase_low_orders
from . import purchase_service_orders
-from . import inherit_purchase_order
\ No newline at end of file
+from . import inherit_purchase_order
+from . import inherit_res_partner
\ No newline at end of file
diff --git a/yuthon_purchase/models/inherit_res_partner.py b/yuthon_purchase/models/inherit_res_partner.py
new file mode 100644
index 000000000..07df1fc85
--- /dev/null
+++ b/yuthon_purchase/models/inherit_res_partner.py
@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+from odoo import api, fields, models
+
+
+class InheritResPartner(models.Model):
+ _inherit = 'res.partner'
+
+ category = fields.Selection([('party', '乙方'), ('suppliers', '供应商')], string='类型')
\ No newline at end of file
diff --git a/yuthon_purchase/views/inherit_res_partner_views.xml b/yuthon_purchase/views/inherit_res_partner_views.xml
new file mode 100644
index 000000000..dcd022720
--- /dev/null
+++ b/yuthon_purchase/views/inherit_res_partner_views.xml
@@ -0,0 +1,23 @@
+
+
+
+ res.partner.form.inherit
+ res.partner
+
+
+
+
+
+
+
+
+ res.partner.search.inherit
+ res.partner
+
+
+
+
+
+
+
+
diff --git a/yuthon_purchase/views/purchase_service_orders_views.xml b/yuthon_purchase/views/purchase_service_orders_views.xml
index f6442b743..1c9a79460 100644
--- a/yuthon_purchase/views/purchase_service_orders_views.xml
+++ b/yuthon_purchase/views/purchase_service_orders_views.xml
@@ -63,16 +63,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -112,6 +102,16 @@
+
+
+
+
+
+
+
+
+
+