Attachment Auto Rename In Odoo
Odoo 18.0
Community
Enterprise

Key Features

1) Automatically renames every uploaded attachment across Odoo
2) Works for chatter uploads and form binary-field uploads
3) Builds the file name from the related record's name
4) Optionally keeps the original file name (at first or last position)
5) Adds a configurable custom label and the current date
6) All naming rules managed from General Settings, no code needed
7) Compatible with Community and Enterprise editions

Module Information & User Guide

Step 1 – Configure Naming Rule

Go to Settings → Attachment. The module adds a new Attachment tab (marked 1) with an Attachment Naming rule builder (marked 2). Choose to keep the existing name (first or last), add a custom label such as INV, and append the current date. Settings are stored in ir.config_parameter.

Step 2 – Automatic Rename on Upload

Upload any file to a record's chatter or a binary field. It is renamed instantly using the rule. In this example the uploaded report.pdf became report_Acme Corp_INV_2026_07_08.pdf – combining the existing name, the record name (Acme Corp), the custom label (INV) and the current date.

Help & Support

NEED CUSTOMIZATION

MODULE SUPPORT

HAVE ANY QUESTION