diff options
| author | Laurent Smet <las@odoo.com> | 2019-06-14 07:28:41 +0000 |
|---|---|---|
| committer | Laurent Smet <las@odoo.com> | 2019-06-14 07:28:41 +0000 |
| commit | 94dc2fe5f7c79fd84a68c2048812accf0b3da0eb (patch) | |
| tree | e42f6286453de0d33b7f54d6def8ec8e545c2fe9 /addons/web/static/src | |
| parent | ae48324aee47aa4851e313671241970a5b8528b5 (diff) | |
[FIX] account: Fix matching rules with empty communication
The way to find a matching about structured communication is done by:
1 - making a filter to keep only numerical values.
2 - splitting the result into array.
3 - finding an intersect between the sets.
For example,
"Payment about +++123/456789+++ and +++987/654321+++" is matching "123456789 blablabla"?
1 - "123456789 987654321" is matching "123456789" ?
2 - ["123456789", "987654321"] is matching ["123456789"]
3 - YES because "123456789" intersects both sets.
This commit is about the check is always TRUE when both sets are empty.
In this specific case, the result must be FALSE.
-opw: 2008299
closes odoo/odoo#34115
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions
