[19.0][MIG] excel_import_export: Migration to 19.0#3537
Open
pablo-cort-s73 wants to merge 47 commits intoOCA:19.0from
Open
[19.0][MIG] excel_import_export: Migration to 19.0#3537pablo-cort-s73 wants to merge 47 commits intoOCA:19.0from
pablo-cort-s73 wants to merge 47 commits intoOCA:19.0from
Conversation
* [ADD] v12 excel_import_export * Change from eval() to safe_evel() * Change variable to format to style, as fomat is a common python function :100644 100644 00ee3d9... e9e48d8... M excel_import_export/models/common.py :100644 100644 a215d29... 5b4d1fb... M excel_import_export/models/styles.py :100644 100644 ace11a3... 01e5b9f... M excel_import_export/models/xlsx_export.py :100644 100644 881b814... cadfb0f... M excel_import_export/models/xlsx_import.py :100644 100644 58689ee... 80490ce... M excel_import_export/models/xlsx_template.py :100644 100644 5c9c09a... a363ad1... M excel_import_export/views/xlsx_template_view.xml :100644 100644 475b518... 392fe6e... M excel_import_export_demo/import_export_sale_order/templates.xml :100644 100644 4af9c51... 45ee33c... M excel_import_export_demo/report_sale_order/templates.xml :100644 100644 96157ea... 17d3964... M excel_import_export/__manifest__.py :100644 100644 00ee3d9... 51c2572... M excel_import_export/models/common.py :100644 100644 a215d29... 5b4d1fb... M excel_import_export/models/styles.py :100644 100644 ace11a3... 185a333... M excel_import_export/models/xlsx_export.py :100644 100644 881b814... cadfb0f... M excel_import_export/models/xlsx_import.py :100644 100644 58689ee... 80490ce... M excel_import_export/models/xlsx_template.py :100644 100644 5c9c09a... a363ad1... M excel_import_export/views/xlsx_template_view.xml :100644 100644 475b518... 392fe6e... M excel_import_export_demo/import_export_sale_order/templates.xml :100644 100644 4af9c51... 45ee33c... M excel_import_export_demo/report_sale_order/templates.xml :100644 100644 96157ea... 933ce0d... M excel_import_export/__manifest__.py :100644 100644 00ee3d9... 51c2572... M excel_import_export/models/common.py :100644 100644 a215d29... 5b4d1fb... M excel_import_export/models/styles.py :100644 100644 ace11a3... 185a333... M excel_import_export/models/xlsx_export.py :100644 100644 881b814... cadfb0f... M excel_import_export/models/xlsx_import.py :100644 100644 58689ee... 80490ce... M excel_import_export/models/xlsx_template.py :100644 100644 5c9c09a... a363ad1... M excel_import_export/views/xlsx_template_view.xml :100644 100644 475b518... 392fe6e... M excel_import_export_demo/import_export_sale_order/templates.xml :100644 100644 4af9c51... 45ee33c... M excel_import_export_demo/report_sale_order/templates.xml :100644 100644 96157ea 3b1217e M excel_import_export/__manifest__.py :100644 100644 00ee3d9 51c2572 M excel_import_export/models/common.py :100644 100644 a215d29 5b4d1fb M excel_import_export/models/styles.py :100644 100644 ace11a3 185a333 M excel_import_export/models/xlsx_export.py :100644 100644 881b814 cadfb0f M excel_import_export/models/xlsx_import.py :100644 100644 58689ee 80490ce M excel_import_export/models/xlsx_template.py :100644 100644 5c9c09a a363ad1 M excel_import_export/views/xlsx_template_view.xml :100644 100644 475b518 392fe6e M excel_import_export_demo/import_export_sale_order/templates.xml :100644 100644 4af9c51 45ee33c M excel_import_export_demo/report_sale_order/templates.xml :100644 100644 96157ea fee958b M excel_import_export/__manifest__.py :100644 100644 00ee3d9 51c2572 M excel_import_export/models/common.py :100644 100644 a215d29 5b4d1fb M excel_import_export/models/styles.py :100644 100644 ace11a3 185a333 M excel_import_export/models/xlsx_export.py :100644 100644 881b814 cadfb0f M excel_import_export/models/xlsx_import.py :100644 100644 58689ee 80490ce M excel_import_export/models/xlsx_template.py :100644 100644 5c9c09a a363ad1 M excel_import_export/views/xlsx_template_view.xml :100644 100644 475b518 392fe6e M excel_import_export_demo/import_export_sale_order/templates.xml :100644 100644 4af9c51 45ee33c M excel_import_export_demo/report_sale_order/templates.xml :100644 100644 96157ea fee958b M excel_import_export/__manifest__.py :100644 100644 00ee3d9 51c2572 M excel_import_export/models/common.py :100644 100644 a215d29 9738a3c M excel_import_export/models/styles.py :100644 100644 ace11a3 a7d6adc M excel_import_export/models/xlsx_export.py :100644 100644 881b814 12f9ca9 M excel_import_export/models/xlsx_import.py :100644 100644 70c3779 f123d2a M excel_import_export/models/xlsx_report.py :100644 100644 58689ee 578a1fd M excel_import_export/models/xlsx_template.py :100644 100644 5c9c09a a363ad1 M excel_import_export/views/xlsx_template_view.xml :100644 100644 800ea57 1807ea7 M excel_import_export/wizard/export_xlsx_wizard.py :100644 100644 febed8d 750dc17 M excel_import_export/wizard/import_xlsx_wizard.py :100644 100644 475b518 392fe6e M excel_import_export_demo/import_export_sale_order/templates.xml :100644 100644 8e40a2d 2157489 M excel_import_export_demo/report_sale_order/report_sale_order.py :100644 100644 4af9c51 45ee33c M excel_import_export_demo/report_sale_order/templates.xml :100644 100644 96157ea fee958b M excel_import_export/__manifest__.py :100644 100644 00ee3d9 51c2572 M excel_import_export/models/common.py :100644 100644 a215d29 9738a3c M excel_import_export/models/styles.py :100644 100644 ace11a3 c7db3f9 M excel_import_export/models/xlsx_export.py :100644 100644 881b814 12f9ca9 M excel_import_export/models/xlsx_import.py :100644 100644 70c3779 f123d2a M excel_import_export/models/xlsx_report.py :100644 100644 58689ee 578a1fd M excel_import_export/models/xlsx_template.py :100644 100644 5c9c09a a363ad1 M excel_import_export/views/xlsx_template_view.xml :100644 100644 800ea57 1807ea7 M excel_import_export/wizard/export_xlsx_wizard.py :100644 100644 febed8d 750dc17 M excel_import_export/wizard/import_xlsx_wizard.py :100644 100644 475b518 392fe6e M excel_import_export_demo/import_export_sale_order/templates.xml :100644 100644 8e40a2d 2157489 M excel_import_export_demo/report_sale_order/report_sale_order.py :100644 100644 4af9c51 45ee33c M excel_import_export_demo/report_sale_order/templates.xml :100644 100644 96157ea fee958b M excel_import_export/__manifest__.py :100644 100644 00ee3d9 51c2572 M excel_import_export/models/common.py :100644 100644 a215d29 9738a3c M excel_import_export/models/styles.py :100644 100644 ace11a3 c7db3f9 M excel_import_export/models/xlsx_export.py :100644 100644 881b814 12f9ca9 M excel_import_export/models/xlsx_import.py :100644 100644 70c3779 f123d2a M excel_import_export/models/xlsx_report.py :100644 100644 58689ee e3826e0 M excel_import_export/models/xlsx_template.py :000000 100644 00000000 34aa53b A excel_import_export/tests/__init__.py :000000 100644 00000000 1861868 A excel_import_export/tests/sale_order.xlsx :000000 100644 00000000 c848148 A excel_import_export/tests/test_xlsx_template.py :100644 100644 5c9c09a a363ad1 M excel_import_export/views/xlsx_template_view.xml :100644 100644 800ea57 1807ea7 M excel_import_export/wizard/export_xlsx_wizard.py :100644 100644 febed8d 750dc17 M excel_import_export/wizard/import_xlsx_wizard.py :100644 100644 475b518 392fe6e M excel_import_export_demo/import_export_sale_order/templates.xml :100644 100644 8e40a2d 2157489 M excel_import_export_demo/report_sale_order/report_sale_order.py :100644 100644 4af9c51 45ee33c M excel_import_export_demo/report_sale_order/templates.xml :100644 100644 96157ea fee958b M excel_import_export/__manifest__.py :100644 100644 00ee3d9 51c2572 M excel_import_export/models/common.py :100644 100644 a215d29 9738a3c M excel_import_export/models/styles.py :100644 100644 ace11a3 c7db3f9 M excel_import_export/models/xlsx_export.py :100644 100644 881b814 12f9ca9 M excel_import_export/models/xlsx_import.py :100644 100644 70c3779 f123d2a M excel_import_export/models/xlsx_report.py :100644 100644 58689ee ed8c9fc M excel_import_export/models/xlsx_template.py :000000 100644 00000000 34aa53b A excel_import_export/tests/__init__.py :000000 100644 00000000 1861868 A excel_import_export/tests/sale_order.xlsx :000000 100644 00000000 69aa6ea A excel_import_export/tests/test_xlsx_template.py :100644 100644 5c9c09a a363ad1 M excel_import_export/views/xlsx_template_view.xml :100644 100644 800ea57 1807ea7 M excel_import_export/wizard/export_xlsx_wizard.py :100644 100644 febed8d 750dc17 M excel_import_export/wizard/import_xlsx_wizard.py :100644 100644 475b518 392fe6e M excel_import_export_demo/import_export_sale_order/templates.xml :100644 100644 8e40a2d 2157489 M excel_import_export_demo/report_sale_order/report_sale_order.py :100644 100644 4af9c51 45ee33c M excel_import_export_demo/report_sale_order/templates.xml :100644 100644 96157ea fee958b M excel_import_export/__manifest__.py :100644 100644 00ee3d9 51c2572 M excel_import_export/models/common.py :100644 100644 a215d29 9738a3c M excel_import_export/models/styles.py :100644 100644 ace11a3 c7db3f9 M excel_import_export/models/xlsx_export.py :100644 100644 881b814 933d861 M excel_import_export/models/xlsx_import.py :100644 100644 70c3779 f123d2a M excel_import_export/models/xlsx_report.py :100644 100644 58689ee 1460473 M excel_import_export/models/xlsx_template.py :100644 100644 5c9c09a a363ad1 M excel_import_export/views/xlsx_template_view.xml :100644 100644 800ea57 1807ea7 M excel_import_export/wizard/export_xlsx_wizard.py :100644 100644 febed8d 750dc17 M excel_import_export/wizard/import_xlsx_wizard.py :100644 100644 a2d035e 9463f27 M excel_import_export_demo/__manifest__.py :100644 100644 475b518 e7f1255 M excel_import_export_demo/import_export_sale_order/templates.xml :100644 100644 8e40a2d 2157489 M excel_import_export_demo/report_sale_order/report_sale_order.py :100644 100644 4af9c51 45ee33c M excel_import_export_demo/report_sale_order/templates.xml :000000 100644 00000000 79db62f A excel_import_export_demo/tests/__init__.py :000000 100644 00000000 1861868 A excel_import_export_demo/tests/sale_order.xlsx :000000 100644 00000000 c9733b9 A excel_import_export_demo/tests/test_common.py :000000 100644 00000000 9c94376 A excel_import_export_demo/tests/test_xlsx_import_export.py :000000 100644 00000000 730605c A excel_import_export_demo/tests/test_xlsx_template.py :100644 100644 96157ea fee958b M excel_import_export/__manifest__.py :100644 100644 00ee3d9 51c2572 M excel_import_export/models/common.py :100644 100644 a215d29 9738a3c M excel_import_export/models/styles.py :100644 100644 ace11a3 c7db3f9 M excel_import_export/models/xlsx_export.py :100644 100644 881b814 933d861 M excel_import_export/models/xlsx_import.py :100644 100644 70c3779 f123d2a M excel_import_export/models/xlsx_report.py :100644 100644 58689ee 1460473 M excel_import_export/models/xlsx_template.py :100644 100644 5c9c09a a363ad1 M excel_import_export/views/xlsx_template_view.xml :100644 100644 800ea57 1807ea7 M excel_import_export/wizard/export_xlsx_wizard.py :100644 100644 febed8d 750dc17 M excel_import_export/wizard/import_xlsx_wizard.py :100644 100644 a2d035e 9463f27 M excel_import_export_demo/__manifest__.py :100644 100644 475b518 e7f1255 M excel_import_export_demo/import_export_sale_order/templates.xml :100644 100644 8e40a2d 2157489 M excel_import_export_demo/report_sale_order/report_sale_order.py :100644 100644 4af9c51 45ee33c M excel_import_export_demo/report_sale_order/templates.xml :000000 100644 00000000 79db62f A excel_import_export_demo/tests/__init__.py :000000 100644 00000000 1861868 A excel_import_export_demo/tests/sale_order.xlsx :000000 100644 00000000 bb3ea32 A excel_import_export_demo/tests/test_common.py :000000 100644 00000000 9c94376 A excel_import_export_demo/tests/test_xlsx_import_export.py :000000 100644 00000000 730605c A excel_import_export_demo/tests/test_xlsx_template.py
wrong use of dict.iteritems() for python3
Fix Import Excel wizard, cannot download template as in v12 core Odoo prevent download default binary.
Add report action feature and new examples
When mark to convert xlsx to csv, csv file name is not used
Previously export is slow on large number of rows. This fix ensure that sheet.insert_rows is called only once for all rows, instead of insert 1 row for every rows
Can't import if the import file has date time field
Currently translated at 82.5% (165 of 200 strings) Translation: server-tools-14.0/server-tools-14.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-excel_import_export/it/
Currently translated at 82.5% (165 of 200 strings) Translation: server-tools-14.0/server-tools-14.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-excel_import_export/it/
Because those dependencies are already part of Odoo's base dependencies.
Currently translated at 100.0% (200 of 200 strings) Translation: server-tools-14.0/server-tools-14.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-excel_import_export/es_AR/
migration to 15.0. Changes by pre-commit errors and warnings, changes by original Odoo code changes, JS files suggestions.
fix from PR OCA#2283 together with @luc-demeyer suggestion OCA#2283 (review)
Currently translated at 81.1% (155 of 191 strings) Translation: server-tools-16.0/server-tools-16.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export/it/
Currently translated at 81.1% (155 of 191 strings) Translation: server-tools-16.0/server-tools-16.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export/it/
Currently translated at 81.2% (156 of 192 strings) Translation: server-tools-16.0/server-tools-16.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export/it/
Currently translated at 100.0% (193 of 193 strings) Translation: server-tools-16.0/server-tools-16.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export/es/
Currently translated at 80.8% (156 of 193 strings) Translation: server-tools-16.0/server-tools-16.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export/it/
Currently translated at 100.0% (194 of 194 strings) Translation: server-tools-16.0/server-tools-16.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export/es/
Currently translated at 100.0% (194 of 194 strings) Translation: server-tools-16.0/server-tools-16.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export/it/
This commit fixes issue of finding multiple records across all companies during import when they have same record name. Previously, importing with sudo could bypass multi-company record rules.
Currently translated at 100.0% (203 of 203 strings) Translation: server-tools-16.0/server-tools-16.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export/it/
Currently translated at 100.0% (204 of 204 strings) Translation: server-tools-16.0/server-tools-16.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export/it/
…l related templates for export action Before this commit, when two templates exist for the same model, clicking "ADD EXPORT ACTION" for each template creates separate server actions for each. As a result, if multiple templates are created for the same model, numerous server actions with the label "Export Excel" will accumulate for that model. With this commit, if two templates exist for the same model and "ADD EXPORT ACTION" is clicked for each, they will now share a single server action. Users can then select templates from within the "Export Excel" wizard. Clicking "REMOVE EXPORT ACTION" on a template will remove only that template from the "Export Excel" selection. The server action itself will be deleted only when no templates use it for export.
Currently translated at 100.0% (204 of 204 strings) Translation: server-tools-16.0/server-tools-16.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export/it/
…openpyxl [REF] excel_import_export: refactor _import_record_data for better readability and maintainability
Currently translated at 100.0% (204 of 204 strings) Translation: server-tools-18.0/server-tools-18.0-excel_import_export Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-excel_import_export/it/
e2c5c0f to
c9ffbef
Compare
This file contains hidden or 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
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.
[19.0][MIG] excel_import_export: Migration to 19.0
odoo.fields.Domainclass across wizards and model searches._get_export_action_domainand_domain_template_idto useDomain.ANDfor better composability.(0, 0, vals)toCommand.create(vals)inxlsx_template.py.self._contextwithself.env.context.xlsx_import.pyto use.items().default_getinExportXLSXWizardandXLSXReportto handletemplate_domain.safe_domaininReportXLSXWizardto directly utilize theDomainclass instead ofliteral_eval.Unit Tests
test_01_compute_instructions_from_dict: Ensures string instructions are correctly parsed intoexport_idsandimport_ids.test_02_add_and_remove_export_action: Validates the lifecycle of contextual actions.test_03_easy_reporting_menu: Tests the "Easy Reporting" wizard setup.test_04_export_wizard_default_get: Verifies template selection based onactive_modelcontext.test_05_mismatch_model_exception: ChecksValidationErrortriggers when passing incorrect models to the export service.