Skip to content

[IMP] inventory: Improve stock info and UI in product form #886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: 18.0
Choose a base branch
from

Conversation

niyp-odoo
Copy link

This change addresses UX consistency and operational safety for users managing inventory in multi-company environments. By conditionally disabling the "Quantity On Hand" field and hiding stock-related actions, we reduce the risk of unintended stock updates by users switching across companies.

Additionally, visual cues were introduced to help users interpret stock availability at a glance using decorations on forecast fields. Simplified labels and stat displays aim to streamline the interface and enhance clarity, especially for forecast-related buttons and values.

These updates prioritize user context awareness, clean visual hierarchy, and help prevent data inconsistencies in environments with multiple active companies.

This improvement refines the product template form view to offer better stock
visibility and user control, particularly for users operating in multi-company
environments. The default buttons such as Update Quantity On Hand and Print
Labels are hidden to reduce UI clutter and avoid confusion for non-storable or
consumable products. A computed field is_multicompany has been added to restrict
direct editing of stock quantities when the user is linked to multiple companies
helping maintain data consistency.

Additionally, the form now displays the current available quantity alongside its
unit of measure with a clear Update button, making it easier for users to
quickly act on stock changes. The Forecasted button label has also been
clarified with an inline quantity display. Visual decorations on the
virtual_available field indicate when stock is low or negative, allowing users
to identify stock issues at a glance. A custom server action has been added to
open the product replenish wizard, providing a fast and user-friendly way to
restock products. Overall, these changes streamline the inventory management
workflow and enhance the clarity and usability of the product form.
@robodoo
Copy link

robodoo commented Jul 24, 2025

Pull request status dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants