+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()