Go to file
2026-05-29 20:54:14 +07:00
models feat: implement dynamic price field visibility for product models based on user restrictions 2026-05-29 20:54:14 +07:00
views first commit 2026-05-29 20:17:40 +07:00
__init__.py first commit 2026-05-29 20:17:40 +07:00
__manifest__.py feat: implement dynamic price field visibility for product models based on user restrictions 2026-05-29 20:54:14 +07:00
.gitignore first commit 2026-05-29 20:17:40 +07:00
README.md feat: implement dynamic price field visibility for product models based on user restrictions 2026-05-29 20:54:14 +07:00

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 & Confirmation Buttons: Hide "Confirm Order" and "Send RFQ" buttons 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

  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