diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 43f5310324c..c7749b317ac 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -129,6 +129,7 @@ class account_voucher(osv.osv): journal_id = context.get('journal_id', False) if journal_id: journal = journal_pool.browse(cr, uid, journal_id, context=context) + print "jpurnallll",journal if journal.currency: return journal.currency.id return False @@ -1372,6 +1373,7 @@ class account_voucher_line(osv.osv): 'amount_unreconciled': fields.function(_compute_balance, multi='dc', type='float', string='Open Balance', store=True, digits_compute=dp.get_precision('Account')), 'company_id': fields.related('voucher_id','company_id', relation='res.company', type='many2one', string='Company', store=True, readonly=True), 'currency_id': fields.function(_currency_id, string='Currency', type='many2one', relation='res.currency', readonly=True), + } _defaults = { 'name': '', diff --git a/addons/account_voucher/account_voucher_view.xml b/addons/account_voucher/account_voucher_view.xml index 0f13e0975d0..34e7cf7d406 100644 --- a/addons/account_voucher/account_voucher_view.xml +++ b/addons/account_voucher/account_voucher_view.xml @@ -73,6 +73,7 @@ + diff --git a/addons/account_voucher/voucher_payment_receipt_view.xml b/addons/account_voucher/voucher_payment_receipt_view.xml index 0607d01b14d..5555f9f27f1 100644 --- a/addons/account_voucher/voucher_payment_receipt_view.xml +++ b/addons/account_voucher/voucher_payment_receipt_view.xml @@ -321,21 +321,19 @@ - - - + - - - - Pay + + + Pay - by + + by - + - - - - - - - - + + + + + + + + + - - + + + @@ -392,9 +393,9 @@ - - - + + + @@ -446,6 +447,7 @@ +