From 258efff7e5d1c178d7bccd6661266a5a31545913 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 6 Aug 2019 13:01:09 +0000 Subject: [PATCH] [REV] delivery,payment: revert 98a92dc1aa14e2 The widget no longer exists, we can clean this closes odoo/odoo#35496 Signed-off-by: Martin Trigaux (mat) --- addons/delivery/__manifest__.py | 1 - .../static/src/js/delivery_translations.js | 16 ---------------- addons/delivery/views/assets.xml | 10 ---------- .../static/src/js/payment_translations.js | 10 ---------- addons/payment/views/assets.xml | 7 ------- 5 files changed, 44 deletions(-) delete mode 100644 addons/delivery/static/src/js/delivery_translations.js delete mode 100644 addons/delivery/views/assets.xml delete mode 100644 addons/payment/static/src/js/payment_translations.js diff --git a/addons/delivery/__manifest__.py b/addons/delivery/__manifest__.py index 684395775b2..22cb78e9af5 100644 --- a/addons/delivery/__manifest__.py +++ b/addons/delivery/__manifest__.py @@ -30,7 +30,6 @@ invoices from picking, the system is able to add and compute the shipping line. 'views/res_config_settings_views.xml', 'wizard/choose_delivery_package_views.xml', 'wizard/choose_delivery_carrier_views.xml', - 'views/assets.xml', ], 'demo': ['data/delivery_demo.xml'], 'installable': True, diff --git a/addons/delivery/static/src/js/delivery_translations.js b/addons/delivery/static/src/js/delivery_translations.js deleted file mode 100644 index 565adbcb69f..00000000000 --- a/addons/delivery/static/src/js/delivery_translations.js +++ /dev/null @@ -1,16 +0,0 @@ -// TODO Remove me >=saas-12.5, this is a disgrace -// This is an hack to get the string_* and hover_* options translated on the -// boolean_button terminology widget. The terms are translated through -// _t(opt_terms.string_true) which will only work if the terms are already -// present in the translation map. -// This code does nothing but marks the strings as translatable -var _t = function(x) { return x; }; - -_t("Production Environment"); -_t("Switch to test environment"); -_t("Test Environment"); -_t("Switch to production environment"); -_t("Debug requests"); -_t("Disable debug"); -_t("No debug"); -_t("Enable debug"); diff --git a/addons/delivery/views/assets.xml b/addons/delivery/views/assets.xml deleted file mode 100644 index 851aaca55c9..00000000000 --- a/addons/delivery/views/assets.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - diff --git a/addons/payment/static/src/js/payment_translations.js b/addons/payment/static/src/js/payment_translations.js deleted file mode 100644 index 199dcc2a276..00000000000 --- a/addons/payment/static/src/js/payment_translations.js +++ /dev/null @@ -1,10 +0,0 @@ -// TODO Remove me >=saas-12.5, this is a disgrace -// This is an hack to get the string_true and hover_false options translated on -// the boolean_button terminology widget. The terms are translated through -// _t(opt_terms.string_true) which will only work if the terms are already -// present in the translation map. -// This code does nothing but marks the strings as translatable -var _t = function(x) { return x; }; - -_t("Published"); -_t("Publish"); diff --git a/addons/payment/views/assets.xml b/addons/payment/views/assets.xml index 49cc88c5536..62fe9d2455f 100644 --- a/addons/payment/views/assets.xml +++ b/addons/payment/views/assets.xml @@ -13,11 +13,4 @@ - - -