diff options
| author | Christophe Simonis <chs@openerp.com> | 2013-09-12 17:06:16 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@openerp.com> | 2013-09-12 17:06:16 +0200 |
| commit | e13ffe7e11e4ba1afb0aa151bb28a05139466130 (patch) | |
| tree | 49cb91bd455f7d9c26a7f66c72d2b75753061d81 /doc | |
| parent | b5f38f8b7d744681ceef9955f769e769c25df518 (diff) | |
| parent | 1d91378ce22bc75807c0d178c9ccbae3541e1e18 (diff) | |
[MERGE] forward port of branch 7.0 up to revid 5075 chs@openerp.com-20130912141018-qmcyase8zqov9d01
bzr revid: chs@openerp.com-20130906165207-1oklc8cqs0rex3kg
bzr revid: dle@openerp.com-20130909170248-a4t5y6qd5ikkhhac
bzr revid: dle@openerp.com-20130911083736-6jfkb140jxbbx7j6
bzr revid: chs@openerp.com-20130912150616-v0c383trj7gaa7eu
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/03_module_dev_03.rst | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/doc/03_module_dev_03.rst b/doc/03_module_dev_03.rst index fd82f36bff1..da0e6da1090 100644 --- a/doc/03_module_dev_03.rst +++ b/doc/03_module_dev_03.rst @@ -37,7 +37,6 @@ There are two types of views: .. note:: Since OpenERP 4.1, form views can also contain graphs. - Form views ---------- @@ -388,6 +387,33 @@ The easiest method to compute real statistics on objects is: You can get en example in all modules of the form: report\_.... Example: report_crm. +Controlling view actions +------------------------ + +When defining a view, the following attributes can be added on the +opening element of the view (i.e. ``<form>``, ``<tree>``...) + +``create`` + set to ``false`` to hide the link / button which allows to create a new + record. + +``delete`` + set to ``false`` to hide the link / button which allows to remove a + record. + +``edit`` + set to ``false`` to hide the link / button which allows to + edit a record. + + +These attributes are available on form, tree, kanban and gantt +views. They are normally automatically set from the access rights of +the users, but can be forced globally in the view definition. A +possible use case for these attributes is to define an inner tree view +for a one2many relation inside a form view, in which the user cannot +add or remove related records, but only edit the existing ones (which +are presumably created through another way, such as a wizard). + Calendar Views -------------- @@ -680,6 +706,7 @@ toolbar its descendants will be displayed in the main tree. The value is ignored for flat lists. + Grouping Elements +++++++++++++++++ |
