From e73fdc8d8d428dd1cf918ce3ef2bf0e073b05cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 2 Jul 2012 15:06:07 +0200 Subject: [PATCH] [DOC] ir.needaction: cCleaned comments and documentation. bzr revid: tde@openerp.com-20120702130607-jm185c02au55q1am --- openerp/addons/base/ir/ir_needaction.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/openerp/addons/base/ir/ir_needaction.py b/openerp/addons/base/ir/ir_needaction.py index d9a089916c2..602d915980d 100644 --- a/openerp/addons/base/ir/ir_needaction.py +++ b/openerp/addons/base/ir/ir_needaction.py @@ -27,12 +27,13 @@ from tools.translate import _ class ir_needaction_users_rel(osv.Model): ''' ir_needaction_users_rel holds data related to the needaction mechanism inside OpenERP. A row in this model is characterized - by: - res_model: model of the record requiring an action - - res_id: ID of the record requiring an action - user_id: foreign - key to the res.users table, to the user that has to perform the - action This model can be seen as a many2many, linking - (res_model, res_id) to users (those whose attention is required - on the record). ''' + by: + - res_model: model of the record requiring an action + - res_id: ID of the record requiring an action + - user_id: foreign key to the res.users table, to the user that has to + perform the action + This model can be seen as a many2many, linking (res_model, res_id) to users + (those whose attention is required on the record). ''' _name = 'ir.needaction_users_rel' _description = 'Needaction relationship table' @@ -107,9 +108,6 @@ class ir_needaction_mixin(osv.AbstractModel): - ``needaction_get_action_count``: as ``needaction_get_record_ids`` but returns only the number of action, not the ids (performs a search with count=True) - - ``needaction_get_user_record_references``: for a given uid, get - all the records that ask this user to perform an action. Records - are given as references, a list of tuples (model_name, record_id) The ``ir_needaction_mixin`` class adds a calculated field ``needaction_pending``. This function field allows to state