[PYTHON][TRANS][VIEW] ~pos order is_cpv status based on cpv payment method
[burette/coup_de_pouce_velo.git] / account.py
diff --git a/account.py b/account.py
new file mode 100644 (file)
index 0000000..40d8581
--- /dev/null
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+# Copyright 2020 L'Heureux Cyclage
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+
+from openerp.osv import osv
+from openerp.osv import orm
+from openerp.osv import fields
+
+
+class account_journal(orm.Model):
+    _inherit = 'account.journal'
+
+    _columns = {
+        'is_cpv': fields.boolean(
+            '«Coup de Pouce Vélo» payment method',
+            help='Check this box if this is a «Coup de Pouce Vélo» payment method'
+        ),
+    }