[MERGE] merge with main branch

bzr revid: mra@mra-laptop-20100709075932-4xps0jlvosu2xf9a
This commit is contained in:
Mustufa Rangwala
2010-07-09 13:29:32 +05:30
2 changed files with 2 additions and 2 deletions
@@ -28,7 +28,7 @@
<field name="partner_bank" invisible="1"/>
<field name="account_id" invisible="1"/>
<field name="nbr" sum="# of Lines"/>
<field name="product_qty"/>
<field name="product_qty" sum="Qty"/>
<field name="reconciled" sum="# Reconciled"/>
<field name="price_average" sum="Average Price"/>
<field name="price_total" sum="Total Price"/>
@@ -35,7 +35,7 @@ class account_change_currency(osv.osv_memory):
context = {}
state = obj_inv.browse(cr, uid, context['active_id']).state
if obj_inv.browse(cr, uid, context['active_id']).state != 'draft':
raise osv.except_osv(_('Error'), _('You can not change currency for Open Invoice !'))
raise osv.except_osv(_('Error'), _('You can only change currency for Draft Invoice !'))
pass
def change_currency(self, cr, uid, ids, context=None):