From aa5700bb7c1ad353ce130484969dff9648fe5857 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 6 Mar 2017 16:15:38 +0100 Subject: [PATCH] [REF] account_asset: convert widget to new API Also change the view template as according to the doc, the widget attribute is only available for field tagnames. --- .../static/src/js/account_asset.js | 86 ++++++--- .../static/src/less/account_asset.less | 4 +- .../static/tests/account_asset_tests.js | 165 ++++++++++++++++++ .../views/account_asset_templates.xml | 8 +- .../views/account_asset_views.xml | 5 +- 5 files changed, 238 insertions(+), 30 deletions(-) create mode 100644 addons/account_asset/static/tests/account_asset_tests.js diff --git a/addons/account_asset/static/src/js/account_asset.js b/addons/account_asset/static/src/js/account_asset.js index 5fe995a98a8..4c9ed37145f 100644 --- a/addons/account_asset/static/src/js/account_asset.js +++ b/addons/account_asset/static/src/js/account_asset.js @@ -1,36 +1,76 @@ -/* -Purpose : show toggle button on depreciation/installment lines for posted/unposted line. -Details : called in list view with "