English 中文(简体)
hide button according to group
原标题:
  • 时间:2010-03-07 09:33:35
  •  标签:
  • odoo

I have a defined groups and i want to display a button according a group.

<button name="assign_ticket" states= "pending_assignment,draft" groups="group_centricare_care_agents" string="Assign to me"/>

i want this button to be displayed to the group "roup_centricare_care_agents" but when adding groups tag it cause an exception.

P.S.: This button in tree view.

How can i do this??

Thanks in advance

问题回答

I think the groups attribute has to have the module name included in the group name. For example, groups="base.group_extended" is used a lot. The module name should be from the module that originally created the group. It might also be that the groups attribute is not supported in tree views or on buttons, I don t know.

Can you post details of what your error says?

I have also faced a same problem, i am using openerp 7 on window and when i edit the following code

buton name="purchase_approve" states="confirmed" string="Approve Order" class="oe_highlight" groups="base.gm_approved"
in form view of purchase order for access the button only for gm_approved group then this button does not show for any user. also i try groups="base.group_gm_approved" but same issue





相关问题
odoo 15 api response data -> my text field

I HAVE THİS CODE BUT NOT WORK EXACTLY <?xml version="1.0" encoding="utf-8"?> <odoo> <record id="view_musteri_tavsiye_form" model="ir.ui.view"...

Avoid OpenERP audittrail bug

I d like to manage OpenERP user s activity by installing the audittrail module. After creating some rules ( define which user, which object and which activity (create, update..) will be monitored). I ...

OpenERP cache features

I want to cache some results in my OpenERP module, so I dug around a bit and found the cache decorator. Unfortunately, the most documentation I ve been able to find is in the class declaration: Use ...

hide button according to group

I have a defined groups and i want to display a button according a group. <button name="assign_ticket" states= "pending_assignment,draft" groups="group_centricare_care_agents" string="Assign to me"...

Integrating Drupal with OpenERP

We have a requirement that we need to integrate OpenERP with Drupal. I investigated but could not find any Drupal addon/module which will do the desired job. I also investigated and found that ...

Problem installing OpenERP server with buildout !

I m trying to deploy OpenERP with a buildout and my own piece of code. In fact I would like to build a complete deployement structure allowing me to use OpenERP with custom modules and patch. First ...

OpenERP, data restore problem

I am trying to restore a database backup through the client interface of open ERP. A message appeared "Could not restore DB". I am using Postgresql 8.4.1 Please help!

热门标签