Meera Trambadia (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-734588-mtr into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #734588 in OpenERP Addons: "point of sale can't pay"
https://bugs.launchpad.net/openobject-addons/+bug/734588
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-734588-mtr/+merge/77284
POS:The users defined on the journal can now finish the payments,irrespective
of who opened the journal --fixes-734588
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-734588-mtr/+merge/77284
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-734588-mtr.
=== modified file 'point_of_sale/wizard/pos_box_entries.py'
--- point_of_sale/wizard/pos_box_entries.py 2011-09-25 21:54:57 +0000
+++ point_of_sale/wizard/pos_box_entries.py 2011-09-28 06:38:25 +0000
@@ -39,7 +39,7 @@
statement_obj = self.pool.get('account.bank.statement')
j_ids = journal_obj.search(cr, uid, [('journal_user','=',1)], context=context)
- obj_ids = statement_obj.search(cr, uid, [('state', '=', 'open'), ('user_id', '=', uid), ('journal_id', 'in', j_ids)], context=context)
+ obj_ids = statement_obj.search(cr, uid, [('state', '!=', 'confirm'), ('journal_id', 'in', ids)], context=context)
res = statement_obj.read(cr, uid, obj_ids, ['journal_id'], context=context)
res = [(r['journal_id']) for r in res]
if not len(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