[ADD] Add many2many subtype_id field in mail.subscription
bzr revid: fka@tinyerp.com-20120730090804-x3lpju3fq11hg703
This commit is contained in:
@@ -42,6 +42,10 @@ class mail_subscription(osv.osv):
|
||||
help='Id of the followed resource'),
|
||||
'user_id': fields.many2one('res.users', string='Related User',
|
||||
ondelete='cascade', required=True, select=1),
|
||||
'subtype_ids': fields.many2many('mail.message.subtype',
|
||||
'mail_message_subtyp_rel',
|
||||
'subscription_id', 'subtype_id', 'Subtype',
|
||||
help = "linking some subscription to several subtype for projet/task"),
|
||||
}
|
||||
|
||||
class mail_notification(osv.osv):
|
||||
|
||||
@@ -20,6 +20,27 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="view_mail_subscription_form">
|
||||
<field name="name">mail.subscription.form</field>
|
||||
<field name="model">mail.subscription</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Subscription Form" version="7.0">
|
||||
<sheet>
|
||||
<group>
|
||||
<group>
|
||||
<field name="res_model"/>
|
||||
<field name="user_id"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="res_id"/>
|
||||
<field name="subtype_ids" widget="many2many_tags"/>
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<!--
|
||||
NOTIFICATION
|
||||
!-->
|
||||
|
||||
Reference in New Issue
Block a user