v 13.0 Third Party 1
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 58
Technical Name dynamic_hide_edit_button
LicenseOPL-1
Websitehttp://www.bonainfo.com,www.dmmsys.com
Versions 14.0 13.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 58
Technical Name dynamic_hide_edit_button
LicenseOPL-1
Websitehttp://www.bonainfo.com,www.dmmsys.com
Versions 14.0 13.0
Website Linkedin Send Email Skype Contact us!

Dynamic Hide Edit Button

Dynamically hide edit button based on condition .

根据条件动态隐藏编辑按钮.

The native permission control system of the Odoo system can realize the permission control of button operations for different users by assigning user groups to the buttons.

However, in some cases, it is necessary to prohibit all users from editing order according to some conditions, such as contracts that have been determined, or financial documents that have been reviewed, and so on.

This kind of dynamic authority control is actually attached to the user authority, which is the authority control in the process of changing the state of the business object. However, in the ERP business category, it is generally limited to, in a certain state, restricting the editing permission of the business order, so we only need to disable and hide the corresponding edit button according to the status of the business order.

This module is developed based on this requirement, and achieves this management goal by setting the condition to hide the edit button on the form.

Odoo系统原生的权限控制系统,可以通过为按钮分配用户组,实现对不同用户的按钮操作权限控制。

但是有些情况下,需要根据一些条件,来禁止所有用户对单据的编辑,比如已经确定的合同,或者已经审核的财务凭证等等。

这种动态的权限控制,实际上是附加在用户权限之上的,是业务对象状态变化过程中的权限控制,不过在ERP业务范畴中,一般也仅限于,在某种状态下,限制对业务单据的编辑权限,所以我们只需要根据单据的状态,禁用并隐藏相应的编辑按钮即可。

本模块就是基于这种需求开发的,通过在表单上设置隐藏编辑按钮的条件,来实现这个管理目标。

The module for odoo15 version is ready!

  • You can set dynamic read-only permissions for all business order, and control the read-only status of order according to conditions.
  • 可以为所有的业务单据,设置动态的只读权限,根据条件控制单据的只读状态。
  • Because of the general function of the module, it can support any field as a dynamic condition, but in the ERP system, it is generally used to limit the editing authority of the document in a specific state.
  • 因为模块通用的功能,所以可以支持任何字段作为动态条件,不过在ERP系统中,一般都是用来限制单据在特定状态下的编辑权限。
  • The module currently has two versions, Odoo14 and Odoo15 .
  • 模块目前有Odoo14和Odoo15两个版本。
  • This module supports both Odoo Community Edition and Enterprise Edition .
  • 本模块同时支持Odoo社区版和企业版。
  • Edit button is hidden in the sale or done state of the sale order.
  • 2

  • 编辑按钮在销售订单的锁定状态被隐藏 。
  • 2

  • Edit button is hidden in the done state of the manufacturing order.
  • 2

  • 编辑按钮在生产单的完成状态被隐藏 。
  • 2

  • Edit button is hidden in the done state of the picking order.
  • 2

  • 编辑按钮在收料发料单的完成状态被隐藏 。
  • 2

  • Edit button is hidden in the posted state of the billing order.
  • 2

  • 编辑按钮在供应商账单的已过账状态被隐藏 。
  • 2

  • To enable this feature, you only need to configure the readonly attribute in the form view .
  • 2

  • 只需要在Form视图中配置readonly属性,就可以启用这个功能。
  • 2

  • Operation Demo Video
  • General questions and answers
  • No! Since the Odoo front-end has major changes in each version, all front-end modules do not support cross-version use.

    According to Odoo's official policy, starting from version 13, each new version of the module needs to be purchased separately, if you need to upgrade the Odoo version, you need to repurchase our corresponding version of the module .

    Yes, the module works well with Odoo Enterprise as well as Community. .

    Yes, You can contact us through any way listed in the first part of the module description,such as email, skeype.

    Product Services

    Odoo Integrated

    Odoo Cutomization

    Odoo Implentation

    Support Services

    Odoo Proprietary License v1.0
    
    This software and associated files (the "Software") may only be used (executed,
    modified, executed after modifications) if you have purchased a valid license
    from the authors, typically via Odoo Apps, or if you have received a written
    agreement from the authors of the Software (see the COPYRIGHT file).
    
    You may develop Odoo modules that use the Software as a library (typically
    by depending on it, importing it and using its resources), but without copying
    any source code or material from the Software. You may distribute those
    modules under the license of your choice, provided that this license is
    compatible with the terms of the Odoo Proprietary License (For example:
    LGPL, MIT, or proprietary licenses similar to this one).
    
    It is forbidden to publish, distribute, sublicense, or sell copies of the Software
    or modified copies of the Software.
    
    The above copyright notice and this permission notice must be included in all
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
    DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
    ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    DEALINGS IN THE SOFTWARE.
    

    Please log in to comment on this module

    • The author can leave a single reply to each comment.
    • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
    • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.