-
-
Notifications
You must be signed in to change notification settings - Fork 657
[18.0][MIG] mis_builder_cash_flow: Migration to 18.0 #1320
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
base: 18.0
Are you sure you want to change the base?
Conversation
For mis_builder to compute correctly bale we need accounts with user type include_initial_balance. We use receivable type which is the more accurate for this purpose
Currently translated at 100.0% (52 of 52 strings) Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-mis_builder_cash_flow Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-mis_builder_cash_flow/pt/
Currently translated at 100.0% (53 of 53 strings) Translation: account-financial-reporting-13.0/account-financial-reporting-13.0-mis_builder_cash_flow Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-mis_builder_cash_flow/es_AR/
Currently translated at 37.7% (20 of 53 strings) Translation: account-financial-reporting-13.0/account-financial-reporting-13.0-mis_builder_cash_flow Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-mis_builder_cash_flow/nl/
Currently translated at 81.1% (43 of 53 strings) Translation: account-financial-reporting-13.0/account-financial-reporting-13.0-mis_builder_cash_flow Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-mis_builder_cash_flow/es/
- On v13, invoices are journal entries, so we have to explicitly exclude cancelled invoices from the expression. We leave draft ones, as they are good for forecasting. - Default value for the company of the forecast line doesn't follow new specification, putting an incorrect value. - Extra improvement: avoid a non needed casting of the fixed column type.
"Target Moves" option in MIS report instance was previously ignored. Now it's taken into account, but still excluding cancelled entries.
Currently translated at 100.0% (55 of 55 strings) Translation: account-financial-reporting-13.0/account-financial-reporting-13.0-mis_builder_cash_flow Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-mis_builder_cash_flow/es_AR/
Currently translated at 100.0% (55 of 55 strings) Translation: account-financial-reporting-14.0/account-financial-reporting-14.0-mis_builder_cash_flow Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-14-0/account-financial-reporting-14-0-mis_builder_cash_flow/it/
Currently translated at 100.0% (55 of 55 strings) Translation: account-financial-reporting-15.0/account-financial-reporting-15.0-mis_builder_cash_flow Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-15-0/account-financial-reporting-15-0-mis_builder_cash_flow/es/
Co-Authored-By: Stefan Ungureanu <[email protected]>
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-mis_builder_cash_flow Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-mis_builder_cash_flow/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-mis_builder_cash_flow Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-mis_builder_cash_flow/
Currently translated at 100.0% (54 of 54 strings) Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-mis_builder_cash_flow Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-mis_builder_cash_flow/sv/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-financial-reporting-17.0/account-financial-reporting-17.0-mis_builder_cash_flow Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-17-0/account-financial-reporting-17-0-mis_builder_cash_flow/
Currently translated at 100.0% (53 of 53 strings) Translation: account-financial-reporting-17.0/account-financial-reporting-17.0-mis_builder_cash_flow Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-17-0/account-financial-reporting-17-0-mis_builder_cash_flow/es_AR/
…ead of cr As stated in https://github.com/OCA/openupgradelib/blob/master/openupgradelib/openupgrade.py#L297, the param should `env`, instead of the cursor
Error: + pip install -r test-requirements.txt -c test-constraints.txt No version 18 for https://wheelhouse.odoo-community.org/oca-simple/odoo-addon-mis-builder/ |
Previous error of no version 18 was already fixed and that worked. Changed company_id to company_ids manytomany |
Please squash all your migration commits into one. /ocabot migration mis_builder_cash_flow |
/ocabot migration mis_builder_cash_flow |
Sorry @geraldo29 you are not allowed to mark the addon to be migrated. To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons. If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the |
6900d46
to
b85467e
Compare
Squashed commits. @pedrobaeza |
b85467e
to
8e6ce0c
Compare
Thanks for the changes. Testing the module in runboat, for forecast lines, the change of company_id to company_ids is not correct: the forecast line still should be to one company. And the field has been put as readonly. What you should do is to allow to search for accounts of that company (shared or not). |
- Standard Odoo17->18 migration procedures - Replace company_id with company_ids (Many2one → Many2many) in forecast lines - Update constraint validation to check company overlap instead of exact match - Modify SQL query to handle Many2many relationship with proper JOIN - Update UI views to use many2many_tags widget for better UX - Fix test_company_constrain to properly test new validation logic - Update translations for new validation error message - Apply code formatting fixes for linting compliance - Fixes compatibility with Odoo 18's shared account model where account.account now uses company_ids instead of company_id
98e88a2
to
76f461a
Compare
@@ -84,7 +84,7 @@ def init(self): | |||
WHERE aml.parent_state != 'cancel' | |||
UNION ALL | |||
SELECT | |||
fl.id as id, | |||
fl.id + 1000000 as id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need this? If there's a conflict of ids, you are only delaying 100k records the conflict, not solving it.
@geraldo29 are you going to continue this migration? Please answer remaining questions. |
Migration from 17.0 to 18.0
Issue: #1230
Followed technical method explained in https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-18.0.
Changes:
1)Removed migration folder
2)Changed 17 to 18 version in a few places
3)Changed tree to list in a few places.
4)Added test-requirements.txt