~jfb-tempo-consulting/unifield-web/us-4078

« back to all changes in this revision

Viewing changes to addons/openerp/controllers/form.py

  • Committer: jf
  • Date: 2018-11-08 15:47:47 UTC
  • mfrom: (4912.7.2 UW-3465)
  • Revision ID: jfb@tempo-consulting.fr-20181108154747-w2zivbj9lq5j1bud
US-3465 [FIX] Display button sd ref: issue on popup (o2m) screen

lp:~dorian-kemps/unifield-web/UW-3465

Show diffs side-by-side

added added

removed removed

Lines of Context:
314
314
        rules_pool = rpc.RPCProxy('msf_button_access_rights.button_access_rule')
315
315
        model_pool = rpc.RPCProxy('ir.model')
316
316
 
 
317
        if btn_name and '/' in btn_name:
 
318
            btn_name = btn_name.split('/')[-1]
 
319
 
317
320
        if btn_name and view_id:
318
321
            view_ids = rules_pool.get_family_ids(int(view_id))
319
322
            if not view_ids: