diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 461d0a4aafb52780bc7357943925a9c8c6289eb4..ab2cb8952542136a98a629b31e73561f41c2e480 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -546,27 +546,6 @@ class pos_session(osv.osv): statement.unlink(context=context) return super(pos_session, self).unlink(cr, uid, ids, context=context) - def open_cb(self, cr, uid, ids, context=None): - """ - call the Point Of Sale interface and set the pos.session to 'opened' (in progress) - """ - if context is None: - context = dict() - - if isinstance(ids, (int, long)): - ids = [ids] - - this_record = self.browse(cr, uid, ids[0], context=context) - this_record.signal_workflow('open') - - context.update(active_id=this_record.id) - - return { - 'type' : 'ir.actions.act_url', - 'url' : '/pos/web/', - 'target': 'self', - } - def login(self, cr, uid, ids, context=None): this_record = self.browse(cr, uid, ids[0], context=context) this_record.write({ @@ -584,7 +563,7 @@ class pos_session(osv.osv): for st in record.statement_ids: st.button_open() - return self.open_frontend_cb(cr, uid, ids, context=context) + return True def wkf_action_opening_control(self, cr, uid, ids, context=None): return self.write(cr, uid, ids, {'state' : 'opening_control'}, context=context) diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index e192e5e9322e88a05fd3a1e1eaf60a7b449aa64f..be2ef10d22762454401118b0f38e1ef2f6f6bdbf 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -772,7 +772,6 @@ <field name="arch" type="xml"> <form string="Point of Sale Session"> <header> - <button name="open_cb" type="object" string="Validate & Open Session" states="opening_control" class="oe_highlight"/> <button name="open_frontend_cb" type="object" string="Continue Selling" states="opened" class="oe_highlight"/> <button name="cashbox_control" type="workflow" string="End of Session"