2009-10-14 11:15:34 +00:00
# -*- coding: utf-8 -*-
2009-06-24 13:06:13 +00:00
##############################################################################
2010-06-18 07:23:59 +00:00
#
2009-06-24 13:06:13 +00:00
# OpenERP, Open Source Management Solution
2010-01-12 09:18:39 +00:00
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
2009-06-24 13:06:13 +00:00
#
# This program is free software: you can redistribute it and/or modify
2009-10-14 11:15:34 +00:00
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
2009-06-24 13:06:13 +00:00
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2009-10-14 11:15:34 +00:00
# GNU Affero General Public License for more details.
2009-06-24 13:06:13 +00:00
#
2009-10-14 11:15:34 +00:00
# You should have received a copy of the GNU Affero General Public License
2010-06-18 07:23:59 +00:00
# along with this program. If not, see <http://www.gnu.org/licenses/>.
2009-06-24 13:06:13 +00:00
#
##############################################################################
from osv import fields , osv
class res_company ( osv . osv ) :
_inherit = " res.company "
_columns = {
2010-09-29 13:44:00 +00:00
' overdue_msg ' : fields . text ( ' Overdue Payments Message ' , translate = True ) ,
2010-08-13 14:14:06 +00:00
' property_reserve_and_surplus_account ' : fields . property (
' account.account ' ,
type = ' many2one ' ,
relation = ' account.account ' ,
2010-09-15 06:10:46 +00:00
string = " Reserve and Profit/Loss Account " ,
2010-08-13 14:14:06 +00:00
view_load = True ,
2010-11-02 08:31:53 +00:00
domain = " [( ' type ' , ' = ' , ' other ' )] " ,
2010-10-13 09:45:27 +00:00
help = " This Account is used for transferring Profit/Loss(If It is Profit: Amount will be added, Loss : Amount will be deducted.), Which is calculated from Profit & Loss Report " ) ,
2009-06-24 13:06:13 +00:00
}
_defaults = {
2011-08-24 23:06:21 +00:00
' overdue_msg ' : ''' Our records indicate that the following payments are still due. If the amount
has already been paid , please disregard this notice . However , if you have any
queries regarding your account , please contact us .
Thank you in advance .
2011-08-24 22:51:52 +00:00
'''
2009-06-24 13:06:13 +00:00
}
2010-09-29 13:44:00 +00:00
2009-06-24 13:06:13 +00:00
res_company ( )
2010-06-18 07:23:59 +00:00
2011-08-24 22:51:52 +00:00
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: