1.1 KiB
1.1 KiB
Purchase Custom Form Visibility
Custom Odoo 19 module to dynamically manage the visibility of buttons and financial fields on the Purchase Order form on a per-user basis.
Features
- Per-User Restricting Options: Toggle restriction flags directly on individual user accounts.
- Hide RFQ Button: Hide "Send RFQ" button from the purchase order header for restricted users.
- Hide Financial Fields: Hide unit price, subtotal, and totals on purchase lists, forms, line kanbans, and footer groups for restricted users.
- Flexible and Stateless: Instant dynamically computed restrictions without storing redundant data in the database.
Installation
- Move the purchase_custom_visibility directory to Odoo's custom addons path.
- Upgrade/Update Odoo addons list.
- Install the module.
Configuration (Per-User)
- Go to Settings -> Users & Companies -> Users.
- Select a User record and click Edit.
- Open the Purchase Restrictions tab.
- Check the desired restrictions (Hide Send RFQ, Hide Price, Subtotal & Total).
- Save the user record.
Author
Suherdy Yacob