purchase_custom_visibility/README.md
2026-05-29 20:17:40 +07:00

27 lines
1.2 KiB
Markdown

# 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
1. **Per-User Restricting Options**: Toggle restriction flags directly on individual user accounts.
2. **Hide RFQ & Confirmation Buttons**: Hide "Confirm Order" and "Send RFQ" buttons from the purchase order header for restricted users.
3. **Hide Financial Fields**: Hide unit price, subtotal, and totals on purchase lists, forms, line kanbans, and footer groups for restricted users.
4. **Flexible and Stateless**: Instant dynamically computed restrictions without storing redundant data in the database.
## Installation
1. Move the `purchase_custom_visibility` directory to Odoo's custom addons path.
2. Upgrade/Update Odoo addons list.
3. Install the module.
## Configuration (Per-User)
1. Go to **Settings** -> **Users & Companies** -> **Users**.
2. Select a User record and click **Edit**.
3. Open the **Purchase Restrictions** tab.
4. Check the desired restrictions:
- **Hide Confirm Order & Send RFQ**
- **Hide Price, Subtotal & Total**
5. Save the user record.
## Author
- **Suherdy Yacob**