d3867f48e7dc081eddc98f1a2111abf9c0100737
Method `_compute_reference` computes unique reference for a transaction. If reference from `account.move`'s `payment_reference` was never used, the method just returns that reference. Othwerwise it adds a counter. The latter requires to make a regular expression to count records with the same prefix. However, if the prefix has special regexp characters (e.g. `+++INV/2020/666+++`), then we have to escape the characters first. This is what this commit does. opw-2994126 closes odoo/odoo#101201 X-original-commit: 6c513d43eba8c58171b0fb632d0ac82b28aa9e7d Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com> Signed-off-by: Ivan Elizaryev (iel) <iel@odoo.com>
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
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%