commit aa826900098368e946033912ad6e5082171fec96 Author: admin.suherdy Date: Fri Nov 14 08:06:00 2025 +0700 first commit diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..ad3694f --- /dev/null +++ b/README.rst @@ -0,0 +1,15 @@ +======================= +Hide Update Quantity Button +======================= + +This module hides the "Update Quantity" button in product forms for users who are not in the ERP manager group. + +Configuration +============= +No configuration required. Once installed, only users belonging to the base.group_erp_manager group can access the "Update Quantity" button. + +Usage +===== +After installing this module: +- Users in the ERP Manager group (base.group_erp_manager) will continue to see the "Update Quantity" button +- All other users will not see the button in product forms \ No newline at end of file diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..7c68785 --- /dev/null +++ b/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- \ No newline at end of file diff --git a/__manifest__.py b/__manifest__.py new file mode 100644 index 0000000..4528419 --- /dev/null +++ b/__manifest__.py @@ -0,0 +1,20 @@ +{ + 'name': 'Hide Update Quantity Button', + 'version': '18.0.1.0.0', + 'category': 'Inventory', + 'summary': 'Hide Update Quantity button for non-ERP managers', + 'description': """ + This module hides the 'Update Quantity' button in product forms for users who are not in the ERP manager group. + Only users belonging to the base.group_erp_manager group can access the 'Update Quantity' button. + """, + 'author': 'Custom Development', + 'depends': [ + 'stock', + ], + 'data': [ + 'views/product_views.xml', + ], + 'installable': True, + 'auto_install': False, + 'application': False, +} \ No newline at end of file diff --git a/views/product_views.xml b/views/product_views.xml new file mode 100644 index 0000000..837501e --- /dev/null +++ b/views/product_views.xml @@ -0,0 +1,38 @@ + + + + + product.template.form.view.procurement.button.inherit + product.template + + + + base.group_erp_manager + + + + + + + product.form.view.procurement.button.inherit + product.product + + + + base.group_erp_manager + + + + + + + product.product.view.form.easy.inherit.stock.inherit + product.product + + + + base.group_erp_manager + + + + \ No newline at end of file