diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 159f2f704a0..e050daec2b1 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -1055,7 +1055,7 @@ - + account.move.line.tree account.move.line @@ -1850,7 +1850,7 @@ - + account.subscription.search account.subscription diff --git a/addons/account_voucher/__openerp__.py b/addons/account_voucher/__openerp__.py index ac80a7f32b0..c0011c8b3c5 100644 --- a/addons/account_voucher/__openerp__.py +++ b/addons/account_voucher/__openerp__.py @@ -60,15 +60,6 @@ This module manages: 'security/account_voucher_security.xml', 'account_voucher_data.xml', ], - 'js': [ - 'static/src/js/account_voucher_reconciliation.js', - ], - 'qweb' : [ - 'static/src/xml/account_voucher_reconciliation.xml', - ], - 'css': [ - #'static/src/css/account_voucher_reconciliation.css', - ], 'test' : [ 'test/account_voucher.yml', 'test/sales_receipt.yml', diff --git a/addons/account_voucher/account_voucher_view.xml b/addons/account_voucher/account_voucher_view.xml index 55a07c5fd99..333cde7638f 100644 --- a/addons/account_voucher/account_voucher_view.xml +++ b/addons/account_voucher/account_voucher_view.xml @@ -212,7 +212,7 @@ - + @@ -223,7 +223,7 @@ - + diff --git a/addons/account_voucher/static/src/css/account_voucher_reconciliation.css b/addons/account_voucher/static/src/css/account_voucher_reconciliation.css deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/addons/account_voucher/static/src/js/account_voucher_reconciliation.js b/addons/account_voucher/static/src/js/account_voucher_reconciliation.js deleted file mode 100644 index 09616a139fb..00000000000 --- a/addons/account_voucher/static/src/js/account_voucher_reconciliation.js +++ /dev/null @@ -1,65 +0,0 @@ -openerp.account_voucher = function (instance) { - var _t = instance.web._t, - _lt = instance.web._lt; - var QWeb = instance.web.qweb; - - instance.web.account_voucher = {}; - - instance.web.form.widgets.add('account_voucher_field', 'instance.web.account_voucher.AccountVoucherField'); - instance.web.account_voucher.AccountVoucherField = instance.web.form.AbstractField.extend({ - template: 'FieldAccountVoucher', - init: function(field_manager, node) { - this._super.apply(this, arguments); - var self = this; - this.set('value', false); - }, - start: function() { - this._super.apply(this, arguments); - var self = this; - this.string = this.get('value') ? _t('Edit') : _t('Create'); - this.node.attrs.icon = this.get('value') ? '/web/static/src/img/icons/gtk-yes.png' : '/web/static/src/img/icons/gtk-no.png'; - this.$button = $(QWeb.render('WidgetButton', {'widget': this})); - this.$el.append(this.$button); - this.$button.on('click', self.on_click); - }, - on_click: function(ev) { - var self = this; - ev.stopPropagation(); - var popup = new instance.web.form.FormOpenPopup(this); - popup.show_element( - this.field.relation, - this.get('value'), - this.build_context(), - {title: _t("Voucher: ") + this.string} - ); - popup.on('create_completed write_completed', self, function(r){ - self.set_value(r); - }); - }, - set_value: function(value_) { - var self = this; - if (value_ instanceof Array) { - value_ = value_[0]; - } - value_ = value_ || false; - this.set('value', value_); - if (this.is_started) { - this.render_value(); - } - }, - - }); - - instance.web.list.columns.add('field.account_voucher_field', 'instance.web.list.AccountVoucherField'); - instance.web.list.AccountVoucherField = instance.web.list.Column.extend({ - _format: function (row_data, options) { - if (row_data.voucher_id.value) { - this.icon = '/web/static/src/img/icons/gtk-yes.png'; - } else { - this.icon = '/web/static/src/img/icons/gtk-no.png'; - } - return QWeb.render('FieldAccountVoucher.cell', {'widget': this}); - }, - }); - -}; \ No newline at end of file diff --git a/addons/account_voucher/static/src/xml/account_voucher_reconciliation.xml b/addons/account_voucher/static/src/xml/account_voucher_reconciliation.xml deleted file mode 100644 index 8ac808920b1..00000000000 --- a/addons/account_voucher/static/src/xml/account_voucher_reconciliation.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file