- # replace the label of the field payment_rate
- currency_obj = self.pool.get('res.currency')
- base_currency_id = currency_obj.search(cr, uid, [('rate','=',1.0),('rate_ids','=',1.0)], context=context)
- symbol = base_currency_id and currency_obj.name_get(cr, uid, base_currency_id, context=context)[0][1]
- string = _("Rate for this operation: 1 %s is") % symbol
- payment_rate_field = doc.xpath("//field[@name='payment_rate']")
- for field in payment_rate_field:
- field.set('string', string)
-