Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Social Network (mail)
|
Technical Name |
smile_followers |
License | AGPL-3 |
Website | http://www.smile.fr |
Versions | 8.0 9.0 |
Features
- Disable auto-subscribe for users
- Activation from user preferences
Usage
from openerp.addons.smile_followers.tools import AddFollowers, add_followers
@AddFollowers(fields=['restrict_partner_id']) # by default fields=['partner_id'] class StockMove(models.Model):
_name = 'stock.move' _inherit = ['stock.move', 'mail.thread']
- class AccountMove(models.Model):
_name = 'account.move' _inherit = ['account.move', 'mail.thread']
@api.multi @add_followers(fields=['partner_id']) # by default fields=['partner_id']. In my sample, fields arg is not useful def post(self):
return super(AccountMove, self).post()
Suggestions & Feedback to: isabelle.richard@smile.fr & corentin.pouhet-brunerie@smile.fr
Please log in to comment on this module