~vauxoo/addons-vauxoo/8.0-import_tax_tariff-dev-yani-rev-2

« back to all changes in this revision

Viewing changes to send_author_mail/model/mail_notification.py

  • Committer: Julio Serna
  • Date: 2014-04-08 21:48:27 UTC
  • mto: (543.7.449 7.0-addons-vauxoo)
  • mto: This revision was merged to the branch mainline in revision 857.
  • Revision ID: julio@vauxoo.com-20140408214827-a5sx0b8hr3xznpzv
[ADD] added new module to sent your own email sent

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
# -*- encoding: utf-8 -*-
 
3
###########################################################################
 
4
#    Module Writen to OpenERP, Open Source Management Solution
 
5
#    Copyright (C) 2013 Vauxoo (<http://vauxoo.com>).
 
6
#    All Rights Reserved
 
7
###############Credits######################################################
 
8
#    Coded by: vauxoo consultores (info@vauxoo.com)
 
9
#############################################################################
 
10
#    This program is free software: you can redistribute it and/or modify
 
11
#    it under the terms of the GNU Affero General Public License as published by
 
12
#    the Free Software Foundation, either version 3 of the License, or
 
13
#    (at your option) any later version.
 
14
#
 
15
#    This program is distributed in the hope that it will be useful,
 
16
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
#    GNU Affero General Public License for more details.
 
19
#
 
20
#    You should have received a copy of the GNU Affero General Public License
 
21
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
22
################################################################################
 
23
 
 
24
 
 
25
from openerp.osv import osv, fields
 
26
 
 
27
class mail_notification(osv.Model):
 
28
    
 
29
    _inherit = 'mail.notification'
 
30
    
 
31
    def get_partners_to_notify(self, cr, uid, message, partners_to_notify=None, context=None):
 
32
        res  = super(mail_notification, 
 
33
                        self).get_partners_to_notify(cr, uid,
 
34
                                    message,
 
35
                                    partners_to_notify=partners_to_notify,
 
36
                                    context=context)
 
37
        return res
 
38
        
 
39
        
 
40