From 2fcd35631780fae64d19e29dd89e4e93dee1d57f Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Tue, 17 Mar 2015 10:54:37 +0100 Subject: [PATCH] [IMP] stock,procurement : stat button procurement, ux improvements --- addons/procurement/__openerp__.py | 1 + addons/procurement/procurement_view.xml | 72 ++++++++++++++++++--- addons/procurement/product_product_view.xml | 34 ++++++++++ addons/stock/product.py | 19 +++++- addons/stock/product_view.xml | 29 +++++---- addons/stock/stock_view.xml | 4 +- 6 files changed, 132 insertions(+), 27 deletions(-) create mode 100644 addons/procurement/product_product_view.xml diff --git a/addons/procurement/__openerp__.py b/addons/procurement/__openerp__.py index f405054060a..ff35d8ec9a3 100644 --- a/addons/procurement/__openerp__.py +++ b/addons/procurement/__openerp__.py @@ -37,6 +37,7 @@ Procurements in exception should be checked manually and can be re-run. 'wizard/schedulers_all_view.xml', 'procurement_view.xml', 'company_view.xml', + 'product_product_view.xml', ], 'demo': [], 'test': ['test/procurement.yml'], diff --git a/addons/procurement/procurement_view.xml b/addons/procurement/procurement_view.xml index 6a28fbd58f7..350df7898b5 100644 --- a/addons/procurement/procurement_view.xml +++ b/addons/procurement/procurement_view.xml @@ -131,6 +131,31 @@ + + Procurement Exceptions + ir.actions.act_window + procurement.order + form + tree,form + {'search_default_exceptions':1} + + +

+ Click to create a Procurement order in exception state, or remove the filter on the search bar to display all the procurements. +

+

+ Procurement Orders represent the need for a certain quantity of products, at a given time, in a given location. +

+

+ Sales Orders are one typical source of Procurement Orders (but these are distinct documents). +
Depending on the procurement parameters and the product configuration, the procurement engine will attempt to satisfy the need by reserving products from stock, ordering products from a supplier, or passing a manufacturing order, etc... +

+

+ A Procurement Exception occurs when the system cannot find a way to fulfill a procurement. Some exceptions will resolve themselves automatically, but others require manual intervention (those are identified by a specific error message in the chatter). +

+
+
+ Procurement Orders ir.actions.act_window @@ -156,28 +181,55 @@

- - - Procurement Exceptions + + + Procurement Orders ir.actions.act_window procurement.order form - tree,form - {'search_default_exceptions':1} + {'search_default_current':1} + [('product_id.product_tmpl_id.id', '=', active_id)]

- Click to create a Procurement Exception, or remove the filter on the search bar to display all the procurements. + Click to create a procurement order.

- Procurement Orders represent the need for a certain quantity of products, at a given time, in a given location. + A procurement order is used to record a need for a specific + product at a specific location. Procurement orders are usually + created automatically from sales orders, pull logistic rules or + minimum stock rules.

- Sales Orders are one typical source of Procurement Orders (but these are distinct documents). -
Depending on the procurement parameters and the product configuration, the procurement engine will attempt to satisfy the need by reserving products from stock, ordering products from a supplier, or passing a manufacturing order, etc... + When the procurement order is confirmed, it automatically + creates the necessary operations to fullfil the need: purchase + order proposition, manufacturing order, etc. +

+
+
+ + + Procurement Orders + ir.actions.act_window + procurement.order + form + + {'search_default_current':1, 'default_product_id': active_id} + [('product_id.id', '=', active_id)] + +

+ Click to create a procurement order.

- A Procurement Exception occurs when the system cannot find a way to fulfill a procurement. Some exceptions will resolve themselves automatically, but others require manual intervention (those are identified by a specific error message in the chatter). + A procurement order is used to record a need for a specific + product at a specific location. Procurement orders are usually + created automatically from sales orders, pull logistic rules or + minimum stock rules. +

+

+ When the procurement order is confirmed, it automatically + creates the necessary operations to fullfil the need: purchase + order proposition, manufacturing order, etc.

diff --git a/addons/procurement/product_product_view.xml b/addons/procurement/product_product_view.xml new file mode 100644 index 00000000000..0a40e60b871 --- /dev/null +++ b/addons/procurement/product_product_view.xml @@ -0,0 +1,34 @@ + + + + + + product.template.procurement.stat.button + product.template + + + + - + - +