summaryrefslogtreecommitdiff
path: root/addons/account_check_writing/account.py
diff options
context:
space:
mode:
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>2012-01-30 17:13:49 +0100
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>2012-01-30 17:13:49 +0100
commit4a94de154b58b9b2d133593dcff66d533f2ec2e0 (patch)
treeb6f2b8d394448e07cf9e1195cf315e39aaa08881 /addons/account_check_writing/account.py
parente25667ffa3db9fe5f269f48094184a2e04d9bfc6 (diff)
parent1f796b89d9f6123325a2f173ba7858db24fae795 (diff)
[MERGE] added account_check_writing module
bzr revid: qdp-launchpad@openerp.com-20120130161349-2xvk0p3xnar67gkf
Diffstat (limited to 'addons/account_check_writing/account.py')
-rw-r--r--addons/account_check_writing/account.py50
1 files changed, 50 insertions, 0 deletions
diff --git a/addons/account_check_writing/account.py b/addons/account_check_writing/account.py
new file mode 100644
index 00000000000..4dbbc245033
--- /dev/null
+++ b/addons/account_check_writing/account.py
@@ -0,0 +1,50 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+# This program is free software: you can redistribute it and/or modify
+# 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.
+#
+# 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
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from osv import osv,fields
+
+class account_journal(osv.osv):
+ _inherit = "account.journal"
+
+ _columns = {
+ 'allow_check_writing': fields.boolean('Allow Check writing', help='Check this if the journal is to be used for writing checks.'),
+ 'use_preprint_check': fields.boolean('Use Preprinted Check'),
+ }
+
+account_journal()
+
+class res_company(osv.osv):
+ _inherit = "res.company"
+ _columns = {
+ 'check_layout': fields.selection([
+ ('top', 'Check on Top'),
+ ('middle', 'Check in middle'),
+ ('bottom', 'Check on bottom'),
+ ],"Choose Check layout",
+ help="Check on top is compatible with Quicken, QuickBooks and Microsoft Money. Check in middle is compatible with Peachtree, ACCPAC and DacEasy. Check on bottom is compatible with Peachtree, ACCPAC and DacEasy only" ),
+ }
+
+ _defaults = {
+ 'check_layout' : lambda *a: 'top',
+ }
+
+res_company()
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: