summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2014-01-29 06:35:33 +0100
committerAntony Lesuisse <al@openerp.com>2014-01-29 06:35:33 +0100
commitdc439ea9ca26839c59b58d9474e83dd7069db32e (patch)
tree14fd958ade27f3730695c6fa386c9cf6e06a8c26
parent6f8d8434dcd86c33e16788083e5b4efdb5653982 (diff)
[FIX] ir.model.data conversion typo
bzr revid: al@openerp.com-20140129053533-dcx97b9opmqzrhmw
-rw-r--r--addons/sale/res_config.py2
1 files changed, 1 insertions, 1 deletions
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: