~mikel-martin/c2c-rd-addons/6.1

« back to all changes in this revision

Viewing changes to chricar_account_move_line_deloitte/account_move_line_deloitte.py

  • Committer: openerp@bazaar.camptocamp.net
  • Date: 2011-09-20 13:59:04 UTC
  • mto: This revision was merged to the branch mainline in revision 122.
  • Revision ID: openerp@bazaar.camptocamp.net-20110920135904-mkt0de1c649502fo
[ADD] import utility form Klinger accounting

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
 
 
3
#!/usr/bin/python
 
4
# -*- encoding: utf-8 -*-
 
5
##############################################
 
6
#
 
7
# ChriCar Beteiligungs- und Beratungs- GmbH
 
8
# Copyright (C) ChriCar Beteiligungs- und Beratungs- GmbH
 
9
# all rights reserved
 
10
# created 2009-10-17 12:10:57+02
 
11
#
 
12
# WARNING: This program as such is intended to be used by professional
 
13
# programmers who take the whole responsability of assessing all potential
 
14
# consequences resulting from its eventual inadequacies and bugs.
 
15
# End users who are looking for a ready-to-use solution with commercial
 
16
# garantees and support are strongly adviced to contract a Free Software
 
17
# Service Company.
 
18
#
 
19
# This program is Free Software; you can redistribute it and/or
 
20
# modify it under the terms of the GNU General Public License
 
21
# as published by the Free Software Foundation; either version 3
 
22
# of the License, or (at your option) any later version.
 
23
#
 
24
# This program is distributed in the hope that it will be useful,
 
25
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
26
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
27
# GNU General Public License for more details.
 
28
#
 
29
# You should have received a copy of the GNU General Public License
 
30
# along with this program; if not, see <http://www.gnu.org/licenses/> or
 
31
# write to the Free Software Foundation, Inc.,
 
32
# 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
33
#
 
34
###############################################
 
35
import time
 
36
from osv import fields,osv
 
37
import pooler
 
38
 
 
39
class chricar_account_move_import_deny(osv.osv):
 
40
     _name = "chricar.account_move_import_deny"
 
41
 
 
42
     _columns = {
 
43
       'company_id'         : fields.many2one('res.company', 'Company'),
 
44
       'name'               : fields.char    ('Voucher', size=16, required=True),
 
45
       'code'               : fields.char    ('Code', size=8),
 
46
       'date_start'         : fields.date    ('Date Start'),
 
47
       'date_stop'          : fields.date    ('Date Stop'),
 
48
}
 
49
     _defaults = {
 
50
}
 
51
     _order = "code"
 
52
chricar_account_move_import_deny()
 
53
 
 
54
class chricar_account_tax_code_deloitte(osv.osv):
 
55
     _name = "chricar.account_tax_code_deloitte"
 
56
 
 
57
     _columns = {
 
58
       'company_id'         : fields.many2one('res.company', 'Company'),
 
59
       'name'               : fields.char    ('Tax Name', size=32, required=True),
 
60
       'code'               : fields.char    ('Code', size=8, required=True),
 
61
       'account_id'         : fields.many2one('account.account','Tax Account',required=True),
 
62
       'percent'            : fields.float   ('Percent', digits=(8,4), required=True, help=""),
 
63
}
 
64
     _order = "code"
 
65
chricar_account_tax_code_deloitte()
 
66
 
 
67
class chricar_account_opening_deloitte(osv.osv):
 
68
     _name = "chricar.account_opening_deloitte"
 
69
 
 
70
     _columns = {
 
71
       'company_id'         : fields.many2one('res.company', 'Company'),
 
72
       'account'            : fields.char    ('Account', size=8, required=True),
 
73
       'amount'             : fields.float   ('Amount', required=True, digits=(16,2)),
 
74
       'name'               : fields.char    ('Account Name', size=64, required=True),
 
75
       'date'               : fields.char    ('Date', size=16, required=True),
 
76
}
 
77
     _order = "account"
 
78
 
 
79
chricar_account_opening_deloitte()
 
80
 
 
81
 
 
82
class chricar_account_move_line_deloitte(osv.osv):
 
83
     _name = "chricar.account_move_line_deloitte"
 
84
 
 
85
     _columns = {
 
86
       'company_id'         : fields.many2one('res.company', 'Company'),
 
87
       'account'            : fields.char    ('Account', size=8, required=True),
 
88
       'amount'             : fields.float   ('Amount', required=True, digits=(16,2)),
 
89
       'analytic_account'   : fields.char    ('Analytic Account', size=8),
 
90
       'ba'                 : fields.char    ('BA', size=8),
 
91
       'bc'                 : fields.char    ('BC', size=8),
 
92
       'counter_account'    : fields.char    ('Counter Account', size=8),
 
93
       'date'               : fields.char    ('Date', size=16, required=True),
 
94
       'description'        : fields.char    ('text', size=128),
 
95
       'fix'                : fields.char    ('Fix', size=8),
 
96
       'fnr'                : fields.char    ('FNR', size=8),
 
97
       'lc'                 : fields.char    ('LC', size=8),
 
98
       'name'               : fields.char    ('Voucher', size=16, required=True),
 
99
       'symbol'             : fields.char    ('Symbol', size=8),
 
100
       'tax_code'           : fields.char    ('Tax Code', size=8),
 
101
}
 
102
     _defaults = {
 
103
       'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id,
 
104
}
 
105
     _order = "name"
 
106
chricar_account_move_line_deloitte()
 
107