[IMP]account_voucher: passing residual amount instead of total amount in act window of voucher.

bzr revid: vra@tinyerp.com-20101006092634-6ntcl0fynuz0lk86
This commit is contained in:
vra 2010-10-06 14:56:34 +05:30
parent f1e82fabde
commit ee3b30ab7a
1 changed files with 1 additions and 1 deletions

View File

@ -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"/>