[MERGE] lp:~openerp-dev/openobject-addons/trunk-review_module_desc-psi
[odoo/odoo.git] / addons / point_of_sale / account_bank_statement.py
1 # -*- coding: utf-8 -*-
2 ##############################################################################
3 #
4 #    OpenERP, Open Source Management Solution
5 #    Copyright (C) 2004-2008 PC Solutions (<http://pcsol.be>). All Rights Reserved
6 #    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
7 #
8 #    This program is free software: you can redistribute it and/or modify
9 #    it under the terms of the GNU Affero General Public License as
10 #    published by the Free Software Foundation, either version 3 of the
11 #    License, or (at your option) any later version.
12 #
13 #    This program is distributed in the hope that it will be useful,
14 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #    GNU Affero General Public License for more details.
17 #
18 #    You should have received a copy of the GNU Affero General Public License
19 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 #
21 ##############################################################################
22
23 from osv import fields, osv
24
25 class account_journal(osv.osv):
26     _inherit = 'account.journal'
27     _columns = {
28         'journal_user': fields.boolean('PoS Payment Method', help="Check this box if this journal define a payment method that can be used in point of sales."),
29
30         'opening_control': fields.boolean('Opening Control', help="If you want the journal should be control at opening, check this option"),
31         'closing_control': fields.boolean('Closing Control', help="If you want the journal should be control at closing, check this option"),
32
33         'amount_authorized_diff' : fields.float('Amount Authorized Difference'),
34         'self_checkout_payment_method' : fields.boolean('Self Checkout Payment Method'),
35     }
36     _defaults = {
37         'opening_control' : True,
38         'closing_control' : True,
39         'self_checkout_payment_method' : False,
40     }
41
42 account_journal()
43
44 class account_cash_statement(osv.osv):
45     _inherit = 'account.bank.statement'
46     _columns = {
47         'pos_session_id' : fields.many2one('pos.session'),
48     }
49 account_cash_statement()
50
51 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: