Merge lp:~openerp-dev/openerp-web/saas-3-bug_1291322-ptr into lp:~openerp/openerp-web/saas-3

Proposed by Pariket Trivedi(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openerp-web/saas-3-bug_1291322-ptr
Merge into: lp:~openerp/openerp-web/saas-3
Diff against target: 16 lines (+5/-1)
1 file modified
addons/web_calendar/static/src/js/web_calendar.js (+5/-1)
To merge this branch: bzr merge lp:~openerp-dev/openerp-web/saas-3-bug_1291322-ptr
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+219671@code.launchpad.net

Description of the change

Hello,

I have to Fixed bug for from calendar view: A user with read only access has the save button.
>add condition for check access rigth.

Thank you,
ptr

To post a comment you must log in.

Unmerged revisions

4010. By Pariket Trivedi(OpenERP)

[FIX]: bug calendar view: A user with read only access has the save button.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/web_calendar/static/src/js/web_calendar.js'
2--- addons/web_calendar/static/src/js/web_calendar.js 2014-03-18 17:44:45 +0000
3+++ addons/web_calendar/static/src/js/web_calendar.js 2014-05-15 09:51:50 +0000
4@@ -834,7 +834,11 @@
5 if (! this.open_popup_action) {
6 var index = this.dataset.get_id_index(id);
7 this.dataset.index = index;
8- this.do_switch_view('form', null, { mode: "edit" });
9+ if(this.$el.find('.oe_cannot_create')){
10+ this.do_switch_view('form', null, { mode: "view" });
11+ } else {
12+ this.do_switch_view('form', null, { mode: "edit" });
13+ }
14 }
15 else {
16 var pop = new instance.web.form.FormOpenPopup(this);

Subscribers

People subscribed via source and target branches