odoo/enterprise#73256
Created by Mohammed Assellalou (asm)
Merged
at 52d5c5b4c3867e0d735e84a41fcc1b644fb9ad9d
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- ci/l10n: (runtime 1s)
Linked pull requests
- label
- odoo-dev:16.0-account-empty-string-false-inconsistency-fix
- head
- 14d131ba238a8b9b1c1272db338336c478b13a78
- merged
- 1 year 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 |
[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.