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
#
##############################################################################
2012-12-06 14:56:32 +00:00
from openerp . osv import fields , osv
2009-06-24 13:06:13 +00:00
class res_company ( osv . osv ) :
_inherit = " res.company "
_columns = {
2012-04-02 07:52:37 +00:00
' expects_chart_of_accounts ' : fields . boolean ( ' Expects a Chart of Accounts ' ) ,
2012-07-07 16:36:05 +00:00
' tax_calculation_rounding_method ' : fields . selection ( [
2012-07-11 09:07:53 +00:00
( ' round_per_line ' , ' Round per Line ' ) ,
( ' round_globally ' , ' Round Globally ' ) ,
] , ' Tax Calculation Rounding Method ' ,
help = " If you select ' Round per Line ' : for each tax, the tax amount will first be computed and rounded for each PO/SO/invoice line and then these rounded amounts will be summed, leading to the total amount for that tax. If you select ' Round Globally ' : for each tax, the tax amount will be computed for each PO/SO/invoice line, then these amounts will be summed and eventually this total tax amount will be rounded. If you sell with tax included, you should choose ' Round per line ' because you certainly want the sum of your tax-included line subtotals to be equal to the total amount with taxes. " ) ,
2011-10-28 13:47:24 +00:00
' paypal_account ' : fields . char ( " Paypal Account " , size = 128 , help = " Paypal username (usually email) for receiving online payments. " ) ,
2010-09-29 13:44:00 +00:00
' overdue_msg ' : fields . text ( ' Overdue Payments Message ' , translate = True ) ,
2009-06-24 13:06:13 +00:00
}
_defaults = {
2012-04-02 07:52:37 +00:00
' expects_chart_of_accounts ' : True ,
2012-07-07 16:36:05 +00:00
' tax_calculation_rounding_method ' : ' round_per_line ' ,
2012-07-20 11:40:00 +00:00
' overdue_msg ' : ''' Dear Sir/Madam,
2012-05-10 11:38:26 +00:00
Our records indicate that some payments on your account are still due . Please find details below .
If the amount has already been paid , please disregard this notice . Otherwise , please forward us the total amount stated below .
If you have any queries regarding your account , Please contact us .
Thank you in advance for your cooperation .
Best Regards , '''
2009-06-24 13:06:13 +00:00
}
2010-09-29 13:44:00 +00:00
2010-06-18 07:23:59 +00:00
2011-08-26 11:09:14 +00:00
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: