[WIZARD] -default value for payment method in point of sale (journal_id)
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 15 Jan 2014 12:04:26 +0000 (13:04 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 15 Jan 2014 12:04:26 +0000 (13:04 +0100)
__init__.py
wizard/__init__.py [new file with mode: 0644]
wizard/pos_payment.py [new file with mode: 0644]

index a6de979..2bd0168 100644 (file)
@@ -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 (file)
index 0000000..0e5ab72
--- /dev/null
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Bikecoop module for OpenERP, Custom module for bike coop'
+#    Copyright (C) 2012-2014 L'Heureux Cyclage (<http://www.heureux-cyclage.org>)
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+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 (file)
index 0000000..be58eab
--- /dev/null
@@ -0,0 +1,36 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Bikecoop module for OpenERP, Custom module for bike coop'
+#    Copyright (C) 2012-2014 L'Heureux Cyclage (<http://www.heureux-cyclage.org>)
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+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: