diff --git a/addons/procurement/procurement.py b/addons/procurement/procurement.py index 9aa58040379..b8a396d2738 100644 --- a/addons/procurement/procurement.py +++ b/addons/procurement/procurement.py @@ -134,7 +134,6 @@ class procurement_order(osv.osv): ('running', 'Running'), ('done', 'Done') ], 'Status', required=True, track_visibility='onchange'), - 'message': fields.text('Latest error', help="Exception occurred while computing procurement orders.", track_visibility='onchange'), } _defaults = { diff --git a/addons/procurement/procurement_view.xml b/addons/procurement/procurement_view.xml index 316b0e7470b..18f18109546 100644 --- a/addons/procurement/procurement_view.xml +++ b/addons/procurement/procurement_view.xml @@ -53,18 +53,15 @@ - + - @@ -74,6 +71,7 @@ + @@ -145,13 +143,15 @@ {'search_default_current':1}

- Click to create a procurement order. -

- 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. -

+ Click to create a procurement order. +

+

+ 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. @@ -168,9 +168,19 @@ {} -

- 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). -

+

+ Click to create a Procurement. +

+

+ 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). +

diff --git a/addons/product/product.py b/addons/product/product.py index 46d26adc43d..58289d12cdf 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -239,6 +239,19 @@ class product_category(osv.osv): res.append((record['id'], name)) return res + def name_search(self, cr, uid, name, args=None, operator='ilike', context=None, limit=100): + if not args: + args = [] + if not context: + context = {} + if name: + # Be sure name_search is symetric to name_get + name = name.split(' / ')[-1] + ids = self.search(cr, uid, [('name', operator, name)] + args, limit=limit, context=context) + else: + ids = self.search(cr, uid, args, limit=limit, context=context) + return self.name_get(cr, uid, ids, context) + def _name_get_fnc(self, cr, uid, ids, prop, unknow_none, context=None): res = self.name_get(cr, uid, ids, context=context) return dict(res) @@ -279,8 +292,6 @@ class product_category(osv.osv): _constraints = [ (_check_recursion, 'Error ! You cannot create recursive categories.', ['parent_id']) ] - def child_get(self, cr, uid, ids): - return [ids] diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml index fd654699b67..de127f9773a 100644 --- a/addons/product/product_view.xml +++ b/addons/product/product_view.xml @@ -13,7 +13,7 @@ - + diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index e2e722f38ce..d9fc6ae2cdf 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -197,7 +197,7 @@ - + Requests for Quotation ir.actions.act_window purchase.order - {'special_shortened_wh_name': True} + {} [('state','in',('draft','sent','bid','cancel', 'confirmed'))] tree,form,graph,calendar @@ -373,7 +373,7 @@ ir.actions.act_window purchase.order tree,form,graph,calendar - {'special_shortened_wh_name': True} + {} [('state','not in',('draft','sent','bid', 'confirmed'))] diff --git a/addons/sale_stock/sale_stock_view.xml b/addons/sale_stock/sale_stock_view.xml index 7f3f2f12871..ad5642eaaab 100644 --- a/addons/sale_stock/sale_stock_view.xml +++ b/addons/sale_stock/sale_stock_view.xml @@ -15,7 +15,7 @@