[FIX] lunch: remove unused code
This commit is contained in:
@@ -18,11 +18,9 @@ var LunchKanbanController = KanbanController.extend({
|
||||
add_product: '_onAddProduct',
|
||||
change_location: '_onLocationChanged',
|
||||
change_user: '_onUserChanged',
|
||||
edit_order: '_onEditOrder',
|
||||
open_wizard: '_onOpenWizard',
|
||||
order_now: '_onOrderNow',
|
||||
remove_product: '_onRemoveProduct',
|
||||
save_order: '_onSaveOrder',
|
||||
unlink_order: '_onUnlinkOrder',
|
||||
}),
|
||||
|
||||
@@ -134,12 +132,6 @@ var LunchKanbanController = KanbanController.extend({
|
||||
self.reload();
|
||||
});
|
||||
},
|
||||
_onEditOrder: function (ev) {
|
||||
ev.stopPropagation();
|
||||
|
||||
this.editMode = true;
|
||||
this.reload();
|
||||
},
|
||||
_onLocationChanged: function (ev) {
|
||||
var self = this;
|
||||
|
||||
@@ -208,12 +200,6 @@ var LunchKanbanController = KanbanController.extend({
|
||||
self.reload();
|
||||
});
|
||||
},
|
||||
_onSaveOrder: function (ev) {
|
||||
ev.stopPropagation();
|
||||
|
||||
this.editMode = false;
|
||||
this.reload();
|
||||
},
|
||||
_onUserChanged: function (ev) {
|
||||
ev.stopPropagation();
|
||||
|
||||
|
||||
@@ -23,11 +23,9 @@ var LunchKanbanWidget = Widget.extend({
|
||||
field_changed: '_onFieldChanged',
|
||||
},
|
||||
events: {
|
||||
'click .o_add_money': '_onAddMoney',
|
||||
'click .o_add_product': '_onAddProduct',
|
||||
'click .o_lunch_widget_order_button': '_onOrderNow',
|
||||
'click .o_remove_product': '_onRemoveProduct',
|
||||
'click .o_lunch_widget_save': '_onSaveOrder',
|
||||
'click .o_lunch_widget_unlink': '_onUnlinkOrder',
|
||||
'click .o_lunch_open_wizard': '_onLunchOpenWizard',
|
||||
},
|
||||
@@ -124,11 +122,6 @@ var LunchKanbanWidget = Widget.extend({
|
||||
// Handlers
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
_onAddMoney: function (ev) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
this.trigger_up('add_money', {});
|
||||
},
|
||||
_onAddProduct: function (ev) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
@@ -163,12 +156,6 @@ var LunchKanbanWidget = Widget.extend({
|
||||
|
||||
this.trigger_up('remove_product', {lineId: $(ev.currentTarget).data('id')});
|
||||
},
|
||||
_onSaveOrder: function (ev) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
|
||||
this.trigger_up('save_order', {});
|
||||
},
|
||||
_onUnlinkOrder: function (ev) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
|
||||
@@ -1,19 +1,15 @@
|
||||
odoo.define('lunch.LunchPaymentDialog', function (require) {
|
||||
"use strict";
|
||||
|
||||
var core = require('web.core');
|
||||
var Dialog = require('web.Dialog');
|
||||
|
||||
var qweb = core.qweb;
|
||||
|
||||
var LunchPaymentDialog = Dialog.extend({
|
||||
template: 'lunch.LunchPaymentDialog',
|
||||
|
||||
init: function (parent, options) {
|
||||
var self = this;
|
||||
this._super.apply(this, arguments);
|
||||
|
||||
options = (options || {});
|
||||
options = options || {};
|
||||
|
||||
this.message = options.message || '';
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user