Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Productivity
  3. Update a Field on Many Records v 19.0
  4. Sales Conditions FAQ

Update a Field on Many Records

by Farhan Ashraf https://apps.odoo.com/apps/modules/browse?author=Farhan+Ashraf
Odoo
v 19.0 Third Party 10
Download for v 19.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 14.0 15.0 16.0 17.0 18.0 19.0
You bought this module and need support? Click here!
Versions 14.0 15.0 16.0 17.0 18.0 19.0
  • Description
  • Manifest

Update a Field on Many Records

One field, three hundred records, one confirmation.

Changing a single field on three hundred records means three hundred clicks — or an export/import round trip that touches columns you never meant to touch. This module adds an Update a Field action to the list view: select the records, pick the field, enter the value, see how many records will really change, confirm, and apply. Free and open source (LGPL-3), Odoo 14.0 through 19.0.

What it does

  • Works on any model — the list of fields is built from the model you are looking at, and the input matches the field: a text box, a number, a date picker, a checkbox, a dropdown for selection fields, a record picker for many2one fields.
  • Preview before you commit — the wizard counts the records that will actually change, the ones that already carry the value, the ones you cannot see and the ones that have been deleted meanwhile.
  • An explicit confirmation step — the model, the field, its technical name, the new value and the record count are shown on their own screen. Nothing is written before you press Apply, and the server refuses to apply a change that was not confirmed.
  • A report you can act on — updated / skipped / failed, with the reason for every skip and the error message of every failure, naming the records concerned.
  • Clear a field on purpose — emptying a field is a separate tick box, never something you can do by leaving an input blank. Required fields are refused.

The guards

  • Only writable fields are offered — read-only fields, computed fields Odoo itself does not let you edit, non-stored fields, related and delegated fields (they would write on another record than the one you selected) and Odoo's own bookkeeping columns (id, create_uid, create_date, write_uid, write_date) never appear in the list.
  • Never the archive flag — active is excluded on every model: archiving has its own, reversible tools.
  • Never a credential — the user login, and any field whose name looks like a password, a secret, a token or an API key, is refused on every model.
  • The field is validated again at apply time — against the model, against the field catalogue and against your own access rights, so a field name forged over RPC is refused rather than written.
  • The target cannot be moved — the model and the selected records are captured when the wizard opens and cannot be re-pointed afterwards, so what you confirmed is what gets written. A record chosen as a many2one value must exist and be readable by you.
  • Your access rights are respected — the update runs as you, never with elevated privileges. Records you may not see are skipped and counted; records you may not write are skipped, named and counted.
  • One failure does not lose the batch — every record is written in its own savepoint, so a validation error on record 7 does not roll back records 1 to 6.
  • Traceable — a note is logged in the chatter of each changed record, quoting the old and the new value, on the models that have a chatter.
  • Reserved to Settings users — the action is only visible to users with administrative (Settings) access.

Screenshots

Update a Field in the Actions menu

Tick the records, then choose Actions → Update a Field.

Choosing the field and the value

Pick the field, enter the value, and read how many records will really change.

The confirmation step

Nothing is written before this screen: model, field, technical name, value and count.

The result report

A real run: two records updated, two skipped because the user may not edit them, one refused by a model constraint — each with its reason.

Installation

  1. Open Apps, search for Update a Field on Many Records and click Install.
  2. Only the standard mail module is required (it is what the chatter note is written to).

Configuration

  1. None. The action is available immediately on Contacts, for users with Settings access.
  2. To offer it on another model, a technical user opens Settings → Technical → Actions → Window Actions, edits Update a Field and adds that model to the action bindings. The wizard itself already works on any model.

Usage

  1. Open a list view and tick the records to change.
  2. Choose Actions → Update a Field.
  3. Pick the field. Only the fields you may write on that model are listed.
  4. Enter the new value, or tick Clear the value to empty the field. The counter under the input tells you how many of the selected records will actually change.
  5. Press Preview, check the confirmation screen, then Apply.
  6. Read the report: updated, skipped and failed, with the reason for each.

Limits, stated plainly

  • Up to 10 000 records per run. A bigger change belongs to an import or a scheduled action, and the wizard says so instead of silently truncating.
  • Supported field types: text, multi-line text, HTML, integer, decimal, monetary, checkbox, date, date & time, selection and many2one. One2many and many2many fields are not offered, nor are binary and company-dependent fields.
  • Selection values defined by Python code rather than by a fixed list (for instance a language field) are typed in instead of picked from a dropdown; the allowed values are listed in the wizard and validated before anything is written.
  • On Odoo 14.0 and 15.0 the record picker for many2one fields also shows a model selector — the client of those versions cannot hide it. Pick the model named in the hint under the input; anything else is refused.
  • The chatter note quotes the old and the new value and is visible to everyone who can already read the record, followers included — untick Log a note in the chatter when the value is sensitive.
  • The update runs in one request, record by record: a batch of several thousand records keeps the dialog open for a while. There is no background job.
  • The update is not undoable from the wizard. What it changed is visible in the chatter of each record, on the models that have one.

Questions, bugs or feature requests?
Email f.ashraf.dev1@gmail.com — I read and answer every message.

License: LGPL-3 · Source on GitHub · Issues and contributions welcome.

Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 657
Technical Name mass_field_update
LicenseLGPL-3
Websitehttps://apps.odoo.com/apps/modules/browse?author=Farhan+Ashraf

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with