Skip to content
Snippets Groups Projects
Commit 313bd0a2 authored by Djamel (otd)'s avatar Djamel (otd)
Browse files

[FIX] base: fix the customer search by vat number


Steps to follow to reproduce the bug:
-Go to sales
-Add a vat number with a '-' like: "123456789-5" to any customer
-Create a new SO
-Search the customer by entering their VAT number

Problem :
When the VAT number contains the character '-' you cannot find the customer with his VAT number.
The problem is the same if the vat number contains a '.'
Because, the "_name_search" method before creating the query to search clients by VAT number, removes all the special characters from user input

Solution :
Do not remove the characters '-' and '.' from the user input for the customer search by vat number.

opw-2457692

closes odoo/odoo#67355

X-original-commit: 3f54c1c7
Signed-off-by: default avatarAnh Thao PHAM <kitan191@users.noreply.github.com>
Signed-off-by: default avatarDjamel Touati <DjamelTouati@users.noreply.github.com>
parent 1d8077c3
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment