From ac69e63e2c5f68658985fbcd79be6ad0a5619b37 Mon Sep 17 00:00:00 2001 From: Emanuel Cino Date: Thu, 8 Feb 2024 15:18:09 +0100 Subject: [PATCH] FIX pre-commit and build status images --- .coveragerc | 17 - .eslintrc.yml | 1 + .github/workflows/lint.yml | 18 - .github/workflows/pre-commit.yml | 45 + .oca_hooks.cfg | 2 + .pre-commit-config.yaml | 124 +- .pre-commit-hooks.yaml | 41 - .prettierrc.yml | 8 - .pylintrc | 2 +- .pylintrc-mandatory | 2 +- .ruff.toml | 4 +- .sonarcloud.properties | 2 +- README.md | 117 +- account_reconcile_compassion/README.rst | 54 +- account_reconcile_compassion/__manifest__.py | 2 +- .../readme/CONFIGURE.md | 4 + .../readme/CONFIGURE.rst | 3 - .../readme/CONTRIBUTORS.md | 1 + .../readme/CONTRIBUTORS.rst | 1 - .../readme/DESCRIPTION.md | 12 + .../readme/DESCRIPTION.rst | 6 - account_reconcile_compassion/readme/USAGE.md | 3 + account_reconcile_compassion/readme/USAGE.rst | 3 - .../static/description/index.html | 1040 ++++++-------- .../src/js/account_move_reconciliation.js | 84 +- .../static/src/js/relational_fields.js | 4 +- .../src/xml/account_move_reconciliation.xml | 50 +- .../views/account_invoice_view.xml | 18 +- .../views/account_journal.xml | 6 +- .../views/account_reconcile_compassion.xml | 23 +- .../views/change_attribution_wizard_view.xml | 39 +- .../views/reconcile_fund_wizard_view.xml | 29 +- .../views/res_config_view.xml | 22 +- .../views/statement_operation_view.xml | 15 +- .../views/statement_view.xml | 25 +- .../view_account_reconcile_compassion.xml | 12 +- .../views/view_bank_statement_form.xml | 15 +- advanced_translation/README.rst | 69 +- advanced_translation/__manifest__.py | 4 +- .../migrations/14.0.1.0.0/pre-migrate.py | 19 +- advanced_translation/readme/CONTRIBUTORS.md | 1 + advanced_translation/readme/CONTRIBUTORS.rst | 1 - .../{DESCRIPTION.rst => DESCRIPTION.md} | 4 +- .../readme/{INSTALL.rst => INSTALL.md} | 0 advanced_translation/readme/USAGE.md | 19 + advanced_translation/readme/USAGE.rst | 12 - .../static/description/index.html | 446 ++++++ .../views/advanced_translation_view.xml | 42 +- child_compassion/README.rst | 94 +- child_compassion/__manifest__.py | 4 +- child_compassion/data/compassion_mapping.xml | 32 +- .../data/demand_planning_cron.xml | 12 +- child_compassion/data/global_partner.xml | 36 +- child_compassion/data/gmc_action.xml | 319 +++-- child_compassion/data/queue_job.xml | 16 +- .../data/validity_checks_cron.xml | 28 +- .../migrations/14.0.1.0.0/pre-migrate.py | 78 +- child_compassion/readme/CONFIGURE.md | 28 + child_compassion/readme/CONFIGURE.rst | 25 - child_compassion/readme/CONTRIBUTORS.md | 4 + child_compassion/readme/CONTRIBUTORS.rst | 4 - child_compassion/readme/DESCRIPTION.md | 9 + child_compassion/readme/DESCRIPTION.rst | 8 - child_compassion/readme/USAGE.md | 1 + child_compassion/readme/USAGE.rst | 0 child_compassion/report/childpack.xml | 113 +- child_compassion/report/external_layout.xml | 15 +- child_compassion/security/ir.model.access.csv | 1 - .../security/sponsorship_groups.xml | 35 +- .../static/description/index.html | 471 +++++++ .../views/availability_settings_view.xml | 102 +- .../views/child_compassion_view.xml | 615 +++++---- child_compassion/views/child_holds_view.xml | 171 ++- .../views/child_or_fcp_property_view.xml | 50 +- .../views/child_pictures_view.xml | 20 +- .../views/compassion_reservation_view.xml | 161 ++- .../views/compassion_settings_view.xml | 30 +- child_compassion/views/demand_planning.xml | 76 +- child_compassion/views/fcp_covid_status.xml | 12 +- .../field_office_disaster_alert_view.xml | 257 ++-- .../views/field_office_learning_view.xml | 20 +- child_compassion/views/field_office_view.xml | 99 +- .../views/global_childpool_view.xml | 426 ++++-- child_compassion/views/gmc_message_view.xml | 14 +- .../views/notification_settings_view.xml | 18 +- .../views/print_childpack_view.xml | 21 +- .../views/project_compassion_view.xml | 487 ++++--- .../views/res_lang_compassion_view.xml | 33 +- child_protection/README.rst | 13 +- child_protection/__manifest__.py | 2 +- .../data/partner_action_rules.xml | 38 +- child_protection/readme/DESCRIPTION.md | 3 + child_protection/readme/DESCRIPTION.rst | 2 - .../security/criminal_record_groups.xml | 8 +- .../static/description/index.html | 955 ++++++------- .../views/partner_compassion_view.xml | 26 +- crm_compassion/README.rst | 125 +- crm_compassion/__manifest__.py | 2 +- crm_compassion/data/base_automation.xml | 26 +- crm_compassion/data/calendar_event_type.xml | 2 +- crm_compassion/data/demand_planning.xml | 4 +- .../migrations/14.0.1.0.0/post-migration.py | 3 +- crm_compassion/models/event_compassion.py | 8 +- crm_compassion/models/mail_activity.py | 1 + crm_compassion/readme/CONTRIBUTORS.md | 1 + crm_compassion/readme/CONTRIBUTORS.rst | 1 - crm_compassion/readme/DESCRIPTION.md | 66 + crm_compassion/readme/DESCRIPTION.rst | 60 - crm_compassion/readme/ROADMAP.md | 2 + crm_compassion/readme/ROADMAP.rst | 1 - crm_compassion/readme/{USAGE.rst => USAGE.md} | 2 +- .../security/crm_compassion_security.xml | 12 +- crm_compassion/static/description/index.html | 1201 +++++++---------- crm_compassion/static/src/js/kanban_record.js | 1 + .../static/src/scss/kanban_colors.scss | 7 +- crm_compassion/static/src/xml/assets.xml | 17 +- .../static/src/xml/kanban_colors.xml | 251 +++- crm_compassion/views/account_invoice_line.xml | 92 +- crm_compassion/views/calendar_event_view.xml | 6 +- crm_compassion/views/calendar_view.xml | 6 +- crm_compassion/views/contract_origin_view.xml | 36 +- crm_compassion/views/crm_lead_view.xml | 70 +- crm_compassion/views/demand_planning.xml | 50 +- .../views/demand_planning_settings.xml | 59 +- .../views/demand_weekly_revision.xml | 65 +- .../views/event_compassion_view.xml | 277 +++- crm_compassion/views/field_view.xml | 48 +- .../views/global_childpool_view.xml | 48 +- crm_compassion/views/hold_view.xml | 75 +- .../views/interaction_resume_view.xml | 192 ++- .../partner_log_interaction_wizard_view.xml | 21 +- ...tner_log_other_interaction_wizard_view.xml | 44 +- crm_compassion/views/res_partner_view.xml | 59 +- crm_compassion/views/sponsorship_view.xml | 30 +- crm_request/README.rst | 68 +- crm_request/__manifest__.py | 4 +- crm_request/data/crm_request_data.xml | 6 +- crm_request/data/ir_cron.xml | 10 +- crm_request/data/request_email_template.xml | 39 +- crm_request/data/request_sequence.xml | 2 +- crm_request/readme/CONFIGURE.md | 11 + crm_request/readme/CONFIGURE.rst | 6 - crm_request/readme/CONTRIBUTORS.md | 4 + crm_request/readme/CONTRIBUTORS.rst | 4 - crm_request/readme/DESCRIPTION.md | 16 + crm_request/readme/DESCRIPTION.rst | 11 - crm_request/readme/ROADMAP.md | 1 + crm_request/readme/ROADMAP.rst | 1 - crm_request/readme/{USAGE.rst => USAGE.md} | 2 +- crm_request/static/description/index.html | 1133 ++++++---------- .../views/holiday_automated_response_view.xml | 53 +- crm_request/views/request.xml | 218 ++- crm_request/views/request_category.xml | 13 +- crm_request/views/res_users_view.xml | 6 +- gift_compassion/README.rst | 34 - gift_compassion/__manifest__.py | 2 +- .../data/gift_compassion_mapping.xml | 2 +- gift_compassion/data/gift_thresholds.xml | 10 +- gift_compassion/data/gmc_action.xml | 26 +- gift_compassion/data/process_gift_cron.xml | 4 +- gift_compassion/i18n/fr_CH.po | 10 - gift_compassion/models/contracts.py | 1 + .../views/collect_gifts_wizard_view.xml | 16 +- gift_compassion/views/contracts_view.xml | 20 +- gift_compassion/views/gift_view.xml | 319 +++-- gift_compassion/views/settings_view.xml | 132 +- intervention_compassion/README.rst | 47 - intervention_compassion/__manifest__.py | 2 +- .../data/compassion_mapping.xml | 22 +- intervention_compassion/data/gmc_action.xml | 210 ++- .../data/install_category_rel.xml | 5 +- .../data/intervention_action_rules.xml | 69 +- .../models/intervention_sub_category.py | 7 +- .../security/intervention_groups.xml | 16 +- .../views/compassion_intervention_view.xml | 543 +++++--- .../views/global_intervention_view.xml | 130 +- .../views/intervention_search_view.xml | 142 +- .../views/project_view.xml | 22 +- label/README.rst | 29 +- label/__manifest__.py | 2 +- label/data/report_paperformat.xml | 16 +- label/readme/CONTRIBUTORS.md | 2 + label/readme/CONTRIBUTORS.rst | 2 - label/readme/DESCRIPTION.md | 3 + label/readme/DESCRIPTION.rst | 2 - label/readme/INSTALL.md | 1 + label/readme/INSTALL.rst | 0 label/readme/USAGE.md | 1 + label/readme/USAGE.rst | 0 label/reports/dynamic_label.xml | 6 +- label/reports/one_label.xml | 28 +- label/static/description/index.html | 993 ++++++-------- message_center_compassion/README.rst | 83 +- message_center_compassion/__manifest__.py | 6 +- .../data/query_operators.xml | 8 +- message_center_compassion/data/queue_job.xml | 6 +- message_center_compassion/demo/res_users.xml | 13 +- .../models/gmc_message.py | 5 +- message_center_compassion/readme/CONFIGURE.md | 17 + .../readme/CONFIGURE.rst | 16 - .../readme/CONTRIBUTORS.md | 4 + .../readme/CONTRIBUTORS.rst | 4 - .../readme/DESCRIPTION.md | 6 + .../readme/DESCRIPTION.rst | 5 - .../readme/{USAGE.rst => USAGE.md} | 2 +- .../security/gmc_groups.xml | 22 +- .../static/description/index.html | 450 ++++++ .../views/advanced_query_view.xml | 37 +- .../views/compassion_mapping_view.xml | 77 +- .../views/compassion_settings_view.xml | 87 +- .../views/gmc_message_view.xml | 287 ++-- .../views/import_json_mapping_view.xml | 23 +- message_center_compassion/wizards/settings.py | 4 +- mis_builder_spn_info/README.rst | 57 + mis_builder_spn_info/__manifest__.py | 14 +- mis_builder_spn_info/models/spn_info.py | 5 +- mis_builder_spn_info/readme/DESCRIPTION.md | 5 + .../static/description/index.html | 410 ++++++ .../views/res_config_settings_view.xml | 35 +- mis_builder_spn_info/views/views.xml | 10 +- onramp_simulator/README.rst | 46 +- onramp_simulator/__manifest__.py | 2 +- onramp_simulator/readme/CONTRIBUTORS.md | 2 + onramp_simulator/readme/CONTRIBUTORS.rst | 2 - .../{DESCRIPTION.rst => DESCRIPTION.md} | 0 onramp_simulator/readme/INSTALLATION.rst | 0 .../static/description/index.html | 1013 ++++++-------- .../views/onramp_simulator_view.xml | 33 +- partner_auto_match/README.rst | 45 +- partner_auto_match/__manifest__.py | 4 +- partner_auto_match/data/activity_data.xml | 4 +- partner_auto_match/readme/CONTRIBUTORS.md | 1 + partner_auto_match/readme/CONTRIBUTORS.rst | 1 - partner_auto_match/readme/DESCRIPTION.md | 2 + partner_auto_match/readme/DESCRIPTION.rst | 2 - partner_auto_match/readme/USAGE.md | 16 + partner_auto_match/readme/USAGE.rst | 10 - .../static/description/index.html | 1043 ++++++-------- partner_communication/README.rst | 34 - partner_communication/__manifest__.py | 4 +- .../data/default_communication.xml | 18 +- partner_communication/data/queue_job.xml | 25 +- partner_communication/demo/demo_data.xml | 6 +- .../models/communication_job.py | 2 +- .../report/a4_communication.xml | 12 +- .../security/communication_job_security.xml | 6 +- .../views/change_text_wizard_view.xml | 33 +- .../views/communication_config_view.xml | 108 +- .../views/communication_job_view.xml | 284 +++- .../views/download_print_wizard_view.xml | 43 +- .../generate_communication_wizard_view.xml | 78 +- .../views/ir_actions_view.xml | 30 +- .../views/ir_attachment_view.xml | 8 +- .../views/pdf_wizard_view.xml | 26 +- .../views/res_partner_view.xml | 33 +- partner_communication/views/settings_view.xml | 57 +- partner_communication_compassion/README.rst | 54 - .../__manifest__.py | 2 +- .../data/child_letter_emails.xml | 49 +- .../data/communication_config.xml | 387 ++++-- .../data/depart_communications.xml | 190 ++- .../data/lifecycle_emails.xml | 182 ++- .../data/major_revision_emails.xml | 216 ++- .../data/other_emails.xml | 160 ++- .../data/project_lifecycle_emails.xml | 177 ++- .../data/utm_data.xml | 2 +- .../report/child_picture.xml | 69 +- .../views/communication_job_view.xml | 61 +- .../views/contract_view.xml | 22 +- .../views/correspondence_view.xml | 37 +- .../views/disaster_alert_view.xml | 30 +- .../generate_communication_wizard_view.xml | 47 +- .../views/partner_compassion_view.xml | 14 +- .../views/res_country_view.xml | 8 +- .../__manifest__.py | 2 +- .../views/call_wizard_view.xml | 17 +- .../views/communication_job.xml | 41 +- .../views/crm_phone_view.xml | 6 +- partner_communication_omr/__manifest__.py | 2 +- .../views/communication_config_view.xml | 44 +- .../views/communication_job_view.xml | 41 +- partner_communication_reminder/README.rst | 69 + .../__manifest__.py | 2 +- .../data/contract_reminder.xml | 136 +- .../data/email_reminder_template.xml | 197 ++- .../readme/CONFIGURATION.rst | 4 - .../readme/CONTRIBUTORS.md | 3 + .../readme/CONTRIBUTORS.rst | 4 - .../readme/DESCRIPTION.md | 2 + .../readme/DESCRIPTION.rst | 1 - .../readme/{USAGE.rst => USAGE.md} | 0 .../static/description/index.html | 425 ++++++ partner_communication_revision/README.rst | 41 +- .../__manifest__.py | 2 +- .../data/communication_config.xml | 9 +- partner_communication_revision/data/demo.xml | 25 +- .../data/email_template.xml | 15 +- .../data/install.xml | 5 +- .../data/reminder_cron.xml | 16 +- .../readme/CONTRIBUTORS.md | 1 + .../readme/CONTRIBUTORS.rst | 1 - .../readme/DESCRIPTION.md | 2 + .../readme/DESCRIPTION.rst | 1 - .../readme/{INSTALL.rst => INSTALL.md} | 0 .../readme/ROADMAP.md | 3 + .../readme/ROADMAP.rst | 3 - .../readme/{USAGE.rst => USAGE.md} | 0 .../static/description/index.html | 1038 ++++++-------- .../views/cancel_revision_wizard_view.xml | 18 +- .../views/communication_config_view.xml | 130 +- .../views/communication_keyword_view.xml | 36 +- .../communication_revision_history_view.xml | 12 +- .../views/communication_revision_view.xml | 217 ++- .../views/new_proposition_wizard_view.xml | 9 +- .../views/partner_communication_revision.xml | 11 +- .../views/revision_preview_view.xml | 58 +- .../views/submit_revision_wizard_view.xml | 23 +- .../views/validate_revision_wizard_view.xml | 40 +- partner_email_alias/README.rst | 36 +- partner_email_alias/__manifest__.py | 4 +- .../models/res_partner_email.py | 5 +- partner_email_alias/readme/CONTRIBUTORS.md | 1 + partner_email_alias/readme/CONTRIBUTORS.rst | 1 - .../{DESCRIPTION.rst => DESCRIPTION.md} | 3 +- partner_email_alias/readme/ROADMAP.md | 2 + partner_email_alias/readme/ROADMAP.rst | 1 - partner_email_alias/readme/USAGE.md | 7 + partner_email_alias/readme/USAGE.rst | 8 - .../static/description/index.html | 1040 ++++++-------- .../views/res_partner_view.xml | 17 +- partner_personal_info/README.rst | 13 +- partner_personal_info/__manifest__.py | 2 +- partner_personal_info/readme/DESCRIPTION.md | 3 + partner_personal_info/readme/DESCRIPTION.rst | 1 - .../static/description/index.html | 955 ++++++------- .../views/partner_compassion_view.xml | 19 +- partner_salutation/README.rst | 27 +- partner_salutation/__manifest__.py | 2 +- partner_salutation/readme/CONTRIBUTORS.md | 1 + partner_salutation/readme/CONTRIBUTORS.rst | 1 - .../{DESCRIPTION.rst => DESCRIPTION.md} | 3 +- partner_salutation/readme/USAGE.md | 4 + partner_salutation/readme/USAGE.rst | 3 - .../static/description/index.html | 1003 ++++++-------- .../views/res_partner_title_view.xml | 12 +- partner_search_fuzzy/README.rst | 23 +- partner_search_fuzzy/__manifest__.py | 4 +- .../readme/{CONFIGURE.rst => CONFIGURE.md} | 0 partner_search_fuzzy/readme/CONTRIBUTORS.md | 1 + partner_search_fuzzy/readme/CONTRIBUTORS.rst | 1 - partner_search_fuzzy/readme/DESCRIPTION.md | 2 + partner_search_fuzzy/readme/DESCRIPTION.rst | 2 - .../readme/{INSTALL.rst => INSTALL.md} | 0 .../readme/{USAGE.rst => USAGE.md} | 0 .../static/description/index.html | 1021 ++++++-------- .../views/res_partner_view.xml | 9 +- partner_segmentation/README.rst | 24 +- partner_segmentation/__manifest__.py | 2 +- .../data/partner_segmentation_data.xml | 402 ++++-- .../data/partner_segmentation_survey.xml | 208 +-- partner_segmentation/readme/CONTRIBUTORS.md | 2 + partner_segmentation/readme/CONTRIBUTORS.rst | 2 - partner_segmentation/readme/DESCRIPTION.md | 9 + partner_segmentation/readme/DESCRIPTION.rst | 9 - .../static/description/index.html | 995 ++++++-------- .../src/html/thank_you_quote_template.html | 10 +- .../templates/survey_templates.xml | 10 +- .../views/partner_compassion_view.xml | 37 +- .../partner_segmentation_affinity_view.xml | 31 +- .../views/partner_segmentation_view.xml | 66 +- partner_segmentation/views/survey_view.xml | 31 +- requirements.txt | 6 +- rest_json_api/README.rst | 32 - rest_json_api/__manifest__.py | 2 +- rest_json_api/http.py | 3 +- sbc_compassion/README.rst | 69 +- sbc_compassion/__manifest__.py | 2 +- sbc_compassion/data/child_layouts.xml | 57 +- .../data/correspondence_mappings.xml | 4 +- sbc_compassion/data/correspondence_type.xml | 5 +- sbc_compassion/data/gmc_action.xml | 24 +- sbc_compassion/data/queue_job.xml | 12 +- .../demo/correspondence_template.xml | 76 +- .../models/import_letters_history.py | 1 + sbc_compassion/readme/CONTRIBUTORS.md | 4 + sbc_compassion/readme/CONTRIBUTORS.rst | 4 - .../{DESCRIPTION.rst => DESCRIPTION.md} | 0 sbc_compassion/readme/HISTORY.md | 5 + sbc_compassion/readme/HISTORY.rst | 6 - sbc_compassion/readme/INSTALL.md | 7 + sbc_compassion/readme/INSTALL.rst | 7 - sbc_compassion/readme/USAGE.md | 1 + sbc_compassion/readme/USAGE.rst | 0 sbc_compassion/static/description/index.html | 455 +++++++ sbc_compassion/tools/read_barcode.py | 3 - sbc_compassion/views/config_view.xml | 46 +- .../views/contracts_report_view.xml | 11 +- sbc_compassion/views/contracts_view.xml | 40 +- .../correspondence_s2b_generator_view.xml | 125 +- .../correspondence_template_page_view.xml | 18 +- .../views/correspondence_template_view.xml | 69 +- sbc_compassion/views/correspondence_view.xml | 309 +++-- .../views/download_letters_view.xml | 15 +- .../views/get_letter_image_wizard_view.xml | 30 +- .../views/import_letters_history_view.xml | 135 +- sbc_compassion/views/import_review_view.xml | 68 +- .../views/last_writing_report_view.xml | 72 +- .../views/partner_compassion_view.xml | 27 +- setup/.setuptools-odoo-make-default-ignore | 2 + setup/README | 2 + .../odoo/addons/account_reconcile_compassion | 1 + setup/account_reconcile_compassion/setup.py | 6 + .../odoo/addons/advanced_translation | 1 + setup/advanced_translation/setup.py | 6 + .../odoo/addons/child_compassion | 1 + setup/child_compassion/setup.py | 6 + .../odoo/addons/child_protection | 1 + setup/child_protection/setup.py | 6 + .../crm_compassion/odoo/addons/crm_compassion | 1 + setup/crm_compassion/setup.py | 6 + setup/crm_request/odoo/addons/crm_request | 1 + setup/crm_request/setup.py | 6 + .../odoo/addons/gift_compassion | 1 + setup/gift_compassion/setup.py | 6 + .../odoo/addons/intervention_compassion | 1 + setup/intervention_compassion/setup.py | 6 + setup/label/odoo/addons/label | 1 + setup/label/setup.py | 6 + .../odoo/addons/message_center_compassion | 1 + setup/message_center_compassion/setup.py | 6 + .../odoo/addons/mis_builder_spn_info | 1 + setup/mis_builder_spn_info/setup.py | 6 + .../odoo/addons/onramp_simulator | 1 + setup/onramp_simulator/setup.py | 6 + .../odoo/addons/partner_auto_match | 1 + setup/partner_auto_match/setup.py | 6 + .../odoo/addons/partner_communication | 1 + setup/partner_communication/setup.py | 6 + .../addons/partner_communication_compassion | 1 + .../partner_communication_compassion/setup.py | 6 + .../addons/partner_communication_crm_phone | 1 + .../partner_communication_crm_phone/setup.py | 6 + .../odoo/addons/partner_communication_omr | 1 + setup/partner_communication_omr/setup.py | 6 + .../addons/partner_communication_reminder | 1 + setup/partner_communication_reminder/setup.py | 6 + .../addons/partner_communication_revision | 1 + setup/partner_communication_revision/setup.py | 6 + .../odoo/addons/partner_email_alias | 1 + setup/partner_email_alias/setup.py | 6 + .../odoo/addons/partner_personal_info | 1 + setup/partner_personal_info/setup.py | 6 + .../odoo/addons/partner_salutation | 1 + setup/partner_salutation/setup.py | 6 + .../odoo/addons/partner_search_fuzzy | 1 + setup/partner_search_fuzzy/setup.py | 6 + .../odoo/addons/partner_segmentation | 1 + setup/partner_segmentation/setup.py | 6 + setup/rest_json_api/odoo/addons/rest_json_api | 1 + setup/rest_json_api/setup.py | 6 + .../sbc_compassion/odoo/addons/sbc_compassion | 1 + setup/sbc_compassion/setup.py | 6 + .../odoo/addons/sbc_translation | 1 + setup/sbc_translation/setup.py | 6 + .../odoo/addons/sponsorship_compassion | 1 + setup/sponsorship_compassion/setup.py | 6 + .../odoo/addons/sponsorship_reporting | 1 + setup/sponsorship_reporting/setup.py | 6 + .../odoo/addons/sponsorship_sub_management | 1 + setup/sponsorship_sub_management/setup.py | 6 + .../odoo/addons/thankyou_letters | 1 + setup/thankyou_letters/setup.py | 6 + .../odoo/addons/wordpress_configuration | 1 + setup/wordpress_configuration/setup.py | 6 + sponsorship_compassion/README.rst | 66 +- sponsorship_compassion/__manifest__.py | 4 +- .../data/compassion_mapping.xml | 15 +- sponsorship_compassion/data/end_reasons.xml | 20 +- sponsorship_compassion/data/gmc_action.xml | 79 +- .../data/partner_category_data.xml | 2 +- sponsorship_compassion/data/queue_job.xml | 13 +- .../data/res_partner_sequence.xml | 6 +- .../data/sponsorship_product.xml | 8 +- sponsorship_compassion/data/utm_data.xml | 2 +- sponsorship_compassion/demo/demo_data.xml | 4 +- .../migrations/14.0.1.1.7/pre-migration.py | 33 +- .../migrations/14.0.1.2.1/pre-migration.py | 5 +- sponsorship_compassion/models/contracts.py | 13 +- sponsorship_compassion/readme/CONFIGURE.md | 8 + sponsorship_compassion/readme/CONFIGURE.rst | 8 - sponsorship_compassion/readme/CONTRIBUTORS.md | 3 + .../readme/CONTRIBUTORS.rst | 3 - sponsorship_compassion/readme/DESCRIPTION.md | 3 + sponsorship_compassion/readme/DESCRIPTION.rst | 2 - sponsorship_compassion/readme/ROADMAP.md | 2 + sponsorship_compassion/readme/ROADMAP.rst | 2 - sponsorship_compassion/readme/USAGE.md | 3 + sponsorship_compassion/readme/USAGE.rst | 3 - sponsorship_compassion/security/security.xml | 6 +- .../static/description/index.html | 447 ++++++ .../account_invoice_split_wizard_view.xml | 2 +- .../views/activate_contract_view.xml | 14 +- sponsorship_compassion/views/child_view.xml | 19 +- .../views/contract_group_view.xml | 20 +- .../views/contract_origin_view.xml | 81 +- .../views/contracts_report_view.xml | 36 +- .../views/download_child_pictures_view.xml | 27 +- .../views/end_contract_wizard_view.xml | 10 +- .../views/generate_gift_view.xml | 25 +- .../views/gmc_message_view.xml | 28 +- .../views/invoice_line_view.xml | 148 +- .../views/product_views.xml | 2 +- sponsorship_compassion/views/project_view.xml | 23 +- .../views/res_config_settings_view.xml | 44 +- .../views/res_partner_view.xml | 314 +++-- .../views/sponsorship_contract_view.xml | 237 ++-- .../views/utm_medium_view.xml | 6 +- .../wizards/generate_gift_wizard.py | 1 - .../wizards/res_config_settings.py | 2 +- sponsorship_reporting/README.rst | 48 +- sponsorship_reporting/__manifest__.py | 2 +- sponsorship_reporting/readme/CONTRIBUTORS.md | 2 + sponsorship_reporting/readme/CONTRIBUTORS.rst | 2 - sponsorship_reporting/readme/DESCRIPTION.md | 3 + sponsorship_reporting/readme/DESCRIPTION.rst | 2 - .../static/description/index.html | 990 ++++++-------- .../views/account_invoice_report_view.xml | 55 +- .../views/end_sponsorships_report_view.xml | 157 ++- .../views/new_sponsorships_report_view.xml | 123 +- .../sponsorships_evolution_reports_view.xml | 130 +- sponsorship_sub_management/README.rst | 44 +- sponsorship_sub_management/__manifest__.py | 2 +- .../data/sponsorship_action_rules.xml | 11 +- .../readme/CONTRIBUTORS.md | 3 + .../readme/CONTRIBUTORS.rst | 3 - .../{DESCRIPTION.rst => DESCRIPTION.md} | 18 +- sponsorship_sub_management/readme/ROADMAP.md | 8 + sponsorship_sub_management/readme/ROADMAP.rst | 8 - sponsorship_sub_management/readme/USAGE.md | 3 + sponsorship_sub_management/readme/USAGE.rst | 3 - .../static/description/index.html | 1090 ++++++--------- .../views/contract_view.xml | 359 +++-- .../views/end_reason_view.xml | 14 +- .../views/sds_sub_followers.xml | 13 +- .../views/settings_view.xml | 17 +- .../views/sub_sponsorship_wizard_view.xml | 44 +- thankyou_letters/README.rst | 80 +- thankyou_letters/__manifest__.py | 2 +- .../data/communication_config.xml | 22 +- thankyou_letters/data/email_template.xml | 82 +- thankyou_letters/data/queue_job.xml | 6 +- thankyou_letters/demo/demo_data.xml | 2 +- .../models/partner_communication.py | 4 +- thankyou_letters/readme/CONFIGURE.md | 28 + thankyou_letters/readme/CONFIGURE.rst | 26 - thankyou_letters/readme/CONTRIBUTORS.md | 1 + thankyou_letters/readme/CONTRIBUTORS.rst | 1 - .../{DESCRIPTION.rst => DESCRIPTION.md} | 0 thankyou_letters/readme/ROADMAP.md | 5 + thankyou_letters/readme/ROADMAP.rst | 4 - thankyou_letters/readme/USAGE.md | 1 + thankyou_letters/readme/USAGE.rst | 0 thankyou_letters/report/donation_report.xml | 38 +- .../static/description/index.html | 1086 ++++++--------- .../views/account_invoice_view.xml | 19 +- .../views/communication_job_view.xml | 141 +- .../generate_communication_wizard_view.xml | 20 +- thankyou_letters/views/product_view.xml | 16 +- thankyou_letters/views/success_story_view.xml | 104 +- .../views/thankyou_config_view.xml | 21 +- wordpress_configuration/README.rst | 54 +- wordpress_configuration/__manifest__.py | 2 +- wordpress_configuration/data/default.xml | 7 +- wordpress_configuration/readme/CONFIGURE.md | 12 + wordpress_configuration/readme/CONFIGURE.rst | 9 - .../{DESCRIPTION.rst => DESCRIPTION.md} | 3 +- wordpress_configuration/readme/USAGE.md | 4 + wordpress_configuration/readme/USAGE.rst | 6 - .../static/description/index.html | 1032 ++++++-------- .../views/wordpress_configuration.xml | 25 +- 580 files changed, 22946 insertions(+), 16991 deletions(-) delete mode 100644 .coveragerc delete mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/pre-commit.yml create mode 100644 .oca_hooks.cfg delete mode 100644 .pre-commit-hooks.yaml delete mode 100644 .prettierrc.yml create mode 100644 account_reconcile_compassion/readme/CONFIGURE.md delete mode 100644 account_reconcile_compassion/readme/CONFIGURE.rst create mode 100644 account_reconcile_compassion/readme/CONTRIBUTORS.md delete mode 100644 account_reconcile_compassion/readme/CONTRIBUTORS.rst create mode 100644 account_reconcile_compassion/readme/DESCRIPTION.md delete mode 100644 account_reconcile_compassion/readme/DESCRIPTION.rst create mode 100644 account_reconcile_compassion/readme/USAGE.md delete mode 100644 account_reconcile_compassion/readme/USAGE.rst create mode 100644 advanced_translation/readme/CONTRIBUTORS.md delete mode 100644 advanced_translation/readme/CONTRIBUTORS.rst rename advanced_translation/readme/{DESCRIPTION.rst => DESCRIPTION.md} (55%) rename advanced_translation/readme/{INSTALL.rst => INSTALL.md} (100%) create mode 100644 advanced_translation/readme/USAGE.md delete mode 100644 advanced_translation/readme/USAGE.rst create mode 100644 advanced_translation/static/description/index.html create mode 100644 child_compassion/readme/CONFIGURE.md delete mode 100644 child_compassion/readme/CONFIGURE.rst create mode 100644 child_compassion/readme/CONTRIBUTORS.md delete mode 100644 child_compassion/readme/CONTRIBUTORS.rst create mode 100644 child_compassion/readme/DESCRIPTION.md delete mode 100644 child_compassion/readme/DESCRIPTION.rst create mode 100644 child_compassion/readme/USAGE.md delete mode 100644 child_compassion/readme/USAGE.rst create mode 100644 child_compassion/static/description/index.html create mode 100644 child_protection/readme/DESCRIPTION.md delete mode 100644 child_protection/readme/DESCRIPTION.rst create mode 100644 crm_compassion/readme/CONTRIBUTORS.md delete mode 100644 crm_compassion/readme/CONTRIBUTORS.rst create mode 100644 crm_compassion/readme/DESCRIPTION.md delete mode 100644 crm_compassion/readme/DESCRIPTION.rst create mode 100644 crm_compassion/readme/ROADMAP.md delete mode 100644 crm_compassion/readme/ROADMAP.rst rename crm_compassion/readme/{USAGE.rst => USAGE.md} (59%) create mode 100644 crm_request/readme/CONFIGURE.md delete mode 100644 crm_request/readme/CONFIGURE.rst create mode 100644 crm_request/readme/CONTRIBUTORS.md delete mode 100644 crm_request/readme/CONTRIBUTORS.rst create mode 100644 crm_request/readme/DESCRIPTION.md delete mode 100644 crm_request/readme/DESCRIPTION.rst create mode 100644 crm_request/readme/ROADMAP.md delete mode 100644 crm_request/readme/ROADMAP.rst rename crm_request/readme/{USAGE.rst => USAGE.md} (68%) delete mode 100644 gift_compassion/README.rst delete mode 100644 intervention_compassion/README.rst create mode 100644 label/readme/CONTRIBUTORS.md delete mode 100644 label/readme/CONTRIBUTORS.rst create mode 100644 label/readme/DESCRIPTION.md delete mode 100644 label/readme/DESCRIPTION.rst create mode 100644 label/readme/INSTALL.md delete mode 100644 label/readme/INSTALL.rst create mode 100644 label/readme/USAGE.md delete mode 100644 label/readme/USAGE.rst create mode 100644 message_center_compassion/readme/CONFIGURE.md delete mode 100644 message_center_compassion/readme/CONFIGURE.rst create mode 100644 message_center_compassion/readme/CONTRIBUTORS.md delete mode 100644 message_center_compassion/readme/CONTRIBUTORS.rst create mode 100644 message_center_compassion/readme/DESCRIPTION.md delete mode 100644 message_center_compassion/readme/DESCRIPTION.rst rename message_center_compassion/readme/{USAGE.rst => USAGE.md} (59%) create mode 100644 message_center_compassion/static/description/index.html create mode 100644 mis_builder_spn_info/README.rst create mode 100644 mis_builder_spn_info/readme/DESCRIPTION.md create mode 100644 mis_builder_spn_info/static/description/index.html create mode 100644 onramp_simulator/readme/CONTRIBUTORS.md delete mode 100644 onramp_simulator/readme/CONTRIBUTORS.rst rename onramp_simulator/readme/{DESCRIPTION.rst => DESCRIPTION.md} (100%) delete mode 100644 onramp_simulator/readme/INSTALLATION.rst create mode 100644 partner_auto_match/readme/CONTRIBUTORS.md delete mode 100644 partner_auto_match/readme/CONTRIBUTORS.rst create mode 100644 partner_auto_match/readme/DESCRIPTION.md delete mode 100644 partner_auto_match/readme/DESCRIPTION.rst create mode 100644 partner_auto_match/readme/USAGE.md delete mode 100644 partner_auto_match/readme/USAGE.rst delete mode 100644 partner_communication/README.rst delete mode 100644 partner_communication_compassion/README.rst create mode 100644 partner_communication_reminder/README.rst delete mode 100644 partner_communication_reminder/readme/CONFIGURATION.rst create mode 100644 partner_communication_reminder/readme/CONTRIBUTORS.md delete mode 100644 partner_communication_reminder/readme/CONTRIBUTORS.rst create mode 100644 partner_communication_reminder/readme/DESCRIPTION.md delete mode 100644 partner_communication_reminder/readme/DESCRIPTION.rst rename partner_communication_reminder/readme/{USAGE.rst => USAGE.md} (100%) create mode 100644 partner_communication_reminder/static/description/index.html create mode 100644 partner_communication_revision/readme/CONTRIBUTORS.md delete mode 100644 partner_communication_revision/readme/CONTRIBUTORS.rst create mode 100644 partner_communication_revision/readme/DESCRIPTION.md delete mode 100644 partner_communication_revision/readme/DESCRIPTION.rst rename partner_communication_revision/readme/{INSTALL.rst => INSTALL.md} (100%) create mode 100644 partner_communication_revision/readme/ROADMAP.md delete mode 100644 partner_communication_revision/readme/ROADMAP.rst rename partner_communication_revision/readme/{USAGE.rst => USAGE.md} (100%) create mode 100644 partner_email_alias/readme/CONTRIBUTORS.md delete mode 100644 partner_email_alias/readme/CONTRIBUTORS.rst rename partner_email_alias/readme/{DESCRIPTION.rst => DESCRIPTION.md} (77%) create mode 100644 partner_email_alias/readme/ROADMAP.md delete mode 100644 partner_email_alias/readme/ROADMAP.rst create mode 100644 partner_email_alias/readme/USAGE.md delete mode 100644 partner_email_alias/readme/USAGE.rst create mode 100644 partner_personal_info/readme/DESCRIPTION.md delete mode 100644 partner_personal_info/readme/DESCRIPTION.rst create mode 100644 partner_salutation/readme/CONTRIBUTORS.md delete mode 100644 partner_salutation/readme/CONTRIBUTORS.rst rename partner_salutation/readme/{DESCRIPTION.rst => DESCRIPTION.md} (75%) create mode 100644 partner_salutation/readme/USAGE.md delete mode 100644 partner_salutation/readme/USAGE.rst rename partner_search_fuzzy/readme/{CONFIGURE.rst => CONFIGURE.md} (100%) create mode 100644 partner_search_fuzzy/readme/CONTRIBUTORS.md delete mode 100644 partner_search_fuzzy/readme/CONTRIBUTORS.rst create mode 100644 partner_search_fuzzy/readme/DESCRIPTION.md delete mode 100644 partner_search_fuzzy/readme/DESCRIPTION.rst rename partner_search_fuzzy/readme/{INSTALL.rst => INSTALL.md} (100%) rename partner_search_fuzzy/readme/{USAGE.rst => USAGE.md} (100%) create mode 100644 partner_segmentation/readme/CONTRIBUTORS.md delete mode 100644 partner_segmentation/readme/CONTRIBUTORS.rst create mode 100644 partner_segmentation/readme/DESCRIPTION.md delete mode 100644 partner_segmentation/readme/DESCRIPTION.rst delete mode 100644 rest_json_api/README.rst create mode 100644 sbc_compassion/readme/CONTRIBUTORS.md delete mode 100644 sbc_compassion/readme/CONTRIBUTORS.rst rename sbc_compassion/readme/{DESCRIPTION.rst => DESCRIPTION.md} (100%) create mode 100644 sbc_compassion/readme/HISTORY.md delete mode 100644 sbc_compassion/readme/HISTORY.rst create mode 100644 sbc_compassion/readme/INSTALL.md delete mode 100644 sbc_compassion/readme/INSTALL.rst create mode 100644 sbc_compassion/readme/USAGE.md delete mode 100644 sbc_compassion/readme/USAGE.rst create mode 100644 sbc_compassion/static/description/index.html create mode 100644 setup/.setuptools-odoo-make-default-ignore create mode 100644 setup/README create mode 120000 setup/account_reconcile_compassion/odoo/addons/account_reconcile_compassion create mode 100644 setup/account_reconcile_compassion/setup.py create mode 120000 setup/advanced_translation/odoo/addons/advanced_translation create mode 100644 setup/advanced_translation/setup.py create mode 120000 setup/child_compassion/odoo/addons/child_compassion create mode 100644 setup/child_compassion/setup.py create mode 120000 setup/child_protection/odoo/addons/child_protection create mode 100644 setup/child_protection/setup.py create mode 120000 setup/crm_compassion/odoo/addons/crm_compassion create mode 100644 setup/crm_compassion/setup.py create mode 120000 setup/crm_request/odoo/addons/crm_request create mode 100644 setup/crm_request/setup.py create mode 120000 setup/gift_compassion/odoo/addons/gift_compassion create mode 100644 setup/gift_compassion/setup.py create mode 120000 setup/intervention_compassion/odoo/addons/intervention_compassion create mode 100644 setup/intervention_compassion/setup.py create mode 120000 setup/label/odoo/addons/label create mode 100644 setup/label/setup.py create mode 120000 setup/message_center_compassion/odoo/addons/message_center_compassion create mode 100644 setup/message_center_compassion/setup.py create mode 120000 setup/mis_builder_spn_info/odoo/addons/mis_builder_spn_info create mode 100644 setup/mis_builder_spn_info/setup.py create mode 120000 setup/onramp_simulator/odoo/addons/onramp_simulator create mode 100644 setup/onramp_simulator/setup.py create mode 120000 setup/partner_auto_match/odoo/addons/partner_auto_match create mode 100644 setup/partner_auto_match/setup.py create mode 120000 setup/partner_communication/odoo/addons/partner_communication create mode 100644 setup/partner_communication/setup.py create mode 120000 setup/partner_communication_compassion/odoo/addons/partner_communication_compassion create mode 100644 setup/partner_communication_compassion/setup.py create mode 120000 setup/partner_communication_crm_phone/odoo/addons/partner_communication_crm_phone create mode 100644 setup/partner_communication_crm_phone/setup.py create mode 120000 setup/partner_communication_omr/odoo/addons/partner_communication_omr create mode 100644 setup/partner_communication_omr/setup.py create mode 120000 setup/partner_communication_reminder/odoo/addons/partner_communication_reminder create mode 100644 setup/partner_communication_reminder/setup.py create mode 120000 setup/partner_communication_revision/odoo/addons/partner_communication_revision create mode 100644 setup/partner_communication_revision/setup.py create mode 120000 setup/partner_email_alias/odoo/addons/partner_email_alias create mode 100644 setup/partner_email_alias/setup.py create mode 120000 setup/partner_personal_info/odoo/addons/partner_personal_info create mode 100644 setup/partner_personal_info/setup.py create mode 120000 setup/partner_salutation/odoo/addons/partner_salutation create mode 100644 setup/partner_salutation/setup.py create mode 120000 setup/partner_search_fuzzy/odoo/addons/partner_search_fuzzy create mode 100644 setup/partner_search_fuzzy/setup.py create mode 120000 setup/partner_segmentation/odoo/addons/partner_segmentation create mode 100644 setup/partner_segmentation/setup.py create mode 120000 setup/rest_json_api/odoo/addons/rest_json_api create mode 100644 setup/rest_json_api/setup.py create mode 120000 setup/sbc_compassion/odoo/addons/sbc_compassion create mode 100644 setup/sbc_compassion/setup.py create mode 120000 setup/sbc_translation/odoo/addons/sbc_translation create mode 100644 setup/sbc_translation/setup.py create mode 120000 setup/sponsorship_compassion/odoo/addons/sponsorship_compassion create mode 100644 setup/sponsorship_compassion/setup.py create mode 120000 setup/sponsorship_reporting/odoo/addons/sponsorship_reporting create mode 100644 setup/sponsorship_reporting/setup.py create mode 120000 setup/sponsorship_sub_management/odoo/addons/sponsorship_sub_management create mode 100644 setup/sponsorship_sub_management/setup.py create mode 120000 setup/thankyou_letters/odoo/addons/thankyou_letters create mode 100644 setup/thankyou_letters/setup.py create mode 120000 setup/wordpress_configuration/odoo/addons/wordpress_configuration create mode 100644 setup/wordpress_configuration/setup.py create mode 100644 sponsorship_compassion/readme/CONFIGURE.md delete mode 100644 sponsorship_compassion/readme/CONFIGURE.rst create mode 100644 sponsorship_compassion/readme/CONTRIBUTORS.md delete mode 100644 sponsorship_compassion/readme/CONTRIBUTORS.rst create mode 100644 sponsorship_compassion/readme/DESCRIPTION.md delete mode 100644 sponsorship_compassion/readme/DESCRIPTION.rst create mode 100644 sponsorship_compassion/readme/ROADMAP.md delete mode 100644 sponsorship_compassion/readme/ROADMAP.rst create mode 100644 sponsorship_compassion/readme/USAGE.md delete mode 100644 sponsorship_compassion/readme/USAGE.rst create mode 100644 sponsorship_compassion/static/description/index.html create mode 100644 sponsorship_reporting/readme/CONTRIBUTORS.md delete mode 100644 sponsorship_reporting/readme/CONTRIBUTORS.rst create mode 100644 sponsorship_reporting/readme/DESCRIPTION.md delete mode 100644 sponsorship_reporting/readme/DESCRIPTION.rst create mode 100644 sponsorship_sub_management/readme/CONTRIBUTORS.md delete mode 100644 sponsorship_sub_management/readme/CONTRIBUTORS.rst rename sponsorship_sub_management/readme/{DESCRIPTION.rst => DESCRIPTION.md} (74%) create mode 100644 sponsorship_sub_management/readme/ROADMAP.md delete mode 100644 sponsorship_sub_management/readme/ROADMAP.rst create mode 100644 sponsorship_sub_management/readme/USAGE.md delete mode 100644 sponsorship_sub_management/readme/USAGE.rst create mode 100644 thankyou_letters/readme/CONFIGURE.md delete mode 100644 thankyou_letters/readme/CONFIGURE.rst create mode 100644 thankyou_letters/readme/CONTRIBUTORS.md delete mode 100644 thankyou_letters/readme/CONTRIBUTORS.rst rename thankyou_letters/readme/{DESCRIPTION.rst => DESCRIPTION.md} (100%) create mode 100644 thankyou_letters/readme/ROADMAP.md delete mode 100644 thankyou_letters/readme/ROADMAP.rst create mode 100644 thankyou_letters/readme/USAGE.md delete mode 100644 thankyou_letters/readme/USAGE.rst create mode 100644 wordpress_configuration/readme/CONFIGURE.md delete mode 100644 wordpress_configuration/readme/CONFIGURE.rst rename wordpress_configuration/readme/{DESCRIPTION.rst => DESCRIPTION.md} (72%) create mode 100644 wordpress_configuration/readme/USAGE.md delete mode 100644 wordpress_configuration/readme/USAGE.rst diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index d4e13d07d..000000000 --- a/.coveragerc +++ /dev/null @@ -1,17 +0,0 @@ -# Config file .coveragerc - -[report] -include = - */compassion-modules/* - -omit = - */tests/* - *__init__.py - -# Regexes for lines to exclude from consideration -exclude_lines = - # Have to re-enable the standard pragma - pragma: no cover - - # Don't complain about null context checking - if context is None: diff --git a/.eslintrc.yml b/.eslintrc.yml index 9429bc688..fed88d70d 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -22,6 +22,7 @@ globals: odoo: readonly openerp: readonly owl: readonly + luxon: readonly # Styling is handled by Prettier, so we only need to enable AST rules; # see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index e2336b859..000000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: pre-commit - -on: - pull_request: - push: - branches: [master] - release: - types: [created] - -jobs: - pre-commit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: "3.12" - - uses: pre-commit/action@v3.0.0 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 000000000..c173489f8 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,45 @@ +name: pre-commit + +on: + pull_request: + branches: + - "14.0*" + push: + branches: + - "14.0" + +jobs: + pre-commit: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: "3.11" + - name: Get python version + run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV + - uses: actions/cache@v1 + with: + path: ~/.cache/pre-commit + key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} + - name: Install pre-commit + run: pip install pre-commit + - name: Run pre-commit + run: pre-commit run --all-files --show-diff-on-failure --color=always + env: + # Consider valid a PR that changes README fragments but doesn't + # change the README.rst file itself. It's not really a problem + # because the bot will update it anyway after merge. This way, we + # lower the barrier for functional contributors that want to fix the + # readme fragments, while still letting developers get README + # auto-generated (which also helps functionals when using runboat). + # DOCS https://pre-commit.com/#temporarily-disabling-hooks + SKIP: oca-gen-addon-readme + - name: Check that all files generated by pre-commit are in git + run: | + newfiles="$(git ls-files --others --exclude-from=.gitignore)" + if [ "$newfiles" != "" ] ; then + echo "Please check-in the following files:" + echo "$newfiles" + exit 1 + fi diff --git a/.oca_hooks.cfg b/.oca_hooks.cfg new file mode 100644 index 000000000..1f3e3e426 --- /dev/null +++ b/.oca_hooks.cfg @@ -0,0 +1,2 @@ +[MESSAGES_CONTROL] +disable=xml-deprecated-data-node,xml-deprecated-tree-attribute diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 95fb195d0..b7b045f0f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,29 +1,133 @@ +exclude: | + (?x) + # NOT INSTALLABLE ADDONS + # END NOT INSTALLABLE ADDONS + # Files and folders generated by bots, to avoid loops + ^setup/|/static/description/index\.html$| + # We don't want to mess with tool-generated files + .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/| + # Maybe reactivate this when all README files include prettier ignore tags? + ^README\.md$| + # Library files can have extraneous formatting (even minimized) + /static/(src/)?lib/| + # Repos using Sphinx to generate docs don't need prettying + ^docs/_templates/.*\.html$| + # Don't bother non-technical authors with formatting issues in docs + readme/.*\.(rst|md)$| + # Ignore build and dist directories in addons + /build/|/dist/| + # You don't usually want a bot to modify your legal texts + (LICENSE.*|COPYING.*) +default_language_version: + python: python3 + node: "14.13.0" repos: + - repo: local + hooks: + # These files are most likely copier diff rejection junks; if found, + # review them manually, fix the problem (if needed) and remove them + - id: forbidden-files + name: forbidden files + entry: found forbidden files; remove them + language: fail + files: "\\.rej$" + - id: en-po-files + name: en.po files cannot exist + entry: found a en.po file + language: fail + files: '[a-zA-Z0-9_]*/i18n/en\.po$' + - repo: https://github.com/oca/maintainer-tools + rev: 9a170331575a265c092ee6b24b845ec508e8ef75 + hooks: + # update the NOT INSTALLABLE ADDONS section above + - id: oca-update-pre-commit-excluded-addons + - id: oca-fix-manifest-website + args: ["https://github.com/CompassionCH/compassion-modules"] + - id: oca-gen-addon-readme + args: + - --addons-dir=. + - --branch=14.0 + - --org-name=CompassionCH + - --repo-name=compassion-modules + - --if-source-changed + - --keep-source-digest + - --convert-fragments-to-markdown + - repo: https://github.com/OCA/odoo-pre-commit-hooks + rev: v0.0.25 + hooks: + - id: oca-checks-odoo-module + - id: oca-checks-po - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.4.1 + rev: v2.1.2 hooks: - id: prettier - # https://github.com/prettier/prettier/issues/12143 - exclude: "}$" + name: prettier (with plugin-xml) + additional_dependencies: + - "prettier@2.1.2" + - "@prettier/plugin-xml@0.12.0" + args: + - --plugin=@prettier/plugin-xml + files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$ + - repo: https://github.com/pre-commit/mirrors-eslint + rev: v7.8.1 + hooks: + - id: eslint + verbose: true + args: + - --color + - --fix - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v3.2.0 hooks: + - id: trailing-whitespace + # exclude autogenerated files + exclude: /README\.rst$|\.pot?$ + - id: end-of-file-fixer + # exclude autogenerated files + exclude: /README\.rst$|\.pot?$ + - id: debug-statements + - id: fix-encoding-pragma + args: ["--remove"] - id: check-case-conflict - id: check-docstring-first - id: check-executables-have-shebangs - id: check-merge-conflict + # exclude files where underlines are not distinguishable from merge conflicts + exclude: /README\.rst$|^docs/.*\.rst$ - id: check-symlinks - id: check-xml - - id: debug-statements - - id: end-of-file-fixer - - id: fix-encoding-pragma - args: ["--remove"] - id: mixed-line-ending args: ["--fix=lf"] - - id: trailing-whitespace + - repo: https://github.com/asottile/pyupgrade + rev: v2.7.2 + hooks: + - id: pyupgrade + args: ["--keep-percent-format"] + - repo: https://github.com/acsone/setuptools-odoo + rev: 3.1.8 + hooks: + - id: setuptools-odoo-make-default + - id: setuptools-odoo-get-requirements + args: + - --output + - requirements.txt + - --header + - "# generated from manifests external_dependencies" - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.1.3 hooks: - id: ruff - args: [--exit-non-zero-on-fix] + args: [--fix, --exit-non-zero-on-fix] - id: ruff-format + - repo: https://github.com/OCA/pylint-odoo + rev: 7.0.2 + hooks: + - id: pylint_odoo + name: pylint with optional checks + args: + - --rcfile=.pylintrc + - --exit-zero + verbose: true + - id: pylint_odoo + args: + - --rcfile=.pylintrc-mandatory diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml deleted file mode 100644 index 1a89f9ece..000000000 --- a/.pre-commit-hooks.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- id: oca-gen-addon-readme - name: Generate addons README files from fragments - always_run: true - entry: oca-gen-addon-readme - language: python - pass_filenames: false - -- id: oca-gen-addons-table - name: Generate addons table in README - always_run: true - entry: oca-gen-addons-table - language: python - pass_filenames: false - -- id: oca-gen-addon-icon - name: Generate addons icons - always_run: true - entry: oca-gen-addon-icon - language: python - pass_filenames: false - -- id: oca-update-pre-commit-excluded-addons - name: Update pre-commit excluded addons - entry: oca-update-pre-commit-excluded-addons - pass_filenames: false - language: python - always_run: true - -- id: oca-fix-manifest-website - name: Fix the manifest website key - entry: oca-fix-manifest-website - pass_filenames: false - language: python - files: (__manifest__\.py|__openerp__\.py|__terp__\.py)$ - -- id: oca-gen-external-dependencies - name: Generate requirements.txt for an addons directory - entry: oca-gen-external-dependencies - language: python - pass_filenames: false - files: (__manifest__\.py|__openerp__\.py|__terp__\.py|setup\.py|pyproject\.toml)$ diff --git a/.prettierrc.yml b/.prettierrc.yml deleted file mode 100644 index 5b6d4b361..000000000 --- a/.prettierrc.yml +++ /dev/null @@ -1,8 +0,0 @@ -# Defaults for all prettier-supported languages. -# Prettier will complete this with settings from .editorconfig file. -bracketSpacing: false -printWidth: 88 -proseWrap: always -semi: true -trailingComma: "es5" -xmlWhitespaceSensitivity: "strict" diff --git a/.pylintrc b/.pylintrc index d1f72970b..7adfd06d2 100644 --- a/.pylintrc +++ b/.pylintrc @@ -6,7 +6,7 @@ score=n [ODOOLINT] readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" -manifest_required_authors=Odoo Community Association (OCA) +manifest_required_authors=Compassion Switzerland manifest_required_keys=license manifest_deprecated_keys=description,active license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory index 3bf8ceefb..ddc691654 100644 --- a/.pylintrc-mandatory +++ b/.pylintrc-mandatory @@ -5,7 +5,7 @@ score=n [ODOOLINT] readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" -manifest_required_authors=Odoo Community Association (OCA) +manifest_required_authors=Compassion Switzerland manifest_required_keys=license manifest_deprecated_keys=description,active license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 diff --git a/.ruff.toml b/.ruff.toml index a484d01b2..f31b3125c 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -1,4 +1,4 @@ -target-version = "py38" + fix = true [lint] @@ -7,7 +7,6 @@ extend-select = [ "C90", "E501", # line too long (default 88) "I", # isort - "UP", # pyupgrade ] exclude = ["setup/*"] @@ -17,6 +16,7 @@ exclude = ["setup/*"] [per-file-ignores] "__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py "__manifest__.py" = ["B018"] # useless expression +"rest_json_api/http.py" = ["B018"] # pointless-statement [isort] section-order = ["future", "standard-library", "third-party", "odoo", "odoo-addons", "first-party", "local-folder"] diff --git a/.sonarcloud.properties b/.sonarcloud.properties index 5ea75c6e2..a3282fd7c 100644 --- a/.sonarcloud.properties +++ b/.sonarcloud.properties @@ -1,2 +1,2 @@ # Exclude files or directories -sonar.exclusions=**/__manifest__.py,**/thank_you_quote_template.html +sonar.exclusions=**/__manifest__.py,**/thank_you_quote_template.html,**/description/index.html diff --git a/README.md b/README.md index e7fc2b775..73f53ca37 100644 --- a/README.md +++ b/README.md @@ -1,45 +1,72 @@ -# Compassion modules - -This project holds Odoo modules needed for any Compassion office in order to manage -sponsorships of its country. It connects Odoo with GMC webservices. - -[//]: # "addons" - -## Available addons - -| addon | version | maintainers | summary | -| --------------------------------------------------------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | -| [account_reconcile_compassion](account_reconcile_compassion/) | 14.0.1.1.0 | | Bank Statement Reconcile for Compassion CH | -| [advanced_translation](advanced_translation/) | 14.0.1.0.0 | | Advanced Translation | -| [child_compassion](child_compassion/) | 14.0.1.0.0 | | Compassion Children | -| [child_protection](child_protection/) | 14.0.1.0.0 | | Add fields for tracking acceptance of child protection charter | -| [crm_compassion](crm_compassion/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Compassion Events and Opportunities | -| [crm_request](crm_request/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Enables Customer Support Inbox | -| [gift_compassion](gift_compassion/) | 14.0.1.0.2 | | Compassion Sponsorship Gifts | -| [intervention_compassion](intervention_compassion/) | 14.0.1.0.0 | | Compassion Interventions | -| [label](label/) | 14.0.1.0.0 | | Mass Label Reporting | -| [message_center_compassion](message_center_compassion/) | 14.0.1.0.2 | | Compassion CH Message Center | -| [mis_builder_spn_info](mis_builder_spn_info/) | 0.1 | | Info on aquisition and departure to report on spn evolution | -| [onramp_simulator](onramp_simulator/) | 14.0.1.0.0 | | Send messages to Compassion Onramps | -| [partner_auto_match](partner_auto_match/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Find existing contact given any partner data. | -| [partner_communication](partner_communication/) | 14.0.1.0.0 | | Partner Communication | -| [partner_communication_compassion](partner_communication_compassion/) | 14.0.1.1.0 | | Compassion Partner Communications | -| [partner_communication_crm_phone](partner_communication_crm_phone/) | 14.0.1.0.0 | | Partner Communication CRM Phone | -| [partner_communication_omr](partner_communication_omr/) | 14.0.1.0.0 | | Partner Communication OMR | -| [partner_communication_reminder](partner_communication_reminder/) | 14.0.1.0.0 | | Reminder features | -| [partner_communication_revision](partner_communication_revision/) | 14.0.1.0.0 | | Partner Communication Revisions | -| [partner_email_alias](partner_email_alias/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Add many e-mail addresses on a contact | -| [partner_personal_info](partner_personal_info/) | 14.0.1.0.0 | | Adds a tab on partners for showing personal information | -| [partner_salutation](partner_salutation/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Adds a salutation field on partners | -| [partner_search_fuzzy](partner_search_fuzzy/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Add fuzzy search on partners | -| [partner_segmentation](partner_segmentation/) | 14.0.1.0.0 | | Segment Sponsors | -| [rest_json_api](rest_json_api/) | 14.0.1.0.0 | | REST Json API | -| [sbc_compassion](sbc_compassion/) | 14.0.1.0.1 | | SBC - Supporter to Beneficiary Communication | -| [sbc_translation](sbc_translation/) | 12.0.1.0.0 | | SBC - Translation Platform | -| [sponsorship_compassion](sponsorship_compassion/) | 14.0.1.1.9 | | Compassion Sponsorships | -| [sponsorship_reporting](sponsorship_reporting/) | 14.0.1.0.0 | | Add the reports for the sponsorships | -| [sponsorship_sub_management](sponsorship_sub_management/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) [![NoeBerdoz](https://github.com/NoeBerdoz.png?size=30px)](https://github.com/NoeBerdoz) | Compassion SUB Sponsorships Management | -| [thankyou_letters](thankyou_letters/) | 14.0.1.0.0 | | Thank You Letters | -| [wordpress_configuration](wordpress_configuration/) | 14.0.0.0.0 | | Wordpress configuration for multi-company | - -[//]: # "end addons" + + +[![Pre-commit Status](https://github.com/CompassionCH/compassion-modules/actions/workflows/pre-commit.yml/badge.svg?branch=14.0)](https://github.com/CompassionCH/compassion-modules/actions/workflows/pre-commit.yml?query=branch%3A14.0) +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=CompassionCH_compassion-modules&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=CompassionCH_compassion-modules) + + + + + +# Compassion Modules + +All accounting extensions needed for supporting Compassion's mission, in particular with +the child sponsosrhip program. + + + + + +[//]: # (addons) + +Available addons +---------------- +addon | version | maintainers | summary +--- | --- | --- | --- +[account_reconcile_compassion](account_reconcile_compassion/) | 14.0.1.1.1 | | Bank Statement Reconcile for Compassion CH +[advanced_translation](advanced_translation/) | 14.0.1.0.0 | | Advanced Translation +[child_compassion](child_compassion/) | 14.0.1.0.0 | | Compassion Children +[child_protection](child_protection/) | 14.0.1.0.0 | | Add fields for tracking acceptance of child protection charter +[crm_compassion](crm_compassion/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Compassion Events and Opportunities +[crm_request](crm_request/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Enables Customer Support Inbox +[gift_compassion](gift_compassion/) | 14.0.1.0.2 | | Compassion Sponsorship Gifts +[intervention_compassion](intervention_compassion/) | 14.0.1.0.0 | | Compassion Interventions +[label](label/) | 14.0.1.0.0 | | Mass Label Reporting +[message_center_compassion](message_center_compassion/) | 14.0.1.0.2 | | Compassion CH Message Center +[mis_builder_spn_info](mis_builder_spn_info/) | 0.1 | | Info on aquisition and departure to report on spn evolution +[onramp_simulator](onramp_simulator/) | 14.0.1.0.0 | | Send messages to Compassion Onramps +[partner_auto_match](partner_auto_match/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Find existing contact given any partner data. +[partner_communication](partner_communication/) | 14.0.1.0.0 | | Partner Communication +[partner_communication_compassion](partner_communication_compassion/) | 14.0.1.1.0 | | Compassion Partner Communications +[partner_communication_crm_phone](partner_communication_crm_phone/) | 14.0.1.0.0 | | Partner Communication CRM Phone +[partner_communication_omr](partner_communication_omr/) | 14.0.1.0.0 | | Partner Communication OMR +[partner_communication_reminder](partner_communication_reminder/) | 14.0.1.0.0 | | Reminder features +[partner_communication_revision](partner_communication_revision/) | 14.0.1.0.0 | | Partner Communication Revisions +[partner_email_alias](partner_email_alias/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Add many e-mail addresses on a contact +[partner_personal_info](partner_personal_info/) | 14.0.1.0.0 | | Adds a tab on partners for showing personal information +[partner_salutation](partner_salutation/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Adds a salutation field on partners +[partner_search_fuzzy](partner_search_fuzzy/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Add fuzzy search on partners +[partner_segmentation](partner_segmentation/) | 14.0.1.0.0 | | Segment Sponsors +[rest_json_api](rest_json_api/) | 14.0.1.0.0 | | REST Json API +[sbc_compassion](sbc_compassion/) | 14.0.1.0.1 | | SBC - Supporter to Participant Communication +[sbc_translation](sbc_translation/) | 12.0.1.0.0 | | SBC - Translation Platform +[sponsorship_compassion](sponsorship_compassion/) | 14.0.1.2.2 | | Compassion Sponsorships +[sponsorship_reporting](sponsorship_reporting/) | 14.0.1.0.0 | | Add the reports for the sponsorships +[sponsorship_sub_management](sponsorship_sub_management/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) [![NoeBerdoz](https://github.com/NoeBerdoz.png?size=30px)](https://github.com/NoeBerdoz) | Compassion SUB Sponsorships Management +[thankyou_letters](thankyou_letters/) | 14.0.1.0.0 | | Thank You Letters +[wordpress_configuration](wordpress_configuration/) | 14.0.0.0.0 | | Wordpress configuration for multi-company + +[//]: # (end addons) + + + +## Licenses + +This repository is licensed under [AGPL-3.0](LICENSE). + +However, each module can have a totally different license, as long as they adhere to +Compassion Switzerland policy. Consult each module's `__manifest__.py` file, which +contains a `license` key that explains its license. + +--- + + diff --git a/account_reconcile_compassion/README.rst b/account_reconcile_compassion/README.rst index 1166a9082..1007bdf20 100644 --- a/account_reconcile_compassion/README.rst +++ b/account_reconcile_compassion/README.rst @@ -2,10 +2,13 @@ Bank Statement Reconcile for Compassion CH ========================================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:d36c11e2e1131b2624921f29cdc76b2a6184f5c94f3caa573ca56f57679ff8b6 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -13,15 +16,24 @@ Bank Statement Reconcile for Compassion CH .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-CompassionCH%2Fcompassion--switzerland-lightgray.png?logo=github - :target: https://github.com/CompassionCH/compassion-switzerland/tree/11.0/account_reconcile_compassion - :alt: CompassionCH/compassion-switzerland +.. |badge3| image:: https://img.shields.io/badge/github-CompassionCH%2Fcompassion--modules-lightgray.png?logo=github + :target: https://github.com/CompassionCH/compassion-modules/tree/14.0/account_reconcile_compassion + :alt: CompassionCH/compassion-modules |badge1| |badge2| |badge3| Reconcile rules with bvr_ref of invoice for Compassion CH. -It finds a matching invoice for the move_line and reconciles only if the amount of the payment corresponds or if it is a multiple of the invoice amount. If many invoices are found, the first reconciled invoice is the current invoice (last invoice that is not in future). Then it reconciles the other invoices from last invoice to first. +This will add a Product field in the bank statement reconcile view that +will allow to create an invoice from a received payment. When choosing a +product, an invoice will be created and will be reconciled with the +given payment. + +It finds a matching invoice for the move_line and reconciles only if the +amount of the payment corresponds or if it is a multiple of the invoice +amount. If many invoices are found, the first reconciled invoice is the +current invoice (last invoice that is not in future). Then it reconciles +the other invoices from last invoice to first. **Table of contents** @@ -31,24 +43,25 @@ It finds a matching invoice for the move_line and reconciles only if the amount Configuration ============= -You can add the following system parameter to enable an analytic account to be set on exchange rate move lines: +You can add the following system parameter to enable an analytic account +to be set on exchange rate move lines: -* account_reconcile_compassion.currency_exchange_analytic_account +- account_reconcile_compassion.currency_exchange_analytic_account Usage ===== To use this module, you need to: -* Go to Accounting -> Bank Statement -> Reconcile +- Go to Accounting -> Bank Statement -> Reconcile Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. +Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -56,27 +69,18 @@ Credits ======= Authors -~~~~~~~ +------- * Compassion CH Contributors -~~~~~~~~~~~~ +------------ -* Emanuel Cino +- Emanuel Cino Maintainers -~~~~~~~~~~~ - -This module is maintained by Compassion Switzerland. - -.. image:: https://upload.wikimedia.org/wikipedia/en/8/83/CompassionInternationalLogo.png - :alt: Compassion Switzerland - :target: https://www.compassion.ch - -Compassion Switzerland is a nonprofit organization whose -mission is to release children from extreme poverty in Jesus name. +----------- -This module is part of the `CompassionCH/compassion-switzerland `_ project on GitHub. +This module is part of the `CompassionCH/compassion-modules `_ project on GitHub. You are welcome to contribute. diff --git a/account_reconcile_compassion/__manifest__.py b/account_reconcile_compassion/__manifest__.py index 663ee552a..34f79500f 100644 --- a/account_reconcile_compassion/__manifest__.py +++ b/account_reconcile_compassion/__manifest__.py @@ -33,7 +33,7 @@ "author": "Compassion CH", "license": "AGPL-3", "category": "Finance", - "website": "http://www.compassion.ch", + "website": "https://github.com/CompassionCH/compassion-modules", "depends": [ "account", "account_reconciliation_widget", diff --git a/account_reconcile_compassion/readme/CONFIGURE.md b/account_reconcile_compassion/readme/CONFIGURE.md new file mode 100644 index 000000000..0e35550f9 --- /dev/null +++ b/account_reconcile_compassion/readme/CONFIGURE.md @@ -0,0 +1,4 @@ +You can add the following system parameter to enable an analytic account +to be set on exchange rate move lines: + +- account_reconcile_compassion.currency_exchange_analytic_account diff --git a/account_reconcile_compassion/readme/CONFIGURE.rst b/account_reconcile_compassion/readme/CONFIGURE.rst deleted file mode 100644 index 604b1a2d8..000000000 --- a/account_reconcile_compassion/readme/CONFIGURE.rst +++ /dev/null @@ -1,3 +0,0 @@ -You can add the following system parameter to enable an analytic account to be set on exchange rate move lines: - -* account_reconcile_compassion.currency_exchange_analytic_account diff --git a/account_reconcile_compassion/readme/CONTRIBUTORS.md b/account_reconcile_compassion/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..651645fe2 --- /dev/null +++ b/account_reconcile_compassion/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Emanuel Cino \<\> diff --git a/account_reconcile_compassion/readme/CONTRIBUTORS.rst b/account_reconcile_compassion/readme/CONTRIBUTORS.rst deleted file mode 100644 index 6a9ca3183..000000000 --- a/account_reconcile_compassion/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1 +0,0 @@ -* Emanuel Cino diff --git a/account_reconcile_compassion/readme/DESCRIPTION.md b/account_reconcile_compassion/readme/DESCRIPTION.md new file mode 100644 index 000000000..24b3907d8 --- /dev/null +++ b/account_reconcile_compassion/readme/DESCRIPTION.md @@ -0,0 +1,12 @@ +Reconcile rules with bvr_ref of invoice for Compassion CH. + +This will add a Product field in the bank statement reconcile view that +will allow to create an invoice from a received payment. When choosing a +product, an invoice will be created and will be reconciled with the +given payment. + +It finds a matching invoice for the move_line and reconciles only if the +amount of the payment corresponds or if it is a multiple of the invoice +amount. If many invoices are found, the first reconciled invoice is the +current invoice (last invoice that is not in future). Then it reconciles +the other invoices from last invoice to first. diff --git a/account_reconcile_compassion/readme/DESCRIPTION.rst b/account_reconcile_compassion/readme/DESCRIPTION.rst deleted file mode 100644 index 7d8927bb0..000000000 --- a/account_reconcile_compassion/readme/DESCRIPTION.rst +++ /dev/null @@ -1,6 +0,0 @@ -Reconcile rules with bvr_ref of invoice for Compassion CH. - -This will add a Product field in the bank statement reconcile view that will allow to create an invoice from a received payment. When choosing a product, an invoice will be created and will be reconciled with the given payment. - -It finds a matching invoice for the move_line and reconciles only if the amount of the payment corresponds or if it is a multiple of the invoice amount. -If many invoices are found, the first reconciled invoice is the current invoice (last invoice that is not in future). Then it reconciles the other invoices from last invoice to first. diff --git a/account_reconcile_compassion/readme/USAGE.md b/account_reconcile_compassion/readme/USAGE.md new file mode 100644 index 000000000..fb14f9d70 --- /dev/null +++ b/account_reconcile_compassion/readme/USAGE.md @@ -0,0 +1,3 @@ +To use this module, you need to: + +- Go to Accounting -\> Bank Statement -\> Reconcile diff --git a/account_reconcile_compassion/readme/USAGE.rst b/account_reconcile_compassion/readme/USAGE.rst deleted file mode 100644 index b3e512b2b..000000000 --- a/account_reconcile_compassion/readme/USAGE.rst +++ /dev/null @@ -1,3 +0,0 @@ -To use this module, you need to: - -* Go to Accounting -> Bank Statement -> Reconcile diff --git a/account_reconcile_compassion/static/description/index.html b/account_reconcile_compassion/static/description/index.html index 368d36a5e..b734d44cc 100644 --- a/account_reconcile_compassion/static/description/index.html +++ b/account_reconcile_compassion/static/description/index.html @@ -1,131 +1,95 @@ - - - - - Bank Statement Reconcile for Compassion CH - - - -
-

Bank Statement Reconcile for Compassion CH

- - -

- Beta - License: AGPL-3 - CompassionCH/compassion-switzerland -

-

Reconcile rules with bvr_ref of invoice for Compassion CH.

-

- It finds a matching invoice for the move_line and reconciles only if the amount - of the payment corresponds or if it is a multiple of the invoice amount. If many - invoices are found, the first reconciled invoice is the current invoice (last - invoice that is not in future). Then it reconciles the other invoices from last - invoice to first. -

-

Table of contents

-
- -
-
-

Configuration

-

- You can add the following system parameter to enable an analytic account to be - set on exchange rate move lines: -

-
    -
  • account_reconcile_compassion.currency_exchange_analytic_account
  • -
-
-
-

Usage

-

To use this module, you need to:

-
    -
  • Go to Accounting -> Bank Statement -> Reconcile
  • -
-
-
-

Bug Tracker

-

- Bugs are tracked on - GitHub Issues. In case of trouble, please check there if your issue has already been - reported. If you spotted it first, help us smashing it by providing a detailed - and welcomed - feedback. -

-

- Do not contact contributors directly about support or help with technical - issues. -

-
-
-

Credits

-
-

Authors

-
    -
  • Compassion CH
  • -
-
-
-

Contributors

- -
-
-

Maintainers

-

This module is maintained by Compassion Switzerland.

- Compassion Switzerland -

- Compassion Switzerland is a nonprofit organization whose mission is to - release children from extreme poverty in Jesus name. -

-

- This module is part of the - CompassionCH/compassion-switzerland - project on GitHub. -

-

You are welcome to contribute.

-
-
-
- +

Beta License: AGPL-3 CompassionCH/compassion-modules

+

Reconcile rules with bvr_ref of invoice for Compassion CH.

+

This will add a Product field in the bank statement reconcile view that +will allow to create an invoice from a received payment. When choosing a +product, an invoice will be created and will be reconciled with the +given payment.

+

It finds a matching invoice for the move_line and reconciles only if the +amount of the payment corresponds or if it is a multiple of the invoice +amount. If many invoices are found, the first reconciled invoice is the +current invoice (last invoice that is not in future). Then it reconciles +the other invoices from last invoice to first.

+

Table of contents

+ +
+

Configuration

+

You can add the following system parameter to enable an analytic account +to be set on exchange rate move lines:

+
    +
  • account_reconcile_compassion.currency_exchange_analytic_account
  • +
+
+
+

Usage

+

To use this module, you need to:

+
    +
  • Go to Accounting -> Bank Statement -> Reconcile
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Compassion CH
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the CompassionCH/compassion-modules project on GitHub.

+

You are welcome to contribute.

+
+
+ + diff --git a/account_reconcile_compassion/static/src/js/account_move_reconciliation.js b/account_reconcile_compassion/static/src/js/account_move_reconciliation.js index 861e45eb3..e49422c1d 100644 --- a/account_reconcile_compassion/static/src/js/account_move_reconciliation.js +++ b/account_reconcile_compassion/static/src/js/account_move_reconciliation.js @@ -56,9 +56,13 @@ odoo.define("account_reconcile_compassion.reconciliation", function (require) { }); reconciliation_renderer.StatementRenderer.include({ - events: _.extend({}, reconciliation_renderer.StatementRenderer.prototype.events, { - "click div:first h1.statement_name": "statementNameClickHandler", - }), + events: _.extend( + {}, + reconciliation_renderer.StatementRenderer.prototype.events, + { + "click div:first h1.statement_name": "statementNameClickHandler", + } + ), // Change behaviour when clicking on name of bank statement statementNameClickHandler: function () { @@ -178,8 +182,8 @@ odoo.define("account_reconcile_compassion.reconciliation", function (require) { account_id: { string: _t("Account"), }, - label: {string: _t("Label")}, - amount: {string: _t("Account")}, + label: { string: _t("Label") }, + amount: { string: _t("Account") }, // CHANGE: Product, sponsorship, user_id and comment // added from original function product_id: { @@ -207,14 +211,14 @@ odoo.define("account_reconcile_compassion.reconciliation", function (require) { self, "account_id", record, - {mode: "edit", attrs: {can_create: false}} + { mode: "edit", attrs: { can_create: false } } ); self.fields.journal_id = new relational_fields.FieldMany2One( self, "journal_id", record, - {mode: "edit"} + { mode: "edit" } ); self.fields.tax_ids = new relational_fields.FieldMany2ManyTags( @@ -223,7 +227,7 @@ odoo.define("account_reconcile_compassion.reconciliation", function (require) { record, { mode: "edit", - additionalContext: {append_type_to_tax_name: true}, + additionalContext: { append_type_to_tax_name: true }, } ); @@ -231,30 +235,40 @@ odoo.define("account_reconcile_compassion.reconciliation", function (require) { self, "analytic_account_id", record, - {mode: "edit"} + { mode: "edit" } ); self.fields.analytic_tag_ids = new relational_fields.FieldMany2ManyTags( self, "analytic_tag_ids", record, - {mode: "edit"} + { mode: "edit" } ); self.fields.force_tax_included = new basic_fields.FieldBoolean( self, "force_tax_included", record, - {mode: "edit"} + { mode: "edit" } ); - self.fields.label = new basic_fields.FieldChar(self, "label", record, { - mode: "edit", - }); + self.fields.label = new basic_fields.FieldChar( + self, + "label", + record, + { + mode: "edit", + } + ); - self.fields.amount = new basic_fields.FieldFloat(self, "amount", record, { - mode: "edit", - }); + self.fields.amount = new basic_fields.FieldFloat( + self, + "amount", + record, + { + mode: "edit", + } + ); self.fields.date = new basic_fields.FieldDate(self, "date", record, { mode: "edit", @@ -264,7 +278,7 @@ odoo.define("account_reconcile_compassion.reconciliation", function (require) { self, "to_check", record, - {mode: "edit"} + { mode: "edit" } ); // CHANGE: Product, sponsorship, user_id and comment @@ -296,9 +310,14 @@ odoo.define("account_reconcile_compassion.reconciliation", function (require) { // } // ); - self.fields.comment = new basic_fields.FieldChar(self, "comment", record, { - mode: "edit", - }); + self.fields.comment = new basic_fields.FieldChar( + self, + "comment", + record, + { + mode: "edit", + } + ); self.fields.avoid_thankyou_letter = new basic_fields.FieldBoolean( self, @@ -325,7 +344,9 @@ odoo.define("account_reconcile_compassion.reconciliation", function (require) { self.fields.journal_id.appendTo( $create.find(".create_journal_id .o_td_field") ); - self.fields.tax_ids.appendTo($create.find(".create_tax_id .o_td_field")); + self.fields.tax_ids.appendTo( + $create.find(".create_tax_id .o_td_field") + ); self.fields.analytic_account_id.appendTo( $create.find(".create_analytic_account_id .o_td_field") ); @@ -342,7 +363,9 @@ odoo.define("account_reconcile_compassion.reconciliation", function (require) { .appendTo($create.find(".create_amount .o_td_field")) .then(addRequiredStyle.bind(self, self.fields.amount)); self.fields.date.appendTo($create.find(".create_date .o_td_field")); - self.fields.to_check.appendTo($create.find(".create_to_check .o_td_field")); + self.fields.to_check.appendTo( + $create.find(".create_to_check .o_td_field") + ); // CHANGE: Product, sponsorship, user_id and comment // added from original function self.fields.product_id.appendTo( @@ -352,7 +375,9 @@ odoo.define("account_reconcile_compassion.reconciliation", function (require) { $create.find(".create_sponsorship_id .o_td_field") ); // self.fields.user_id.appendTo($create.find(".create_user_id .o_td_field")); - self.fields.comment.appendTo($create.find(".create_comment .o_td_field")); + self.fields.comment.appendTo( + $create.find(".create_comment .o_td_field") + ); self.fields.avoid_thankyou_letter.appendTo( $create.find(".create_avoid_thankyou_letter .o_td_field") ); @@ -478,11 +503,14 @@ odoo.define("account_reconcile_compassion.reconciliation", function (require) { if (changes) { if (changes.account_id) values.account_id = changes.account_id; if (changes.tax_id) values.tax_id = changes.tax_id; - if (changes.analytic_id) values.analytic_account_id = changes.analytic_id; + if (changes.analytic_id) + values.analytic_account_id = changes.analytic_id; if (changes.analytic_tag_ids) { // Replace analytic tags as the parent method doesn't support several tags added var line = self.getLine(handle); - var prop = _.last(_.filter(line.reconciliation_proposition, "__focus")); + var prop = _.last( + _.filter(line.reconciliation_proposition, "__focus") + ); prop.analytic_tag_ids = changes.analytic_tag_ids; } } @@ -547,7 +575,9 @@ odoo.define("account_reconcile_compassion.reconciliation", function (require) { _formatToProcessReconciliation: function (line, prop) { var result = this._super(line, prop); result.product_id = prop.product_id ? prop.product_id.id : null; - result.sponsorship_id = prop.sponsorship_id ? prop.sponsorship_id.id : null; + result.sponsorship_id = prop.sponsorship_id + ? prop.sponsorship_id.id + : null; // result.user_id = prop.user_id ? prop.user_id.id : null; result.comment = prop.comment; result.avoid_thankyou_letter = prop.avoid_thankyou_letter diff --git a/account_reconcile_compassion/static/src/js/relational_fields.js b/account_reconcile_compassion/static/src/js/relational_fields.js index afa0bc102..7d0651eb8 100644 --- a/account_reconcile_compassion/static/src/js/relational_fields.js +++ b/account_reconcile_compassion/static/src/js/relational_fields.js @@ -1,4 +1,6 @@ -odoo.define("account_reconcile_compassion.relational_fields", function (require) { +odoo.define("account_reconcile_compassion.relational_fields", function ( + require +) { "use strict"; var FieldMany2One = require("web.relational_fields").FieldMany2One; diff --git a/account_reconcile_compassion/static/src/xml/account_move_reconciliation.xml b/account_reconcile_compassion/static/src/xml/account_move_reconciliation.xml index fcc6247d7..50a2206ae 100644 --- a/account_reconcile_compassion/static/src/xml/account_move_reconciliation.xml +++ b/account_reconcile_compassion/static/src/xml/account_move_reconciliation.xml @@ -1,33 +1,46 @@ - - + - - + + - + - - () + + () -
- +
+ - +
- () + () @@ -35,11 +48,11 @@ Product - + Sponsorship - + @@ -50,11 +63,11 @@ Gift instructions - + Disable thank you letter - + @@ -63,7 +76,8 @@ - Partner name + Partner name diff --git a/account_reconcile_compassion/views/account_invoice_view.xml b/account_reconcile_compassion/views/account_invoice_view.xml index 1af0f7af8..a7c34a5d7 100644 --- a/account_reconcile_compassion/views/account_invoice_view.xml +++ b/account_reconcile_compassion/views/account_invoice_view.xml @@ -1,4 +1,4 @@ - + @@ -6,10 +6,18 @@ account.move - - -