forked from OCA/project
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MIG] project_sequence: Migration to 18.0 #1076
Merged
BT-mchechlacz
merged 26 commits into
brain-tec:18.0.project_CA_772
from
BT-mchechlacz:18.0-mig-project_sequence
Nov 25, 2024
Merged
[MIG] project_sequence: Migration to 18.0 #1076
BT-mchechlacz
merged 26 commits into
brain-tec:18.0.project_CA_772
from
BT-mchechlacz:18.0-mig-project_sequence
Nov 25, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When a project has a name, still the sequence is a very important field to be displayed. I move it below the project name. @moduon MT-1506
`hr_timesheet` creates an analytic account by default. The method it uses to create it expects a preexisting name. But since we're making name not required, we're breaking other module's expectations. To fix this problem, now the name sync is done before writing or creating records, and not after. To make sure the problem doesn't happen anymore, we keep the `NOT NULL` requirement on project names. We just do it with a manual SQL constraint. This extra protection ensures compatibility with any other modules that expect always a value on the name. Any possibly misconfigured sequence could produce sequence duplicates. I also add protection against that. In tests, the project sequence was wrongly reset to 11 only once. Turns out that it survives the test savepoint, so I now reset it before each test instead. Tests are more reliable now. Besides, I added some more. @moduon MT-1506 wip wip
These projects shouldn't display "False - Project name" in their display names. @moduon MT-1506 [UPD] Update project_sequence.pot [UPD] README.rst project_sequence 14.0.0.1.1
To change the project display name pattern, follow these steps: 1. Go to *Project > Configuration > Settings*. 2. Edit the *Project display name pattern* field. The default format is ``%(sequence_code)s - %(name)s``. You can use those same placeholders to customize the pattern. @moduon MT-1506 [UPD] Update project_sequence.pot [UPD] README.rst project_sequence 14.0.0.2.0 Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: project-14.0/project-14.0-project_sequence Translate-URL: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_sequence/
@moduon MT-2822 [UPD] Update project_sequence.pot [UPD] README.rst project_sequence 15.0.0.2.1
Translated using Weblate (Italian) Currently translated at 100.0% (9 of 9 strings) Translation: project-15.0/project-15.0-project_sequence Translate-URL: https://translation.odoo-community.org/projects/project-15-0/project-15-0-project_sequence/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: project-16.0/project-16.0-project_sequence Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_sequence/
Currently translated at 100.0% (10 of 10 strings) Translation: project-16.0/project-16.0-project_sequence Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_sequence/it/
Currently translated at 100.0% (10 of 10 strings) Translation: project-16.0/project-16.0-project_sequence Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_sequence/de/
Currently translated at 100.0% (10 of 10 strings) Translation: project-16.0/project-16.0-project_sequence Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_sequence/es/
Currently translated at 90.0% (9 of 10 strings) Translation: project-16.0/project-16.0-project_sequence Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_sequence/nl/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: project-16.0/project-16.0-project_sequence Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_sequence/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: project-17.0/project-17.0-project_sequence Translate-URL: https://translation.odoo-community.org/projects/project-17-0/project-17-0-project_sequence/
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 18.0.project_CA_772 #1076 +/- ##
======================================================
Coverage ? 99.40%
======================================================
Files ? 7
Lines ? 167
Branches ? 9
======================================================
Hits ? 166
Misses ? 0
Partials ? 1 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.