Turkesh Patel (openERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-payment_receipt-tpa into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-payment_receipt-tpa/+merge/99255
Account_voucher
============================================
[FIX]: in payment receipt if payment is done then remove the pay button.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-payment_receipt-tpa/+merge/99255
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-payment_receipt-tpa.
=== modified file 'account_voucher/account_voucher.py'
--- account_voucher/account_voucher.py 2012-03-22 14:36:54 +0000
+++ account_voucher/account_voucher.py 2012-03-26 05:12:22 +0000
@@ -46,10 +46,10 @@
def _check_paid(self, cr, uid, ids, name, args, context=None):
res = {}
for voucher in self.browse(cr, uid, ids, context=context):
- ok = True
+ ok = False
for line in voucher.move_ids:
- if (line.account_id.type, 'in', ('receivable', 'payable')) and not line.reconcile_id:
- ok = False
+ if (line.account_id.type, 'in', ('receivable', 'payable')) and line.reconcile_id:
+ ok = True
res[voucher.id] = ok
return res
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp