Anh Thao Pham (pta) cb0791d948 [FIX] point_of_sale: fix customer search when a field contains line break
- Install contacts & point_of_sale
- Go to Contacts and import a contact from an Excel file with the following data:
  /!\ The street field should contain a line break /!\

  Name | Phone  | Street
  -------------------------
  Test | 123456 | Multiline
                  Street

- Open a POS session
- Go to Customer selection page
- Search for "123456"
The imported res.partner will not be found by his phone.

A partner search in POS is working with a regex search on a string containing all partners.
This string is supposed to contain 1 line for each partner and a line is formatted as followed:

  id:name|barcode|address|phone|mobile|email|vat

However, in this case, partner's address contains a line break, resulting on a line like this:

  id:name|barcode|address (part before line break)
  address (part after line break)|phone|mobile|email|vat

This partner is defined in 2 lines and all data from the second line cannot be matched with regex.

opw-2477994

closes odoo/odoo#68365

X-original-commit: 3de16a7a4616c73cfabd64aa010801f687cf14af
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
2021-03-25 17:19:22 +00:00
…
…
…
2019-11-08 11:24:04 +00:00
2020-09-28 14:07:25 +00:00

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%