From b13a19b2291c36b9b72bbe6d8ec98f7871b1f6b5 Mon Sep 17 00:00:00 2001 From: "Foram Katharotiya (OpenERP)" Date: Tue, 11 Sep 2012 15:47:21 +0530 Subject: [PATCH] [IMP] display field supply_method when project_mrp installed & name change of procurement tab in warnning bzr revid: fka@tinyerp.com-20120911101721-sgume435a3hb8zc7 --- addons/product/product.py | 2 +- addons/project_mrp/project_mrp_view.xml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/addons/product/product.py b/addons/product/product.py index c9345a22103..4988a0797c5 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -346,7 +346,7 @@ class product_template(osv.osv): for product in self.browse(cr, uid, ids, context=context): old_uom = product.uom_po_id if old_uom.category_id.id != new_uom.category_id.id: - raise osv.except_osv(_('Unit of Measure categories Mismatch!'), _("New Unit of Measure '%s' must belong to same Unit of Measure category '%s' as of old Unit of Measure '%s'. If you need to change the unit of measure, you may deactivate this product from the 'Procurement & Locations' tab and create a new one.") % (new_uom.name, old_uom.category_id.name, old_uom.name,)) + raise osv.except_osv(_('Unit of Measure categories Mismatch!'), _("New Unit of Measure '%s' must belong to same Unit of Measure category '%s' as of old Unit of Measure '%s'. If you need to change the unit of measure, you may deactivate this product from the 'Procurements' tab and create a new one.") % (new_uom.name, old_uom.category_id.name, old_uom.name,)) return super(product_template, self).write(cr, uid, ids, vals, context=context) _defaults = { diff --git a/addons/project_mrp/project_mrp_view.xml b/addons/project_mrp/project_mrp_view.xml index f9e761117b6..fdfefd10e30 100644 --- a/addons/project_mrp/project_mrp_view.xml +++ b/addons/project_mrp/project_mrp_view.xml @@ -31,6 +31,16 @@ + + product.form.view + product.product + + + + + + +