Insights·AI with Odoo·5 min read

When should an Odoo 19 field be filled by AI?

Odoo 19 can add fields that an AI model fills from a prompt. Which fields suit that, which still need a plain rule, and what to set up first.

Your service team writes long notes on every ticket, and the operations director wants a single line on each one saying what the customer needs and how urgent it sounds. In Odoo 19 that line can come from an AI field: a field whose value a language model writes from a prompt you give it, using the record's other fields as context. Adding one takes a few minutes, and the time goes into choosing where it belongs: some fields are a good match, others will quietly put guesses into your reports.

How an AI field is built in Odoo 19

In Studio, you drag the AI Field option onto the form and pick a field type. The list covers Text, Multiline Text, HTML, Integer, Decimal, Monetary, Date, Datetime, Checkbox, Many2one and Tags. You then write a prompt describing what the field should contain, its format and its tone, and insert references to other fields on the record with the /field command. Odoo's documentation also allows an AI field as a property field, through Edit Properties on the form, without opening Studio. Property fields only appear on form views, and Odoo warns that installing Studio may affect a database's pricing plan, so check that before choosing the Studio route. The full steps are in Odoo's AI fields documentation.

The value is written once and does not follow your data

A computed field in Odoo recalculates whenever the fields it depends on change, and many people assume an AI field does the same. According to the documentation, the value is computed or refreshed when someone clicks the AI icon next to the field, and a scheduled action called AI Fields:Compute AI fields runs once a day to fill text and property AI fields that are still empty. That action is active by default and can be run by hand from Settings > Technical > Automation > Scheduled Actions.

So say a summary was written on Monday and the customer adds a complaint on Wednesday. The summary still describes Monday until someone refreshes it. That is acceptable in a field people glance at to get their bearings. If a dashboard groups by the field or an automation rule reacts to it, the stale value is simply wrong, and nobody sees the moment it went wrong.

Fields that suit AI

The good candidates are fields a person would otherwise fill by reading free text: a one-line summary of a long ticket or opportunity, a draft product description built from the product's attributes, the language a customer writes in, or a short note on the tone of an email thread. A person reads each of these and can correct it, so an occasional poor answer costs seconds and touches no balance.

Classification sits in the middle. A Tags or Many2one AI field can suggest a ticket category or a product family, which helps when a team triages dozens of records a day. Treat the result as a suggestion until you have watched it for a few weeks. If a report or a routing rule depends on that category, decide who checks the AI's choice, and when, before the report goes to management.

Fields that should stay as rules

The field type list includes Integer, Decimal, Monetary and Date, which makes it tempting to let AI fill numbers. Our view is that anything Odoo can already calculate exactly should stay calculated: amounts, taxes, due dates from payment terms, stock quantities, credit limits. A model asked for a number gives a plausible number, and a plausible number in a monetary field is worse than an empty one, because it looks finished. If the logic fits a formula or an automation rule condition, write it that way, and keep AI for unstructured text that no formula can read.

When the request is about acting on a record

Some requests go further than a field, such as filing an incoming document or creating a vendor bill from it. Odoo 19 handles these with AI server actions, configured under Settings > Technical > Server Actions with the type AI. The AI server action reads the record and the prompt and picks one of the tools you have allowed, along with its arguments. The tools are ordinary server actions with Use in AI enabled, and they do the actual writing. Odoo's documentation states that a tool runs unconditionally once called unless its own code prevents it, so your business rules have to live in the tool's code; a prompt cannot enforce them. A process built that way, or one that reads invoices all the way to posting, deserves its own testing, and that is the work our AI-powered automation team does inside Odoo.

What to settle before switching it on

Start with the provider. Odoo 19 supports OpenAI's ChatGPT and Google Gemini. On Odoo Online your own API key is optional, but databases on Odoo.sh or on your own servers need one, entered under AI > Configuration > Settings. If you create the key in OpenAI, choose a service account as its owner. A key tied to a person is disabled when that user is removed from the organization or project, which is a poor fit for a setting the whole company depends on. The provider bills usage separately, by model and account type.

Then look at what each prompt sends. A prompt that references the customer's notes sends those notes to the provider, so check the provider's terms against your own data policy before you point an AI field at HR or payroll records. Test every prompt on a copy of your database with real records. When the AI cannot answer, Odoo shows a warning, which usually means the prompt asks for information the record does not hold or the instructions are unclear.

For the first trial, pick one field: ideally a summary that people read but nothing reports on. Leave numbers, dates and anything that triggers an automation rule on formulas.

Let's talk

Let's turn this into a plan.

Book a discovery call and we will map your fastest path to a system that lasts.

Book a discovery call →