upgrade-default-period (U1805)#

A date filter’s default_period uses a name Odoo 18.0 replaced.

Applies to Odoo 18.0 and later.

What it does#

Reports default_period values like this_month, last_year or antepenultimate_month on search filters.

Why is this bad?#

Odoo 18.0 renamed the periods: this_month is month, last_month is month-1, antepenultimate_month is month-2, and the same for years. Installing the old names fails with “Invalid default period”.

Fix safety#

Safe: the values are renamed.