odoo/upgrade#7517

Created by Accounting, Seif Gneedy (segn)
Merged at 793c1d5b6565df04fdbae70c260ca48db7c4f708

Statuses:

label
odoo-dev:master-account-return-lost
head
2fa31bac835c81fc596b231e37cb8627d30c46d7
merged
2 months ago by Upgrade, Alvaro Fuentes Suarez (afu)
odoo/odoo odoo/enterprise odoo/upgrade odoo/documentation
master #201020 #81569 #7517 #12914

[IMP] */saas~18.3: create returns from current closings

We are introducing the account_return model to guide users on return obligations with clear schedules. Removing support for multiple fiscal positions with different VAT numbers in the same country.

In this commit, cleaned up related fields, views, and records. For existing closing moves, create corresponding return records to ensure consistent behavior and visibility on the dashboard.

Fail the migration if multiple fiscal positions with different VAT numbers exist for the same country, and instruct users to contact customer support to change their settings before upgrading.

odoo/odoo#201020
odoo/enterprise#81569

task-4627315

> Warning Please follow and check the relevant boxes for your PR, otherwise the review may take longer.

For a PR that adds a new upgrade script (for the Odoo's master branch or one of the RR versions):
- [x] I've added the references to the Enterprise and/or Community PRs in the commit message, even if they are already merged.
- [x] I've added an overall description of the changes made in the Community/Enterprise branches.

For a PR that fixes an issue on an already existing upgrade script:
- [ ] I've added a clear description of the issue including information on how to reproduce it.
- [ ] I've tested the fix and included references of upgrade requests where this fix will be applicable in the form of upg-<request_number>.
- [ ] I've included references to the OPW, if applicable, in the form of opw-<ticket_number>.
- [ ] I've tested this fix on other DBs, not just the ones with the issue.

For all PRs:
- [x] My commit's title follows the right format.
- [x] My commit's body includes information about the changes.
- [x] I've added odoo/upgrade as a reviewer.
- [x] I've read and understood this list.
- [x] I will ensure all the CI checks are green.

> Note More info can be found in the wiki.