diff options
| author | Jigar Patel <jat@openerp.com> | 2019-09-24 05:03:04 +0000 |
|---|---|---|
| committer | Vincent Schippefilt <vsc@odoo.com> | 2019-10-10 12:03:34 +0000 |
| commit | 7704a56df166b93d48eff21b354771b0886b2638 (patch) | |
| tree | 7bf2faac8ba6fc74f577084953cd105e11bfaef7 /doc/reference | |
| parent | 9fc948f9632818b96dc9830b704e1ebd703a2ecc (diff) | |
[IMP] doc: update documentation of map view
For simplicity marker popup fields are declared as a direct child of the root
element.
consistency in the name of marker popup fields
added new 'hide_name' and 'hide_address' option in the calendar view
task-2009017
closes odoo/odoo#37433
Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
Diffstat (limited to 'doc/reference')
| -rw-r--r-- | doc/reference/views.rst | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst index bfa99ff0d94..80cb9155796 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -2030,8 +2030,12 @@ The view's root element is ``<map>`` multiple attributes are allowed If a field is provided the view will override the model's default order. The field must be apart of the model on which the view is applied not from res.partner ``routing`` if ``true`` the routes between the records will be shown. The view still needs a valid MapBox token and at least two located records. (i.e the records has a res.partner many2one and the partner has a address or valid coordinates) +``hide_name`` + if ``true`` hide a name from the marker's popup (default: false) +``hide_address`` + if ``true`` hide a address from the marker's popup (default: false) -The only element allowed within the ``<map>`` element is the ``<marker-popup>``. This element is able to contain multiple ``<field>`` elements. Each of these elements will be interpreted as a line in the marker's popup. The field's attributes are the following: +The ``<map>`` element can contain multiple ``<field>`` elements. Each ``<field>`` element will be interpreted as a line in the marker's popup. The field's attributes are the following: ``name`` The field to display. @@ -2043,10 +2047,8 @@ No attribute or element is mandatory but as stated above if no res.partner many2 For example here is a map: .. code-block:: xml - <map res_partner="partner_id" default_order="date_begin" routing="true"> - <marker-popup> - <field name="name" string="Task: "/> - </marker-popup> + <map res_partner="partner_id" default_order="date_begin" routing="true" hide_name="true"> + <field name="partner_id" string="Customer Name"/> </map> .. _reference/views/qweb: |
