diff --git a/addons/purchase/__manifest__.py b/addons/purchase/__manifest__.py
index 3c3470196e3..60e242c9244 100644
--- a/addons/purchase/__manifest__.py
+++ b/addons/purchase/__manifest__.py
@@ -34,6 +34,7 @@ Dashboard / Reports for Purchase Management will include:
'data/purchase_data.yml',
'report/purchase_reports.xml',
'views/purchase_views.xml',
+ 'views/procurement_views.xml',
'views/stock_views.xml',
'views/res_partner_views.xml',
'report/purchase_report_views.xml',
diff --git a/addons/purchase/models/purchase.py b/addons/purchase/models/purchase.py
index dadf196e8fd..60e8322d17e 100644
--- a/addons/purchase/models/purchase.py
+++ b/addons/purchase/models/purchase.py
@@ -1014,6 +1014,14 @@ class ProcurementOrder(models.Model):
self.env['purchase.order.line'].create(vals)
return res
+ @api.multi
+ def open_purchase_order(self):
+ action = self.env.ref('purchase.purchase_order_action_generic')
+ action_dict = action.read()[0]
+ action_dict['res_id'] = self.purchase_id.id
+ action_dict['target'] = 'current'
+ return action_dict
+
class ProductTemplate(models.Model):
_name = 'product.template'
diff --git a/addons/purchase/views/procurement_views.xml b/addons/purchase/views/procurement_views.xml
new file mode 100644
index 00000000000..d7ad173ac92
--- /dev/null
+++ b/addons/purchase/views/procurement_views.xml
@@ -0,0 +1,19 @@
+
+
+
+
+ procurement.order.form.inherit.button
+ procurement.order
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml
index 654c629a7e6..79bdbbda826 100644
--- a/addons/purchase/views/purchase_views.xml
+++ b/addons/purchase/views/purchase_views.xml
@@ -390,6 +390,14 @@
+
+ Purchase Orders
+ ir.actions.act_window
+ purchase.order
+ []
+
+
+
Requests for Quotation
ir.actions.act_window