diff options
| author | Thibault Delavallée <tde@openerp.com> | 2012-04-03 16:57:44 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2012-04-03 16:57:44 +0200 |
| commit | f8ad1d77e4c26890383566fa8949cf0b1102a7c2 (patch) | |
| tree | 5369f886b23af3451fde3995c62c582f5e1f4f92 /doc/api | |
| parent | aa0205c8498a0b3f25c5ab28e1a4f907c3f8c3f8 (diff) | |
[DOC] Updated documentation.
bzr revid: tde@openerp.com-20120403145744-xxibrjlzhersfmkb
Diffstat (limited to 'doc/api')
| -rw-r--r-- | doc/api/need_action_specs.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/need_action_specs.rst b/doc/api/need_action_specs.rst index 1be92586e7f..c5c44419362 100644 --- a/doc/api/need_action_specs.rst +++ b/doc/api/need_action_specs.rst @@ -1,14 +1,14 @@ Need action mechanism ===================== -base.needaction mixin class -+++++++++++++++++++++++++++ +ir.needaction mixin class +++++++++++++++++++++++++++ This revision adds a mixin class for objects using the need action feature. Need action feature can be used by objects willing to be able to signal that an action is required on a particular record. If in the business logic an action must be performed by somebody, for instance validation by a manager, this mechanism allows to set a list of users asked to perform an action. -This class wraps a table (base.needaction_users_rel) that behaves like a many2many field. However, no field is added to the model inheriting from base.needaction. The mixin class manages the low-level considerations of updating relationships. Every change made on the record calls a method that updates the relationships. +This class wraps a class (ir.needaction_users) that behaves like a many2many field. However, no field is added to the model inheriting from base.needaction. The mixin class manages the low-level considerations of updating relationships. Every change made on the record calls a method that updates the relationships. Objects using the need_action feature should override the ``get_needaction_user_ids`` method. This methods returns a dictionary whose keys are record ids, and values a list of user ids, like in a many2many relationship. Therefore by defining only one method, you can specify if an action is required by defining the users that have to do it, in every possible situation. |
