Try: groups_id, tree, attrs, read_group, ir.access, useState · 53 of 53 facts
- Odoo 17
attrs=andstates=in views raise "Since 17.0, the attrs and states attributes are no longer used" (odoo/addons/base/models/ir_ui_view.py:392). Useinvisible="state == 'done'",readonly=,required=,column_invisible=directly. - Odoo 17List views are STILL
<tree>in 17 (view type'tree', ir_ui_view.py:163).<list>starts in 18. - Odoo 17
name_get()still exists (odoo/models.py:1694) next to_compute_display_name(1678): prefer the compute. - Odoo 17
- Odoo 17Combine domains with
from odoo.osv import expression+expression.AND([...])/OR(17 and 18; odoo/osv/expression.py).fields.Domaindoes NOT exist before 19. - Odoo 18
- Odoo 18
name_get()is gone: implement_compute_display_namesettingdisplay_name. - Odoo 18
read_group(domain, fields, groupby, ...)still exists (odoo/models.py:2819)._read_group(domain, groupby, aggregates)is the internal API (odoo/models.py:1978). - Odoo 18
res.groups.category_idandres.users.groups_idstill exist (renamed in 19). - Odoo 18
ir.cronhas nonumbercall/doallany more (absent in odoo18 ir_cron.py; present in odoo17 ir_cron.py). - Odoo 18
user_has_groups()is gone (odoo17 models.py:1559, absent in 18): useself.env.user.has_group(...). - Odoo 18Field option
group_operatoris deprecated, useaggregator=(odoo/fields.py:480-481 maps it with a warning). - Odoo 18
- Odoo 18
message_post(subtype=...)raises ValueError (mail_thread.py:2206 forbidden names): usesubtype_xmlid=. - Odoo 18
<chatter/>in forms exists from 18 (81 core view files). - Odoo 18Kanban cards:
<t t-name="card">already from 18;kanban-boxis deprecated (web kanban_arch_parser.js:9-12). - Odoo 18QWeb
t-*directives are allowed only in kanban (and activity / hierarchy / gantt) views, NOT calendar (odoo/addons/base/models/ir_ui_view.py_is_qweb_based_view). - Odoo 19ORM moved to
odoo/orm/(models.py, fields*.py, table_objects.py). - Odoo 19
odoo.fields.Domainarrives (odoo/orm/domains.py):Domain('a', '=', 1) & Domain(...),Domain.AND([...]).odoo.osv.expressionstill exists but is deprecated (odoo/osv/expression.py). - Odoo 19
- Odoo 19
read_groupis marked "Deprecated" (odoo/orm/models.py:2755). Use_read_groupin Python andformatted_read_groupfrom the web layer (addons/web/models/models.py:802). Its groups carry__extra_domain(the old__domainis gone): AND it with your own domain. - Odoo 19
_sql_constraintsand_constraintsare IGNORED with a warning (odoo/orm/model_classes.py:160-163). Use_name_uniq = models.Constraint('unique(name)', "message")(odoo/orm/table_objects.py:79). - Odoo 19
res.groups.category_idis gone: useprivilege_id(Many2oneres.groups.privilege). - Odoo 19
res.users.groups_idis renamed:group_ids(explicit) andall_group_ids(with implied groups). Record rules useuser.all_group_ids.ids(addons/mail/security/mail_security.xml). - Odoo 19Kanban cards:
<t t-name="card">is REQUIRED (notkanban-box, which only warned in 18; addons/sale/views/sale_order_line_views.xml:121). In card templatesrecord.f.valueis the FORMATTED value (a boolean renders as truthy markup): test withrecord.f.raw_value. - Odoo 19Non-stored computed field depending on the current user needs
@api.depends_context('uid')(else the value is cached across users). - Odoo 19i18n export is a subcommand:
odoo-bin i18n export -d <db> -o out.pot <module>(odoo/cli/i18n.py, absent in 18). - Odoo 19Backend asset bundle is
web.assets_web(notweb.assets_backend) when checking what the browser loads (addons/web/__manifest__.py). - Odoo 20
ir.model.accessis gone: modelir.access(odoo/addons/base/models/ir_access.py:64). CSVsecurity/ir.access.csv, headerid,name,model_id,group_id/id,operation,domain;model_idis the model NAME (e.g.sale.order),operationletters likecrudorr. - Odoo 20
ir.actions.report.report_filewas removed (a Char field in 19, absent in 20): drop<field name="report_file">. - Odoo 20
<t t-set="data_report_landscape" t-value="True"/>must sit BEFOREt-call="web.html_container", not inside it (inside is ignored, PDF comes out portrait; seen in a rendered PDF). That placement also works in 19. - Odoo 20
read_groupstill exists (odoo/orm/models.py:1932);formatted_read_groupat addons/web/models/models.py:1022. - Odoo 20
models.Constraintat odoo/orm/table_objects.py:88. - Odoo 20
odoo/osv/expression.pyis GONE: onlyodoo.fields.Domain. - Odoo 20
ir.ruleis gone too: a row ofir.access.csvwith NO group and a domain is a restriction (ir_access.py:131);odoo/upgrade_code/19.4-00-ir-access.pyconverts old rules. - Odoo 20
ir.attachmentignoresdatas(warning "Use raw, datas has beeen removed", ir_attachment.py:535): writeraw. - Odoo 20QWeb has no
t-esc/t-raw(no_compile_directive_escin ir_qweb.py; 0 core templates use them): uset-out. - Odoo 20
request.jsonrequestis gone from the Request (only on the JSON-RPC dispatcher, odoo/http/dispatcher.py:321): userequest.get_json_data(). - Odoo 20
- Odoo 20
act_windowtargethas no'inline'any more (values: current, new, fullscreen, main). - Odoo 20View inheritance may not select on translated attributes (
[@placeholder],[@string]...): TRANSLATED_ATTRS in odoo/tools/translate.py, enforced by ir_ui_view.py_valid_inheritance. - Odoo 20A client action keeps its filters when the user comes back by the breadcrumb with
useSetupAction({ getLocalState: () => ({...}) })and reads them back fromthis.props.state(product/static/src/js/pricelist_report/product_pricelist_report.js:76), not with sessionStorage. - AllOWL 3 on 20:
@odoo/owlhas nouseState/reactive(useproxy),useRef(usesignal.ref()witht-ref="this.x"),useExternalListener(useuseListener). OWL 2 on 17-19 has noproxy/signal/useProps(addons/web/static/lib/owl/owl.js).
odoo-check catches it: [owl-export] - AllServices: no
rpc/userservice from 18 (import { rpc } from "@web/core/network/rpc",import { user } from "@web/core/user"), nocompanyservice from 19 (user.activeCompany).
odoo-check catches it: [service-missing] - All
patch(Target.prototype, { setup() { super.setup(...arguments); } }): two arguments from 17, no name string, nothis._super(web/static/src/core/utils/patch.js:71).
odoo-check catches it: [patch-args] - AllFields registry entries are objects from 17:
add("x", { component: MyField }).
odoo-check catches it: [field-registry] - AllLegacy
odoo.define/require('web.core')modules are gone from 17: ES modules only.
odoo-check catches it: [legacy-require] - All
<chatter/>from 18;<div class="oe_chatter">is not compiled any more (mail .../form_compiler.js).
odoo-check catches it: [oe-chatter] - All
invisible=/readonly=/required=take a Python expression from 17; a domain list is always true.
odoo-check catches it: [invisible-domain] - AllButton icons on 17-19 ONLY are
fa-*/oi-*; any other value is drawn as an image (view_button.js). On 20 it is the opposite: see the 20 section, afa-*icon shows nothing there.
odoo-check catches it: [button-icon] - AllNo
'qweb'manifest key and noweb.assets_qwebbundle from 17: list templates inweb.assets_backend.
odoo-check catches it: [manifest-qweb] - AllOverrides Odoo never calls:
_name_searchfrom 18 (use_search_display_name(operator, value)or_rec_names_search),fields_view_getfrom 17 (use_get_view),toggle_activeon 20 (action_archive/action_unarchive).read_groupoverrides do not change the UI from 19 (web usesformatted_read_group).
odoo-check catches it: [dead-override] - All
_read_group(domain, groupby, aggregates)from 17, returns tuples (the 16 order was fields, groupby).
odoo-check catches it: [read-group-args]
odoo-agent checks for these while your agent writes, on your own Odoo version.
Set it up
