From 82f9f95bcf61e9f6b6cfbc7f3a968aaa85c5ab41 Mon Sep 17 00:00:00 2001 From: "Aung Ko Ko Lin (Quartile)" <45355704+AungKoKoLin1997@users.noreply.github.com> Date: Thu, 19 Oct 2023 16:46:09 +0630 Subject: [PATCH] [15.0][3829][UPD] dotfile, oca-disable (#69) * [UPD] dotfile, oca-disable --- .copier-answers.yml | 3 +- .eslintrc.yml | 1 + .github/workflows/pre-commit.yml | 11 ++++- .github/workflows/test.yml | 5 ++- .pre-commit-config.yaml | 20 +++++++++- .pylintrc | 12 +++--- .pylintrc-mandatory | 12 +++--- account_commission_listing_fee/README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- account_commission_sales_fee/README.rst | 11 +++-- .../static/description/index.html | 30 +++++++------- account_move_delivered_amount/README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- account_move_subject/README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- account_partial_reconcile_restrict/README.rst | 9 +++-- account_partial_reconcile_restrict/i18n/ja.po | 13 +++--- .../static/description/index.html | 30 +++++++------- auction_custom_filter/README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- auction_seller/README.rst | 9 +++-- auction_seller/static/description/index.html | 30 +++++++------- auction_seller_invoice/README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- .../views/auction_item_invoice_views.xml | 2 +- base_auction/README.rst | 9 +++-- base_auction/static/description/index.html | 30 +++++++------- base_data_import/README.rst | 21 +++++----- base_data_import/i18n/ja.po | 2 +- .../static/description/index.html | 36 +++++++++-------- base_report_info/README.rst | 15 ++++--- base_report_info/i18n/ja.po | 10 ++--- .../static/description/index.html | 34 ++++++++-------- .../README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- mail_compose_message_reply_to/README.rst | 21 +++++----- .../static/description/index.html | 36 +++++++++-------- partner_secondhand_dealer/README.rst | 15 ++++--- partner_secondhand_dealer/i18n/ja.po | 6 +-- .../static/description/index.html | 34 ++++++++-------- product_archive_sold_product/README.rst | 17 ++++---- .../static/description/index.html | 34 ++++++++-------- product_auction/README.rst | 21 +++++----- product_auction/static/description/index.html | 40 ++++++++++--------- product_event_link/README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- product_internal_reference_code/README.rst | 9 +++-- product_internal_reference_code/i18n/ja.po | 2 +- .../static/description/index.html | 30 +++++++------- product_prep_state/README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- product_yahoo_auction_sst/README.rst | 9 +++-- .../static/description/index.html | 32 ++++++++------- purchase_channel_attribute/README.rst | 15 ++++--- purchase_channel_attribute/i18n/ja.po | 6 +-- .../static/description/index.html | 34 ++++++++-------- purchase_order_supplier_phone/README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- report_account_move_settlement/README.rst | 9 +++-- report_account_move_settlement/i18n/ja.po | 6 +-- .../static/description/index.html | 34 ++++++++-------- sale_commission_seller_agent/README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- sale_order_import/README.rst | 10 +++-- sale_order_import/i18n/ja.po | 3 +- .../static/description/index.html | 38 +++++++++--------- sale_order_line_case_number/README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- sale_order_subject/README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- stock_request_seller_check/README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- web_hide_user_menu_item/README.rst | 9 +++-- .../static/description/index.html | 30 +++++++------- web_portal_link/README.rst | 9 +++-- web_portal_link/static/description/index.html | 34 ++++++++-------- 76 files changed, 791 insertions(+), 614 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index e8e84679..0c82ff75 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.14.2 +_commit: v1.17.1 _src_path: https://github.com/OCA/oca-addons-repo-template.git ci: GitHub dependency_installation_mode: OCA @@ -11,6 +11,7 @@ github_enable_makepot: false github_enable_stale_action: true github_enforce_dev_status_compatibility: false include_wkhtmltopdf: false +odoo_test_flavor: OCB odoo_version: 15.0 org_name: Quartile Limited org_slug: qrtl diff --git a/.eslintrc.yml b/.eslintrc.yml index 9429bc68..fed88d70 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/pre-commit.yml b/.github/workflows/pre-commit.yml index 64a21c3e..2350a0f7 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -13,7 +13,7 @@ jobs: pre-commit: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-python@v2 - name: Get python version run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV @@ -25,6 +25,15 @@ jobs: 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)" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9c6e31f4..8f6189bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: # runs-on: ubuntu-latest # name: Detect unreleased dependencies # steps: - # - uses: actions/checkout@v2 + # - uses: actions/checkout@v3 # - run: | # for reqfile in requirements.txt test-requirements.txt ; do # if [ -f ${reqfile} ] ; then @@ -37,6 +37,7 @@ jobs: include: - container: ghcr.io/oca/oca-ci/py3.8-ocb15.0:latest name: test with OCB + makepot: "false" services: postgres: image: postgres:9.6 @@ -47,7 +48,7 @@ jobs: ports: - 5432:5432 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: persist-credentials: false - name: Install addons and dependencies diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c827cb77..f0b93ae9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,6 +12,8 @@ exclude: | /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)$| # You don't usually want a bot to modify your legal texts (LICENSE.*|COPYING.*) default_language_version: @@ -33,12 +35,26 @@ repos: language: fail files: '[a-zA-Z0-9_]*/i18n/en\.po$' - repo: https://github.com/oca/maintainer-tools - rev: dfba427ba03900b69e0a7f2c65890dc48921d36a + rev: 969238e47c07d0c40573acff81d170f63245d738 hooks: # update the NOT INSTALLABLE ADDONS section above - id: oca-update-pre-commit-excluded-addons - id: oca-fix-manifest-website args: ["https://www.quartile.co"] + - id: oca-gen-addon-readme + args: + - --addons-dir=. + - --branch=15.0 + - --org-name=qrtl + - --repo-name=rmm-custom + - --if-source-changed + - repo: https://github.com/OCA/odoo-pre-commit-hooks + rev: v0.0.29 + hooks: + - id: oca-checks-odoo-module + - id: oca-checks-po + args: + - --fix - repo: https://github.com/myint/autoflake rev: v1.4 hooks: @@ -125,7 +141,7 @@ repos: name: flake8 additional_dependencies: ["flake8-bugbear==21.9.2"] - repo: https://github.com/OCA/pylint-odoo - rev: 7.0.2 + rev: v8.0.22 hooks: - id: pylint_odoo name: pylint with optional checks diff --git a/.pylintrc b/.pylintrc index b8e688d8..a0a0547a 100644 --- a/.pylintrc +++ b/.pylintrc @@ -5,12 +5,12 @@ load-plugins=pylint_odoo score=n [ODOOLINT] -readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" -manifest_required_authors=Quartile Limited -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 -valid_odoo_versions=15.0 +readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" +manifest-required-authors=Quartile Limited +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 +valid-odoo-versions=15.0 [MESSAGES CONTROL] disable=all diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory index 998b81de..5e41649f 100644 --- a/.pylintrc-mandatory +++ b/.pylintrc-mandatory @@ -4,12 +4,12 @@ load-plugins=pylint_odoo score=n [ODOOLINT] -readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" -manifest_required_authors=Quartile Limited -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 -valid_odoo_versions=15.0 +readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" +manifest-required-authors=Quartile Limited +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 +valid-odoo-versions=15.0 [MESSAGES CONTROL] disable=all diff --git a/account_commission_listing_fee/README.rst b/account_commission_listing_fee/README.rst index 578cd992..13b5ac99 100644 --- a/account_commission_listing_fee/README.rst +++ b/account_commission_listing_fee/README.rst @@ -2,10 +2,13 @@ Account Commission listing Fee ============================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:2520abccafe4e45fd3f0b834b0283b19f73c486a954beba4b0c951c6e4194079 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -17,7 +20,7 @@ Account Commission listing Fee :target: https://github.com/qrtl/rmm-custom/tree/15.0/account_commission_listing_fee :alt: qrtl/rmm-custom -|badge1| |badge2| |badge3| +|badge1| |badge2| |badge3| This module adds the "Listing Fee" line to the vendor bill created from a settlement according to the commission configuration. @@ -34,7 +37,7 @@ 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 +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. diff --git a/account_commission_listing_fee/static/description/index.html b/account_commission_listing_fee/static/description/index.html index 951dade7..54bddf49 100644 --- a/account_commission_listing_fee/static/description/index.html +++ b/account_commission_listing_fee/static/description/index.html @@ -1,20 +1,20 @@ - + - + Account Commission listing Fee -
-

Product Auction Attribute

+
+

Product Auction

-

Beta License: LGPL-3 qrtl/rmm-custom

+

Beta License: LGPL-3 qrtl/rmm-custom

This module does the following:

  • Adds auction related fields to product.template model.
  • @@ -375,33 +377,33 @@

    Product Auction Attribute

    Table of contents

    -

    Bug Tracker

    +

    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.

    +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

    +

    Credits

    -

    Authors

    +

    Authors

    • Quartile Limited
    -

    Maintainers

    -

    This module is part of the qrtl/rmm-custom project on GitHub.

    +

    Maintainers

    +

    This module is part of the qrtl/rmm-custom project on GitHub.

    You are welcome to contribute.

    diff --git a/product_event_link/README.rst b/product_event_link/README.rst index 9a723081..e24f5897 100644 --- a/product_event_link/README.rst +++ b/product_event_link/README.rst @@ -2,10 +2,13 @@ Product Event Link ================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:e5c1b84ab4024250e524cf15a154b15ddf66ce987aa0b4ff918d8e4c783dbc77 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -17,7 +20,7 @@ Product Event Link :target: https://github.com/qrtl/rmm-custom/tree/15.0/product_event_link :alt: qrtl/rmm-custom -|badge1| |badge2| |badge3| +|badge1| |badge2| |badge3| This module adds event_ids in product. @@ -33,7 +36,7 @@ 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 +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. diff --git a/product_event_link/static/description/index.html b/product_event_link/static/description/index.html index f7efd2eb..c59a6202 100644 --- a/product_event_link/static/description/index.html +++ b/product_event_link/static/description/index.html @@ -1,20 +1,20 @@ - + - + Product Event Link