From dc439ea9ca26839c59b58d9474e83dd7069db32e Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Wed, 29 Jan 2014 06:35:33 +0100 Subject: [PATCH] [FIX] ir.model.data conversion typo bzr revid: al@openerp.com-20140129053533-dcx97b9opmqzrhmw --- addons/sale/res_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/res_config.py b/addons/sale/res_config.py index 2468f42d732..88f7b247591 100644 --- a/addons/sale/res_config.py +++ b/addons/sale/res_config.py @@ -138,7 +138,7 @@ Example: 10% for retailers, promotion of 5 EUR on this product, etc."""), wizard = self.browse(cr, uid, ids)[0] if wizard.time_unit: - product = ir_model_data.xmlid_object(cr, uid, 'product.product_product_consultant') + product = ir_model_data.xmlid_to_object(cr, uid, 'product.product_product_consultant') if product and product.exists(): product.write({'uom_id': wizard.time_unit.id, 'uom_po_id': wizard.time_unit.id}) else: