[FIX] membership: wrong field name in onchange method

bzr revid: rco@openerp.com-20111109113131-pf78lcbphr5igd7l
This commit is contained in:
Raphael Collet 2011-11-09 12:31:31 +01:00
parent 4cf41c666c
commit 1104277a61
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class membership_invoice(osv.osv_memory):
"""This function returns value of product's member price based on product id.
"""
if not product_id:
return {'value': {'unit_price': False}}
return {'value': {'member_price': False}}
return {'value': {'member_price': self.pool.get('product.product').price_get(cr, uid, [product_id])[product_id]}}
def membership_invoice(self, cr, uid, ids, context=None):
@ -67,4 +67,4 @@ class membership_invoice(osv.osv_memory):
membership_invoice()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: