Vauxoo / odoo

Fork of Odoo (formerly OpenERP). [This project is not publically mantained just born for internal usage with some little patches] go to official repository on github.com/odoo/odoo
https://www.odoo.com
Other
9 stars 9 forks source link

14.0 dont delete records if pgerror raised #510

Closed fernandahf closed 2 years ago

fernandahf commented 2 years ago

Description of the issue/feature this PR addresses:

In following lines:

The unlinking is done due to the all postgres errors raised in the updating of foreign keys and references, but this is so dangerous if the partner is not deleted as the out-of-box code, instead we are only archive the partners and also the deletion could cause concurrence errors that cause merges in incorrect states and documents related with partners incorrect.

Current behavior before PR:

Desired behavior after PR is merged:

Depends of https://github.com/Vauxoo/enterprise/pull/722

-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr