[IMP] doc: various improvements to website tutorial
closes #3476 closes #3477 closes #3479
This commit is contained in:
parent
3a7dffd6cc
commit
d6cfd8ed4b
|
@ -278,11 +278,12 @@ then change the list of model to link to our new controller:
|
||||||
|
|
||||||
.. patch::
|
.. patch::
|
||||||
|
|
||||||
You can now visit each teacher's page. Try adding blocks to a teacher's page
|
Restart Odoo and upgrade the module, then you can visit each teacher's page.
|
||||||
to write his biography, then go to an other teacher's page… your biography
|
As an exercise, try adding blocks to a teacher's page to write a biography,
|
||||||
is shared between all teachers, because blocks are added to the *template*,
|
then go to another teacher's page and so forth. You will discover, that your
|
||||||
and the *biography* template is shared between all teachers, when one page
|
biography is shared between all teachers, because blocks are added to the
|
||||||
is edited they're all edited at the same time.
|
*template*, and the *biography* template is shared between all teachers, when
|
||||||
|
one page is edited they're all edited at the same time.
|
||||||
|
|
||||||
Field edition
|
Field edition
|
||||||
=============
|
=============
|
||||||
|
@ -304,10 +305,10 @@ interfaces. Change the *person* template to use ``t-field``:
|
||||||
|
|
||||||
.. patch::
|
.. patch::
|
||||||
|
|
||||||
Restart Odoo, there is now a placeholder under the teacher's name and a new
|
Restart Odoo and upgrade the modile, there is now a placeholder under the
|
||||||
zone for blocks in :guilabel:`Edit` mode. Content dropped there is stored in
|
teacher's name and a new zone for blocks in :guilabel:`Edit` mode. Content
|
||||||
the correspoding teacher's ``biography`` field, and thus specific to that
|
dropped there is stored in the correspoding teacher's ``biography`` field, and
|
||||||
teacher.
|
thus specific to that teacher.
|
||||||
|
|
||||||
The teacher's name is also editable, and when saved the change is visible on
|
The teacher's name is also editable, and when saved the change is visible on
|
||||||
the index page.
|
the index page.
|
||||||
|
@ -359,10 +360,10 @@ Let's create a menu for our model:
|
||||||
.. patch::
|
.. patch::
|
||||||
|
|
||||||
then accessing http://localhost:8069/web/ in the top left should be a menu
|
then accessing http://localhost:8069/web/ in the top left should be a menu
|
||||||
:guilabel:`Academy` (which is selected by default, as it is the first menu),
|
:guilabel:`Academy`, which is selected by default, as it is the first menu,
|
||||||
selected by default and having opened a listing of teachers. From the listing
|
and having opened a listing of teachers. From the listing it is possible to
|
||||||
it is possible to :guilabel:`Create` new teacher records, and to switch to
|
:guilabel:`Create` new teacher records, and to switch to the "form" by-record
|
||||||
the "form" by-record view.
|
view.
|
||||||
|
|
||||||
If there is no definition of how to present records (a
|
If there is no definition of how to present records (a
|
||||||
:ref:`view <reference/views>`) Odoo will automatically create a basic one
|
:ref:`view <reference/views>`) Odoo will automatically create a basic one
|
||||||
|
@ -501,10 +502,10 @@ visible by default: :menuselection:`Customize --> Product Categories` lets
|
||||||
you toggle a tree of product categories (used to filter the main display) on
|
you toggle a tree of product categories (used to filter the main display) on
|
||||||
and off.
|
and off.
|
||||||
|
|
||||||
This is done via the ``customize_show`` and ``active`` fields of extension
|
This is done via the ``customize_show`` and ``active`` fields of extension
|
||||||
templates: an extension template (such as the one we've just created) can be
|
templates: an extension template (such as the one we've just created) can be
|
||||||
*customize_show=True*. This choice will display the view in the :guilabel:`Customize`
|
*customize_show=True*. This choice will display the view in the :guilabel:`Customize`
|
||||||
menu with a check box, allowing administrators to activate or disable them
|
menu with a check box, allowing administrators to activate or disable them
|
||||||
(and easily customize their website pages).
|
(and easily customize their website pages).
|
||||||
|
|
||||||
We simply need to modify the *Product Categories* record and set its default
|
We simply need to modify the *Product Categories* record and set its default
|
||||||
|
|
Loading…
Reference in New Issue