Thibault Delavallée (OpenERP) has proposed merging
lp:~openerp-dev/openobject-server/trunk-needaction-magical-click-of-win-pouet-tde
into lp:~openerp-dev/openobject-server/trunk-mail-state-tde.
Requested reviews:
OpenERP R&D Team (openerp-dev)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-needaction-magical-click-of-win-pouet-tde/+merge/109350
Pouet !
--
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-needaction-magical-click-of-win-pouet-tde/+merge/109350
Your team OpenERP R&D Team is requested to review the proposed merge of
lp:~openerp-dev/openobject-server/trunk-needaction-magical-click-of-win-pouet-tde
into lp:~openerp-dev/openobject-server/trunk-mail-state-tde.
=== modified file 'openerp/addons/base/ir/ir_needaction.py'
--- openerp/addons/base/ir/ir_needaction.py 2012-06-07 15:16:39 +0000
+++ openerp/addons/base/ir/ir_needaction.py 2012-06-08 12:38:24 +0000
@@ -129,13 +129,20 @@
for id in ids:
res[id] = uid in needaction_user_ids[id]
return res
+
+ def search_needaction_pending(self, cr, uid, self_again, field_name, criterion, context=None):
+ ids = self.needaction_get_record_ids(
+ cr, uid, uid, limit=False, context=context)
+ return [('id', 'in', ids)]
_columns = {
- 'needaction_pending': fields.function(get_needaction_pending, type='boolean',
- string='Need action pending',
- help='If True, this field states that users have to perform an action. \
- This field comes from the needaction mechanism. Please refer \
- to the ir.needaction_mixin class.'),
+ 'needaction_pending': fields.function(
+ get_needaction_pending, type='boolean',
+ fnct_search=search_needaction_pending,
+ string='Need action pending',
+ help="If True, this field states that users have to perform an action." \
+ " This field comes from the needaction mechanism." \
+ " Please refer to the ir.needaction_mixin class."),
}
#------------------------------------------------------
_______________________________________________
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