[FIX] account: Fix demo data for matching rules

Fix a bug introduced by:
https://github.com/odoo/odoo/commit/4b23d11184be9bac5ef9790cc7f38bc4d637b47a

Since this commit, the matching rules's regex "BRT: ([\d,]+)" that was matching "BRT: 100,00" is no longer matching "BRT: $ 96.67".

closes odoo/odoo#98698

Related: odoo/enterprise#30490
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
This commit is contained in:
Laurent Smet
2022-08-26 11:51:40 +02:00
parent 8f7fe1aeb3
commit 8295bd1ba0
+2 -3
View File
@@ -149,7 +149,7 @@ class AccountChartTemplate(models.Model):
'partner_id': ref('base.res_partner_2').id
}),
Command.create({
'payment_ref': f'R:9772938 10/07 AX 9415116318 T:5 BRT: {formatLang(self.env, 96.67, currency_obj=self.env.company.currency_id)} C/ croip',
'payment_ref': f'R:9772938 10/07 AX 9415116318 T:5 BRT: {formatLang(self.env, 100.0, digits=2)} C/ croip',
'amount': 96.67,
'date': time.strftime('%Y-01-01'),
}),
@@ -166,7 +166,6 @@ class AccountChartTemplate(models.Model):
'rule_type': 'writeoff_suggestion',
'match_label': 'contains',
'match_label_param': 'BRT',
'decimal_separator': ',',
'line_ids': [
Command.create({
'label': 'Due amount',
@@ -176,7 +175,7 @@ class AccountChartTemplate(models.Model):
self.env.company,
).id,
'amount_type': 'regex',
'amount_string': r'BRT: ([\d,]+)',
'amount_string': r'BRT: ([\d,.]+)',
}),
Command.create({
'label': 'Bank Fees',