Atul Patel
ac8c7febd3
[FIX] account: fixed tax name unique constraint error
...
due to the absence of IR model data entries for certain
account taxes, but with identical tax names, tax types,
and scopes, attempts to create standard taxes with the
same names alongside IR model data result in a constraint
violation, specifically, "tax name must be unique." To address
this constraint, we append "old" to the tax name for existing
taxes lacking IR model data entries.
see:
https://github.com/odoo/odoo/blob/740fb9ac8c8e121820feeac0e1f25a304e47da9d/addons/account/models/account_tax.py#L202
```
File "/home/odoo/src/odoo/17.0/odoo/models.py", line 4864, in _create
records._validate_fields(name for data in data_list for name in data['stored'])
File "/home/odoo/src/odoo/17.0/odoo/models.py", line 1456, in _validate_fields
check(self)
File "/home/odoo/src/odoo/17.0/addons/account/models/account_tax.py", line 201, in _constrains_name
raise ValidationError(
odoo.exceptions.ValidationError: Tax names must be unique!
```
closes odoo/odoo#161146
X-original-commit: 87e13a0f29ace57f1fd591d7180a64bb085a3bca
Signed-off-by: William André (wan) <wan@odoo.com >
2024-04-10 08:17:54 +00:00
..
2024-04-10 08:17:54 +00:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-04-05 12:18:18 +00:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-24 00:12:07 +01:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00
2024-04-05 07:20:50 +00:00
2024-03-27 17:45:00 +00:00
2024-04-07 10:03:48 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-04-10 08:17:53 +00:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-04-07 10:03:48 +00:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-04-04 11:48:12 +00:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-07 10:03:48 +00:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-09 15:06:50 +00:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-04-09 16:43:46 +00:00
2024-04-05 07:20:47 +00:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-02 15:40:28 +00:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-04-10 08:17:49 +00:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-04-02 12:09:33 +00:00
2024-03-31 00:09:16 +01:00
2024-03-17 00:11:43 +01:00
2024-04-09 07:22:43 +00:00
2024-04-09 19:35:41 +00:00
2024-03-18 08:45:37 +00:00
2024-04-09 11:19:46 +00:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-21 18:35:46 +00:00
2024-03-22 03:11:48 +00:00
2024-04-09 23:14:46 +00:00
2024-03-21 11:11:41 +00:00
2024-03-29 10:44:21 +00:00
2024-03-21 23:03:07 +00:00
2024-03-22 07:00:44 +00:00
2024-03-26 13:35:53 +00:00
2024-03-29 18:09:41 +00:00
2024-03-26 22:20:21 +00:00
2024-04-09 13:04:11 +00:00
2024-04-05 07:20:48 +00:00
2024-03-27 09:12:49 +00:00
2024-04-06 07:27:58 +00:00
2024-03-18 05:04:11 +00:00
2024-04-08 11:13:51 +00:00
2024-03-14 15:43:44 +00:00
2024-04-09 13:04:12 +00:00
2024-03-22 09:44:38 +00:00
2024-03-29 18:09:45 +00:00
2024-04-09 15:06:45 +00:00
2024-03-31 00:33:23 +00:00
2024-04-02 12:09:28 +00:00
2024-04-04 08:18:55 +00:00
2024-03-15 17:30:00 +00:00
2024-03-29 07:53:02 +00:00
2024-03-22 14:47:57 +00:00
2024-03-21 23:03:07 +00:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-09 16:43:45 +00:00
2024-03-24 00:12:07 +01:00
2024-04-09 07:22:44 +00:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-09 19:35:40 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-15 06:12:46 +00:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00
2024-04-08 18:42:48 +00:00
2024-04-07 00:08:33 +02:00
2024-04-09 11:19:48 +00:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-04-09 11:19:48 +00:00
2024-03-31 00:09:16 +01:00
2024-04-06 09:09:12 +00:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-03-17 00:11:43 +01:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-04-08 07:35:54 +00:00
2024-03-31 00:09:16 +01:00
2024-04-09 15:06:51 +00:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-09 07:22:44 +00:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-04-07 00:08:33 +02:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-04-07 00:08:33 +02:00
2024-04-10 08:17:51 +00:00
2024-03-17 00:11:43 +01:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-17 00:11:43 +01:00
2024-04-05 10:30:39 +00:00
2024-03-24 00:12:07 +01:00
2024-04-10 08:17:47 +00:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-22 14:47:54 +00:00
2024-03-24 00:12:07 +01:00
2024-04-09 09:37:54 +00:00
2024-04-10 08:17:47 +00:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-29 12:38:11 +00:00
2024-04-10 08:17:47 +00:00
2024-04-10 08:17:53 +00:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-28 18:06:45 +00:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-09 15:06:49 +00:00
2024-03-24 00:12:07 +01:00
2024-03-31 00:09:16 +01:00
2024-04-08 17:25:42 +00:00
2024-04-07 00:08:33 +02:00
2024-04-05 12:18:14 +00:00
2024-04-10 08:17:47 +00:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-03-17 00:11:43 +01:00
2024-04-07 10:03:48 +00:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-04-09 11:19:48 +00:00
2024-04-07 00:08:33 +02:00
2024-04-05 12:18:16 +00:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00
2024-03-22 11:20:04 +00:00
2024-03-28 12:19:04 +00:00
2024-04-07 10:03:48 +00:00
2024-04-05 08:57:48 +00:00
2024-03-29 10:44:19 +00:00
2024-04-07 10:03:48 +00:00
2024-03-29 09:12:17 +00:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-04-10 06:46:43 +00:00
2024-04-10 08:17:52 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-29 09:12:17 +00:00
2024-04-09 19:35:40 +00:00
2024-04-10 08:17:54 +00:00
2024-03-24 00:12:07 +01:00
2024-03-24 00:12:07 +01:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-03-17 00:11:43 +01:00
2024-04-08 07:35:58 +00:00
2024-03-31 00:09:16 +01:00
2024-04-08 07:35:58 +00:00
2024-03-21 19:54:27 +00:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-09 11:19:47 +00:00
2024-03-31 00:09:16 +01:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-03-17 00:11:43 +01:00
2024-04-07 00:08:33 +02:00
2024-04-07 00:08:33 +02:00
2024-04-08 11:13:49 +00:00
2024-03-28 10:19:45 +00:00
2024-04-07 00:08:33 +02:00
2024-03-31 00:09:16 +01:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-03-17 00:11:43 +01:00
2024-03-24 00:12:07 +01:00
2024-04-08 07:35:58 +00:00
2024-03-24 00:12:07 +01:00
2024-03-31 00:09:16 +01:00
2024-03-24 00:12:07 +01:00
2024-04-07 00:08:33 +02:00