[FIX] website: more robust inherit between footer_custom and footer_default
[odoo/odoo.git] / addons / l10n_multilang / account.py
1 # -*- coding: utf-8 -*-
2 ##############################################################################
3 #
4 #    OpenERP, Open Source Management Solution
5 #    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
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
23 from openerp.osv import fields, osv
24 from openerp.tools.translate import _
25
26
27 #in this file, we mostly add the tag translate=True on existing fields that we now want to be translated
28
29 class account_account_template(osv.osv):
30     _inherit = 'account.account.template'
31     _columns = {
32         'name': fields.char('Name', required=True, select=True, translate=True),
33     }
34
35 class account_account(osv.osv):
36     _inherit = 'account.account'
37     _columns = {
38         'name': fields.char('Name', required=True, select=True, translate=True),
39     }
40
41 class account_tax(osv.osv):
42     _inherit = 'account.tax'
43     _columns = {
44         'name': fields.char('Tax Name', required=True, select=True, translate=True),
45     }
46
47
48 class account_tax_template(osv.osv):
49     _inherit = 'account.tax.template'
50     _columns = {
51         'name': fields.char('Tax Name', required=True, select=True, translate=True),
52     }
53
54
55 class account_tax_code_template(osv.osv):
56     _inherit = 'account.tax.code.template'
57     _columns = {
58         'name': fields.char('Tax Case Name', required=True, translate=True),
59     }
60
61
62 class account_chart_template(osv.osv):
63     _inherit = 'account.chart.template'
64     _columns={
65         'name': fields.char('Name', required=True, translate=True),
66         'spoken_languages': fields.char('Spoken Languages', help="State here the languages for which the translations of templates could be loaded at the time of installation of this localization module and copied in the final object when generating them from templates. You must provide the language codes separated by ';'"),
67     }
68     _order = 'name'
69
70
71 class account_fiscal_position(osv.osv):
72     _inherit = 'account.fiscal.position'
73     _columns = {
74         'name': fields.char('Fiscal Position', required=True, translate=True),
75         'note': fields.text('Notes', translate=True),
76     }
77
78
79 class account_fiscal_position_template(osv.osv):
80     _inherit = 'account.fiscal.position.template'
81     _columns = {
82         'name': fields.char('Fiscal Position Template', required=True, translate=True),
83         'note': fields.text('Notes', translate=True),
84     }
85
86
87 class account_journal(osv.osv):
88     _inherit = 'account.journal'
89     _columns = {
90         'name': fields.char('Journal Name', required=True, translate=True),
91     }
92
93
94 class account_analytic_account(osv.osv):
95     _inherit = 'account.analytic.account'
96     _columns = {
97         'name': fields.char('Account Name', required=True, translate=True),
98     }
99
100
101 class account_analytic_journal(osv.osv):
102     _inherit = 'account.analytic.journal'
103     _columns = {
104         'name': fields.char('Journal Name', required=True, translate=True),
105     }