From ee3b30ab7a14c36b90dcd8549bc7bcf6f0dff4ff Mon Sep 17 00:00:00 2001 From: vra Date: Wed, 6 Oct 2010 14:56:34 +0530 Subject: [PATCH] [IMP]account_voucher: passing residual amount instead of total amount in act window of voucher. bzr revid: vra@tinyerp.com-20101006092634-6ntcl0fynuz0lk86 --- addons/account_voucher/account_voucher_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_voucher/account_voucher_view.xml b/addons/account_voucher/account_voucher_view.xml index 343211c264b..b089825da9b 100644 --- a/addons/account_voucher/account_voucher_view.xml +++ b/addons/account_voucher/account_voucher_view.xml @@ -223,7 +223,7 @@ name="Pay Invoice" view_mode="form,tree" domain="[('partner_id', '=', partner_id)]" - context="{'default_partner_id': partner_id, 'default_amount':amount_total, 'default_name':name, 'default_state': 'draft', 'invoice_type':type, 'default_type': type in ('out_invoice','out_refund') and 'receipt' or 'payment'}" + context="{'default_partner_id': partner_id, 'default_amount':residual, 'default_name':name, 'default_state': 'draft', 'invoice_type':type, 'default_type': type in ('out_invoice','out_refund') and 'receipt' or 'payment'}" res_model="account.voucher" src_model="account.invoice"/>