From 3649162a2d52b295a8897d2d73bb8982c6705635 Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Wed, 15 Jan 2014 13:04:26 +0100 Subject: [PATCH] [WIZARD] -default value for payment method in point of sale (journal_id) --- __init__.py | 1 + wizard/__init__.py | 26 ++++++++++++++++++++++++++ wizard/pos_payment.py | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 wizard/__init__.py create mode 100644 wizard/pos_payment.py diff --git a/__init__.py b/__init__.py index a6de979..2bd0168 100644 --- a/__init__.py +++ b/__init__.py @@ -22,5 +22,6 @@ ############################################################################## import bikecoop +import wizard # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/wizard/__init__.py b/wizard/__init__.py new file mode 100644 index 0000000..0e5ab72 --- /dev/null +++ b/wizard/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Bikecoop module for OpenERP, Custom module for bike coop' +# Copyright (C) 2012-2014 L'Heureux Cyclage () +# +# This file is a part of Bikecoop +# +# Bikecoop is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Bikecoop 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +import pos_payment + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/wizard/pos_payment.py b/wizard/pos_payment.py new file mode 100644 index 0000000..be58eab --- /dev/null +++ b/wizard/pos_payment.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Bikecoop module for OpenERP, Custom module for bike coop' +# Copyright (C) 2012-2014 L'Heureux Cyclage () +# +# This file is a part of Bikecoop +# +# Bikecoop is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Bikecoop 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +from openerp.osv import osv + + +class pos_make_payment(osv.osv_memory): + _inherit = 'pos.make.payment' + + _defaults = { + 'journal_id': None, + } + +pos_make_payment() + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: -- 2.20.1