diff --git a/addons/account/__manifest__.py b/addons/account/__manifest__.py index 93e8bb8958c..e64b6f69656 100644 --- a/addons/account/__manifest__.py +++ b/addons/account/__manifest__.py @@ -52,7 +52,6 @@ You could use this simplified accounting in case you work with an (external) acc 'views/res_company_views.xml', 'views/product_view.xml', 'views/account_analytic_view.xml', - 'views/account.xml', 'views/report_invoice.xml', 'report/account_invoice_report_view.xml', 'views/account_cash_rounding_view.xml', @@ -81,16 +80,46 @@ You could use this simplified accounting in case you work with an (external) acc 'demo': [ 'demo/account_demo.xml', ], - 'qweb': [ - "static/src/xml/account_payment.xml", - 'static/src/xml/account_resequence.xml', - "static/src/xml/bills_upload_views.xml", - 'static/src/xml/account_journal_activity.xml', - 'static/src/xml/grouped_view_widget.xml', - 'static/src/xml/tax_group.xml', - ], 'installable': True, 'application': True, 'auto_install': False, 'post_init_hook': '_account_post_init', + 'assets': { + 'web._assets_primary_variables': [ + 'account/static/src/scss/variables.scss', + ], + 'web.assets_backend': [ + 'account/static/src/css/account_bank_and_cash.css', + 'account/static/src/css/account.css', + 'account/static/src/css/tax_group.css', + 'account/static/src/scss/account_reconciliation.scss', + 'account/static/src/scss/account_journal_dashboard.scss', + 'account/static/src/scss/account_dashboard.scss', + 'account/static/src/scss/account_searchpanel.scss', + 'account/static/src/scss/section_and_note_backend.scss', + 'account/static/src/scss/account_activity.scss', + 'account/static/src/js/account_payment_field.js', + 'account/static/src/js/account_resequence_field.js', + 'account/static/src/js/grouped_view_widget.js', + 'account/static/src/js/mail_activity.js', + 'account/static/src/js/tax_group.js', + 'account/static/src/js/section_and_note_fields_backend.js', + 'account/static/src/js/tours/account.js', + 'account/static/src/js/bills_upload.js', + 'account/static/src/js/account_selection.js', + ], + 'web.assets_frontend': [ + 'account/static/src/js/account_portal_sidebar.js', + ], + 'web.assets_tests': [ + 'account/static/tests/tours/**/*', + ], + 'web.qunit_suite_tests': [ + ('after', 'web/static/tests/views/kanban_tests.js', 'account/static/tests/account_payment_field_tests.js'), + ('after', 'web/static/tests/views/kanban_tests.js', 'account/static/tests/section_and_note_tests.js'), + ], + 'web.assets_qweb': [ + 'account/static/src/xml/**/*', + ], + } } diff --git a/addons/account/views/account.xml b/addons/account/views/account.xml deleted file mode 100644 index 3013dc8881e..00000000000 --- a/addons/account/views/account.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - diff --git a/addons/adyen_platforms/__manifest__.py b/addons/adyen_platforms/__manifest__.py index 189ff6b8204..91eabb20da2 100644 --- a/addons/adyen_platforms/__manifest__.py +++ b/addons/adyen_platforms/__manifest__.py @@ -14,11 +14,14 @@ 'views/adyen_account_templates.xml', 'views/adyen_account_views.xml', 'views/adyen_transaction_views.xml', - 'views/assets.xml', - ], - 'qweb': [ - "static/src/xml/adyen_account_templates.xml", - "static/src/xml/adyen_transactions_templates.xml", - ], + ], 'installable': True, + 'assets': { + 'web.assets_backend': [ + 'adyen_platforms/static/src/js/**/*', + ], + 'web.assets_qweb': [ + 'adyen_platforms/static/src/xml/**/*', + ], + } } diff --git a/addons/adyen_platforms/views/assets.xml b/addons/adyen_platforms/views/assets.xml deleted file mode 100644 index e1d29146b66..00000000000 --- a/addons/adyen_platforms/views/assets.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/addons/auth_oauth/__manifest__.py b/addons/auth_oauth/__manifest__.py index cd226fcdff9..93715883c78 100644 --- a/addons/auth_oauth/__manifest__.py +++ b/addons/auth_oauth/__manifest__.py @@ -18,4 +18,9 @@ Allow users to login through OAuth2 Provider. 'views/auth_oauth_templates.xml', 'security/ir.model.access.csv', ], + 'assets': { + 'web.assets_frontend': [ + 'auth_oauth/static/**/*', + ], + } } diff --git a/addons/auth_oauth/views/auth_oauth_templates.xml b/addons/auth_oauth/views/auth_oauth_templates.xml index 529bd8f27ce..390a787cf7d 100644 --- a/addons/auth_oauth/views/auth_oauth_templates.xml +++ b/addons/auth_oauth/views/auth_oauth_templates.xml @@ -1,11 +1,5 @@ - -