Hi
I would add a many2many field to my form to get able to add some more users as follower to my module
This is my python code now
def default_recipient(self):
rec_type = self.env.context.get('rec', False)
if rec_type == 'recipient':
return self.env.user.company_id.partner_idrecipient_partner_id = fields.Many2many(
'res.partner',
string='Recipient',
track_visibility='onchange',
default=default_recipient)
and this is .xml file
<group>
<field name="recipient_partner_id" readonly="1"/>
<field name="name" attrs="{'readonly': [('state', 'not in', ['draft'])]}"/>
</group>
so how can i add this partner as follower
do any one know how to do?
Thanks guys