Merge lp://qastaging/~openerp-community/openobject-server/7.0_improve_tree_view_doc-afe into lp://qastaging/openobject-server/7.0

Proposed by Alexandre Fayolle - camptocamp
Status: Merged
Merged at revision: 5065
Proposed branch: lp://qastaging/~openerp-community/openobject-server/7.0_improve_tree_view_doc-afe
Merge into: lp://qastaging/openobject-server/7.0
Diff against target: 52 lines (+28/-1)
1 file modified
doc/03_module_dev_03.rst (+28/-1)
To merge this branch: bzr merge lp://qastaging/~openerp-community/openobject-server/7.0_improve_tree_view_doc-afe
Reviewer Review Type Date Requested Status
Olivier Dony (Odoo) Approve
Nicolas Bessi - Camptocamp (community) Approve
Lorenzo Battistini (community) Approve
Review via email: mp+183382@code.qastaging.launchpad.net

Description of the change

[IMP] Improve view documentation to mention create="false" and delete="false"

To post a comment you must log in.
Revision history for this message
Lorenzo Battistini (elbati) :
review: Approve
Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

LGTM thanks

review: Approve
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Good point, thanks!

While adding this, it might be worth indicating more precisely which kind of view supports it (kanban, tree, form, gantt), the full list of available options: `create|edit|delete`, and the fact that the system will automatically set default values for these attributes according to the configured ACLs (i.e. create, write and unlink permissions granted to the user's groups).
Another useful precision is that this is not dynamic per-record, but applied globally to the view.

See also the source for reference:
- server: http://bazaar.launchpad.net/~openerp/openobject-server/7.0/view/5062/openerp/osv/orm.py#L1917
- web: http://bazaar.launchpad.net/~openerp/openerp-web/7.0/view/4024/addons/web/static/src/js/views.js#L1473

Thanks!

review: Needs Fixing
5063. By Alexandre Fayolle - camptocamp

[IMP] update the documentation patch

add all supported attributes
add list of supported views
add example use case
add information about the default value of these attributes

Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

Above commit follows Olivier Dony's suggestions

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Look great now, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.