~openerp-india/openerp-india/7.0

« back to all changes in this revision

Viewing changes to attachment_size_limit/res_company.py

  • Committer: Parth Gajjar (Open ERP)
  • Date: 2013-06-14 13:47:59 UTC
  • mto: (1.10.29 trunk-nco)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: pga@tinyerp.com-20130614134759-r272xs9j4d85zoyy
[ADD]added 5 modules. attachment_size_limit, web_gui, web_keyboard_shortcuts, web_mail_img, web_pdf_viewer

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
##############################################################################
 
3
#
 
4
#    OpenERP, Open Source Business Applications
 
5
#    Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>).
 
6
#
 
7
#    This program is free software: you can redistribute it and/or modify
 
8
#    it under the terms of the GNU Affero General Public License as
 
9
#    published by the Free Software Foundation, either version 3 of the
 
10
#    License, or (at your option) any later version.
 
11
#
 
12
#    This program is distributed in the hope that it will be useful,
 
13
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
#    GNU Affero General Public License for more details.
 
16
#
 
17
#    You should have received a copy of the GNU Affero General Public License
 
18
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
#
 
20
##############################################################################
 
21
 
 
22
from openerp.osv import fields, osv
 
23
 
 
24
 
 
25
class res_company(osv.Model):
 
26
    _name = "res.company"
 
27
    _inherit = "res.company"
 
28
    
 
29
    _columns = {
 
30
           "attachment_size": fields.integer("Max. Attachment Size( MB )"),
 
31
           "attachment_num": fields.integer("Attachment allowed(per Record)"),
 
32
           "user_blocked": fields.many2many('res.users', 'attachment_user_rel', 'user_id', 'attach_id', 'User Blocked'),
 
33
    }
 
34