Friday, April 9, 2021
2 changes · master
Resolved issues and error corrections
Installing the Employees app now links the Administrator employee's work address to the company contact instead of creating or using a separate Administrator contact. This keeps employee and company records cleaner and avoids duplicate or incorrect contact information.
Original PR description
Before changes when we install Employee App, the Administrator work address is linked to a new res.partner (Administrator). However after some changes Administrator work address is linked to the res.partner of company when Employee App is installed and user Administrator is automatically created. TaskID: 2479958 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix ensures storage migration includes attachments linked to specific fields, not just general attachments. It helps prevent incomplete migrations and avoids applying the process to URL-only fields where file storage changes are not relevant.
Original PR description
Description of the issue/feature this PR addresses:
This change is necessary to migrate attachment which are assigned to a field. Otherwise the `_search `method would filter all of those attachments.
```python
if not any(arg[0] in ('id', 'res_field') for arg in args):
args.insert(0, ('res_field', '=', False))
```
Current behavior before PR:
Only attachment not related to a field will be migrated.
Desired behavior after PR is merged:
All attachments are migrated.
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr