Atul Patel dc3fe1e07e [FIX] account: fix duplicate constraint for journal
During upgrading the chart template will try to create
xmlid to existing records to avoid duplicate journal codes.
but there are some existing code journal which was inactive
and it was not unlinked so need to search for archived journal
too.

```
psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "account_journal_code_company_uniq"
DETAIL:  Key (company_id, code)=(1, EXCH) already exists.
```

closes odoo/odoo#124022

X-original-commit: 7264e664f5a665cea3cd4e9d4f40214c51442080
Signed-off-by: William André (wan) <wan@odoo.com>
2023-06-07 10:45:36 +02:00
2023-06-06 14:48:35 +02: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%