Remember List Column Width
by Odoo DevHouse https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse$ 45.00
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 106 |
| Technical Name |
remember_list_column_width |
| License | OPL-1 |
| Website | https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 106 |
| Technical Name |
remember_list_column_width |
| License | OPL-1 |
| Website | https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse |
| Versions | 18.0 19.0 |
Persistent Column Widths - Column Width Saver - Remember List View Layout
Remember your column width adjustments in list views - automatically save and restore custom column widths per user and per view. No more resetting column sizes every time you refresh or log in. Includes a convenient reset bar when custom widths are active.
In standard Odoo, when you resize list view columns, the adjustments are lost on page refresh - every time you reload, every view resets to default column widths.
This creates significant productivity issues:
- Users must re-adjust columns after every page refresh or login
- Wasted time - repetitive resizing across dozens of views daily
- No persistence - custom widths don't survive browser close/reopen
- Different users cannot have their own preferred column widths
- No visual indicator when custom widths are active
- No bulk reset option - must manually restore each column
- Window resize breaks custom column layouts
This module automatically saves column width adjustments to localStorage when you resize columns. On page reload, widths are restored automatically. Each user has their own saved widths, and each view (Sales Orders, Products, Contacts, etc.) stores widths independently. A subtle reset bar appears when custom widths are active, allowing one-click restoration to defaults. Window resize handling ensures layouts remain stable.
- Automatic Save: Column widths saved automatically when you stop resizing
- Per-User Storage: Each user has their own saved column preferences
- Per-View Storage: Sales Orders, Products, Contacts - each view stores widths independently
- Automatic Restore: Widths restored on page load - no manual intervention
- Reset Bar Indicator: Subtle bar appears when custom widths are active
- One-Click Reset: Reset button restores all columns to default widths
- Window Resize Handling: Custom widths preserved when browser window resizes
- Smart Detection: Only saves widths that actually changed
- Zero Configuration: Works immediately after installation
See Remember List View Layout in Action
1. Resize Columns - Save Automatically
Drag column borders to resize. When you stop, widths are saved to localStorage.
2. Reset Bar - Custom Widths Active
A subtle bar appears above the list view indicating custom widths are active.
3. Click Reset - Restore Defaults
Click "Reset Column Widths" to restore all columns to Odoo default widths.
Installation & Configuration
- Install the Module: Install through Odoo Apps or manually copy to addons path
- Dependencies: Requires
webmodule - Restart Server & Update: Restart Odoo and update the app list
- No Configuration Needed: Module works immediately after installation
- Test: Open any list view â Resize columns â Refresh page â Widths restored
Step 1: Navigate to Any List View
Open any list view in Odoo - Sales Orders, Products, Contacts, Invoices, Tasks, etc. The module works with every list view in the system.
Step 2: Resize Columns to Your Preference
Hover over the border between any two column headers until the resize cursor appears. Drag left or right to adjust the column width.
- Resize as many columns as you want
- Widths are saved automatically when you finish dragging (no button to click)
- Each column's width is saved by its field name
Step 3: Reset Bar Appears
After resizing, a subtle reset bar appears above the list view showing:
- A columns icon
- Text: "Column widths customized"
- A "Reset Column Widths" button
This bar only appears when custom widths are active and disappears when you reset to defaults.
Step 4: Refresh Page - Widths Restored
Refresh your browser (F5 or Ctrl+R). Your custom column widths are automatically restored to the exact sizes you set - no manual adjustment needed.
Step 5: Reset to Defaults (Optional)
If you want to restore Odoo's default column widths:
- Click the "Reset Column Widths" button in the reset bar
- All columns return to their original default widths
- The reset bar disappears
- Saved widths are cleared from localStorage
Pro Tip - Per-User Personalization
Column widths are stored per user using your user ID. This means: Sales Manager can have wide columns for order amounts and customer names. Warehouse staff can prioritize stock levels and locations. Accountants can focus on invoice amounts and due dates. Each user sees their own preferred layout automatically - no interference!
Technical Note - Storage Location
Widths are stored in your browser's localStorage - not on the Odoo server. This means your preferences follow you on the same browser across sessions, but if you switch to a different computer or browser, you'll need to set your widths again on that device. This is intentional to avoid server database bloat and keep the module lightweight.
Sales Order List
Sales managers need wide columns for customer names and amounts - save once, see every time.
Product Catalog
Warehouse staff need product name, QTY, and location columns - customize once.
Customer List
Sales reps need wider name and email columns - saved preferences persist across sessions.
Invoice List
Accountants need partner name, invoice date, and total amount columns - all visible without scrolling.
Task Management
Project managers need task title, assignee, and due date columns - personalized layout.
Inventory Reports
Warehouse managers need product, location, on-hand, and reserved columns - all visible at glance.
Increased Productivity
Eliminate repetitive column resizing - save seconds per view, minutes per day, hours per week.
Personalized Experience
Each user sees their own preferred layout - no more "one size fits all" column widths.
Reduced Frustration
No more "why do my columns keep resetting?" - a common user complaint eliminated.
No Training Required
Works exactly like standard Odoo - users just resize columns as usual, module remembers.
Do You Need Assistance or Have a Feature Request?
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module