#'static/src/css/pos_nohover.css', # this css has no hover effects (for resistive touchscreens)
],
'qweb': ['static/src/xml/pos.xml'],
- 'update_xml': [],
+ 'update_xml': ['view/pos_membership.xml'],
'demo_xml': [],
'test': [],
'installable': True,
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
-# ReMembership is distributed in the hope that it will be useful,
+# POS Membership 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.
]
+class pos_session(osv.osv):
+ _inherit = 'pos.session'
+
+ def open_cb(self, cr, uid, ids, context=None):
+ """
+ Avoid 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._workflow_signal('open')
+
+ context.update(active_id=this_record.id)
+
+ return {
+ }
+pos_session()
+
+
+
class pos_order(osv.osv):
_inherit = 'pos.order'
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+ <data>
+ <delete model="ir.ui.menu" id="point_of_sale.menu_pos_session_opening"/>
+
+ <record id="view_pos_session_form" model="ir.ui.view">
+ <field name="name">pos.session.form</field>
+ <field name="model">pos.session</field>
+ <field name="inherit_id" ref="point_of_sale.view_pos_session_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="//button[@name='open_frontend_cb']" position="attributes">
+ <attribute name="invisible">1</attribute>
+ </xpath>
+ </field>
+ </record>
+ </data>
+</openerp>