odoo/enterprise#80167

Created by fw-bot
Merged at f87e47a7382163e2d30c5beea2a249d54d980caa

Statuses:

Linked pull requests
label
odoo-dev:saas-18.2-16.0-account-empty-string-false-inconsistency-fix-418698-fw
head
22bfdb3db3fd7ea8d55727e03a15bf535103028e
merged
6 months ago by Accounting, William André (wan)
odoo/odoo odoo/enterprise
16.0 #186079 #73256
17.0 #187135 #73766
saas-17.2 #189097 #74854
saas-17.4 #189099 #74855
18.0 #191026 #75834
saas-18.1 #199289 #80158
saas-18.2 #199307 #80167
saas-18.3
saas-18.4
19.0
master #204193 #82582

[FW][FIX] account: fix empty string and False/None inconsistencies

[FIX] account_asset: fix empty string and False/None inconsistencies (adapting tests)

When empty, the name field of account.move.line could inconsistently hold either an empty string or False. This inconsistency led to different results when searching for lines with an empty label, as label->not set and label == "" yielded different outcomes. The latter behavior aligns with expected ORM operations.

This fix ensures the name field is set to False whenever the computed result is an empty string, standardizing search behavior. We also adapt some tests to the new behavior in enterprise.

opw-4167139

community PR

Forward-Port-Of: #75834
Forward-Port-Of: #73256