From 6c7ada6035639f9c23e04906308b03081557a015 Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Mon, 4 Feb 2013 13:02:42 +0100 Subject: [PATCH] [depend] -point_of_sale --- __openerp__.py | 2 +- remembership.py | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/__openerp__.py b/__openerp__.py index 4803d53..69eebb8 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -30,7 +30,7 @@ """, 'author': 'L\'Heureux Cyclage - LHC', 'website': 'http://www.heureux-cyclage.org', - 'depends': ['membership', 'point_of_sale'], + 'depends': ['membership'], 'init_xml': [], 'data': [ 'security/ir.model.access.csv', diff --git a/remembership.py b/remembership.py index f1efb31..1c394ad 100644 --- a/remembership.py +++ b/remembership.py @@ -351,22 +351,4 @@ class account_invoice_line(osv.osv): return res account_invoice_line() - - -class pos_make_payment(osv.osv_memory): - _inherit = 'pos.make.payment' - - def check(self, cr, uid, ids, context=None): - """ - Auto invoice orders. Temporarly solution before make partner members just with orders, without invoice. - """ - res = super(pos_make_payment, self).check(cr, uid, ids, context=context) - - order_obj = self.pool.get('pos.order') - order_obj.action_invoice(cr, uid, ids, context=context) - - return res - -pos_make_payment() - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: -- 2.20.1