From b6962c834959c4043b58a281db8cd5b8e0179ff4 Mon Sep 17 00:00:00 2001 From: "Antoine Vandevenne (anv)" Date: Mon, 3 Apr 2023 14:22:08 +0000 Subject: [PATCH] [IMP] tutorials/js_framework: retarget links to the current major branch Commits pushed on the odoo/tutorials repository are not automatically forward-ported, which makes it cumbersome to keep all SaaS branches up to date. Because of this, and because Odoo developers are very unlikely to follow tutorials specific to a SaaS branch, links to odoo/tutorials now target the current major branch, or master if applicable. SaaS branches have also been deleted from the odoo/tutorials repository. X-original-commit: ce14b2cfb51b15badfcd849aa014a9734d105d07 Part-of: odoo/documentation#4280 --- content/developer/tutorials/discover_js_framework.rst | 2 +- .../tutorials/discover_js_framework/01_owl_components.rst | 7 ++++--- .../tutorials/discover_js_framework/02_web_framework.rst | 5 +++-- content/developer/tutorials/master_odoo_web_framework.rst | 2 +- .../master_odoo_web_framework/01_fields_and_views.rst | 7 ++++--- .../master_odoo_web_framework/02_miscellaneous.rst | 5 +++-- .../master_odoo_web_framework/03_custom_kanban_view.rst | 5 +++-- .../04_creating_view_from_scratch.rst | 5 +++-- .../tutorials/master_odoo_web_framework/05_testing.rst | 5 +++-- 9 files changed, 25 insertions(+), 18 deletions(-) diff --git a/content/developer/tutorials/discover_js_framework.rst b/content/developer/tutorials/discover_js_framework.rst index 9afe3d808..62e06fe15 100644 --- a/content/developer/tutorials/discover_js_framework.rst +++ b/content/developer/tutorials/discover_js_framework.rst @@ -34,7 +34,7 @@ Setup ===== #. Clone the `official Odoo tutorials repository `_ and switch to - the branch `{BRANCH}`. + the branch `{CURRENT_MAJOR_BRANCH}`. #. Add the cloned repository to the :option:`--addons-path `. #. Start a new Odoo database and install the modules `owl_playground` and `awesome_tshirt`. diff --git a/content/developer/tutorials/discover_js_framework/01_owl_components.rst b/content/developer/tutorials/discover_js_framework/01_owl_components.rst index f8ac22753..e4e376c8c 100644 --- a/content/developer/tutorials/discover_js_framework/01_owl_components.rst +++ b/content/developer/tutorials/discover_js_framework/01_owl_components.rst @@ -16,8 +16,9 @@ Before getting into the exercises, make sure you have followed all the steps des .. spoiler:: Solutions The solutions for each exercise of the chapter are hosted on the `official Odoo tutorials - repository `_. It is - recommended to try to solve them first without looking at the solution! + repository + `_. It + is recommended to try to solve them first without looking at the solution! .. tip:: If you use Chrome as your web browser, you can install the `Owl Devtools` extension. This @@ -67,7 +68,7 @@ and defines a part of user interface: You maybe noticed the `owl="1"` temporary attribute, it allows Odoo to differentiate Owl templates from the old JavaScript framework templates. Note that Owl templates are not the same -as QWeb templates: they can contain additional directives, such as `t-on-click`. +as QWeb templates: they can contain additional directives, such as `t-on-click`. 1. Displaying a counter ======================= diff --git a/content/developer/tutorials/discover_js_framework/02_web_framework.rst b/content/developer/tutorials/discover_js_framework/02_web_framework.rst index d89e56aee..eb6681f7b 100644 --- a/content/developer/tutorials/discover_js_framework/02_web_framework.rst +++ b/content/developer/tutorials/discover_js_framework/02_web_framework.rst @@ -30,8 +30,9 @@ addon. We will progressively add features to it, using the odoo framework. .. spoiler:: Solutions - The solutions for each exercise of the chapter are hosted on the `official Odoo tutorials - repository `_. + The solutions for each exercise of the chapter are hosted on the + `official Odoo tutorials repository + `_. 1. A new Layout =============== diff --git a/content/developer/tutorials/master_odoo_web_framework.rst b/content/developer/tutorials/master_odoo_web_framework.rst index 20b165af1..7ea65d030 100644 --- a/content/developer/tutorials/master_odoo_web_framework.rst +++ b/content/developer/tutorials/master_odoo_web_framework.rst @@ -28,7 +28,7 @@ Setup ===== #. Clone the `official Odoo tutorials repository `_ and switch to - the branch `{BRANCH}`. + the branch `{CURRENT_MAJOR_BRANCH}`. #. Add the cloned repository to the :option:`--addons-path `. #. Start a new Odoo database and install the modules `awesome_tshirt` and `awesome_gallery`. diff --git a/content/developer/tutorials/master_odoo_web_framework/01_fields_and_views.rst b/content/developer/tutorials/master_odoo_web_framework/01_fields_and_views.rst index 1f368f04d..aff0fc403 100644 --- a/content/developer/tutorials/master_odoo_web_framework/01_fields_and_views.rst +++ b/content/developer/tutorials/master_odoo_web_framework/01_fields_and_views.rst @@ -8,9 +8,10 @@ like Chart.js. Now, let's learn how to create new fields and views. .. spoiler:: Solutions - The solutions for each exercise of the chapter are hosted on the `official Odoo tutorials - repository `_. It is - recommended not to look at them before trying the exercises. + The solutions for each exercise of the chapter are hosted on the + `official Odoo tutorials repository + `_. It + is recommended not to look at them before trying the exercises. Fields and views are among the most important concepts in the Odoo user interface. They are key to many important user interactions, and should therefore work perfectly. In the context of the diff --git a/content/developer/tutorials/master_odoo_web_framework/02_miscellaneous.rst b/content/developer/tutorials/master_odoo_web_framework/02_miscellaneous.rst index 223cc3093..c13b2f2b9 100644 --- a/content/developer/tutorials/master_odoo_web_framework/02_miscellaneous.rst +++ b/content/developer/tutorials/master_odoo_web_framework/02_miscellaneous.rst @@ -43,8 +43,9 @@ discover in the feature-rich Odoo web framework, so let's dive in and explore mo .. spoiler:: Solutions - The solutions for each exercise of the chapter are hosted on the `official Odoo tutorials - repository `_. + The solutions for each exercise of the chapter are hosted on the + `official Odoo tutorials repository + `_. 1. Interacting with the notification system =========================================== diff --git a/content/developer/tutorials/master_odoo_web_framework/03_custom_kanban_view.rst b/content/developer/tutorials/master_odoo_web_framework/03_custom_kanban_view.rst index 71516a247..a8f5270bb 100644 --- a/content/developer/tutorials/master_odoo_web_framework/03_custom_kanban_view.rst +++ b/content/developer/tutorials/master_odoo_web_framework/03_custom_kanban_view.rst @@ -26,8 +26,9 @@ orders linked to that customer. .. spoiler:: Solutions - The solutions for each exercise of the chapter are hosted on the `official Odoo tutorials - repository `_. + The solutions for each exercise of the chapter are hosted on the + `official Odoo tutorials repository + `_. 1. Create a new kanban view =========================== diff --git a/content/developer/tutorials/master_odoo_web_framework/04_creating_view_from_scratch.rst b/content/developer/tutorials/master_odoo_web_framework/04_creating_view_from_scratch.rst index eabfcffe5..4fa344749 100644 --- a/content/developer/tutorials/master_odoo_web_framework/04_creating_view_from_scratch.rst +++ b/content/developer/tutorials/master_odoo_web_framework/04_creating_view_from_scratch.rst @@ -35,8 +35,9 @@ addon includes the necessary server files to add a new view. .. spoiler:: Solutions - The solutions for each exercise of the chapter are hosted on the `official Odoo tutorials - repository `_. + The solutions for each exercise of the chapter are hosted on the + `official Odoo tutorials repository + `_. 1. Make a hello world view ========================== diff --git a/content/developer/tutorials/master_odoo_web_framework/05_testing.rst b/content/developer/tutorials/master_odoo_web_framework/05_testing.rst index 47bf516d0..091fc4705 100644 --- a/content/developer/tutorials/master_odoo_web_framework/05_testing.rst +++ b/content/developer/tutorials/master_odoo_web_framework/05_testing.rst @@ -7,8 +7,9 @@ introduce (too many) bugs or regressions. Let us see how to test our code. .. spoiler:: Solutions - The solutions for each exercise of the chapter are hosted on the `official Odoo tutorials - repository `_. + The solutions for each exercise of the chapter are hosted on the + `official Odoo tutorials repository + `_. 1. Integration testing ======================