[ADD] mail.group: added a 'models' field, to link groups to models. Purpose: group will be able to aggregate messages, and users following the group will receive notifications. Example: being able to follow all leads.

bzr revid: tde@openerp.com-20120419155339-etlzmi5jo5d8iwgf
This commit is contained in:
Thibault Delavallée
2012-04-19 17:53:39 +02:00
parent 491e8ad9f6
commit ae0dbd2145
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -119,6 +119,8 @@ class mail_group(osv.osv):
ondelete='set null', required=True, select=1,
help="Responsible of the group that has all rights on the record."),
'public': fields.boolean('Public', help='This group is visible by non members. Invisible groups can add members through the invite button.'),
'models': fields.many2many('ir.model', rel='mail_group_models_rel', id1='mail_group_id', id2='model_id',
string='Linked models', help='Linked models'),
'photo_big': fields.binary('Full-size photo', help='Field holding the full-sized PIL-supported and base64 encoded version of the group image. The photo field is used as an interface for this field.'),
'photo': fields.function(_get_photo, fnct_inv=_set_photo, string='Photo', type="binary",
store = {
+5
View File
@@ -58,6 +58,11 @@
<field name="responsible_id" colspan="2"/>
<newline/>
<field name="description" colspan="4"/>
<field name="models" colspan="4">
<tree string="Document models">
<field name="name"/>
</tree>
</field>
</group>
<group colspan="1" col="2">
<separator string="Group image" colspan="2"/>