summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2012-07-02 15:06:07 +0200
committerThibault Delavallée <tde@openerp.com>2012-07-02 15:06:07 +0200
commite73fdc8d8d428dd1cf918ce3ef2bf0e073b05cdd (patch)
tree7002ac15c58d6cad1ea66c27246f86535e85010e
parentdb366d1699ccf70f93e0a96b6e03300c63395f75 (diff)
[DOC] ir.needaction: cCleaned comments and documentation.
bzr revid: tde@openerp.com-20120702130607-jm185c02au55q1am
-rw-r--r--openerp/addons/base/ir/ir_needaction.py16
1 files 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