~dorian-kemps/unifield-web/UW-5753

« back to all changes in this revision

Viewing changes to addons/openerp/static/javascript/form.js

  • Committer: jf
  • Date: 2019-01-30 13:24:00 UTC
  • mfrom: (4947.1.2 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20190130132400-lkw2m1530b47s27x
US-5330 [IMP] User Rigths on Window action: ctrl + right click to display info

lp:~jfb-tempo-consulting/unifield-web/US-5330

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
var form_controller;
23
23
 
 
24
function showActionSdref(ev, action_name, model, action_id)
 
25
{
 
26
    if(ev.ctrlKey === true) {
 
27
 
 
28
        openobject.http.postJSON('/openerp/form/display_action_sd_ref', {
 
29
            'action_name': action_name,
 
30
            'model': model,
 
31
            'action_id': action_id,
 
32
        }).addCallback(function(obj){
 
33
            if (obj) {
 
34
                alert(
 
35
                    'Name : ' + action_name + '\n' +
 
36
                    'Action sdref: sd.' + obj.sdref + '\n' +
 
37
                    'Action Id: '+ action_id +'\n' +
 
38
                    'Groups: '+ obj.groups +'\n' +
 
39
                    'Model name: ' + model + '\n' +
 
40
                    'Model sdref: sd.'+ obj.model_sdref + '\n'
 
41
                );
 
42
            }
 
43
        });
 
44
        ev.preventDefault();
 
45
    }
 
46
}
24
47
function showBtnSdref(ev, btn_name, btn_model, btn_id, src)
25
48
{
26
49
    if(ev.ctrlKey === true) {