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][REF] base: custom changes for IRC data merge #448

Open fernandahf opened 3 years ago

fernandahf commented 3 years ago

Description of the issue/feature this PR addresses:

MR performs:

  1. When merging partners, Odoo out-of-box deletes partner records merged, but in some cases, we need to know which partner was merged and maybe make a unmerge but if the record is deleted there is no way to recover that data, PR changes the method to archive records instead unlink.

  2. Enable ignore tables when updating foreign keys in merging in order to don't repeat historical addresses, phones, or emails.

PATCH USE

Current behavior before PR:

Merged partners are deleted.

Desired behavior after PR is merged:

Merged partners are archived.

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