Skip to content

Commit

Permalink
[ADD] dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AungKoKoLin1997 committed Jul 8, 2024
1 parent c7786e7 commit 62ba751
Show file tree
Hide file tree
Showing 29 changed files with 748 additions and 92 deletions.
17 changes: 8 additions & 9 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.14.1
_commit: v1.24
_src_path: https://github.com/OCA/oca-addons-repo-template.git
ci: GitHub
dependency_installation_mode: PIP
convert_readme_fragments_to_markdown: false
generate_requirements_txt: true
github_check_license: true
github_ci_extra_env: {}
github_enable_codecov: true
github_enable_codecov: false
github_enable_makepot: false
github_enable_stale_action: true
github_enforce_dev_status_compatibility: true
github_enable_stale_action: false
github_enforce_dev_status_compatibility: false
include_wkhtmltopdf: false
odoo_test_flavor: OCB
odoo_version: 10.0
org_name: Quartile Limited
org_name: ''
org_slug: qrtl
rebel_module_groups: []
repo_description: PCI Custom
repo_name: null
repo_name: ''
repo_slug: pci-custom
repo_website: https://www.quartile.co
travis_apt_packages: []
travis_apt_sources: []

11 changes: 10 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
pre-commit:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: "2.7"
Expand All @@ -27,6 +27,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)"
Expand Down
69 changes: 0 additions & 69 deletions .github/workflows/stale.yml

This file was deleted.

25 changes: 23 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- "10.0-ocabot-*"

jobs:
<<<<<<< before updating
# unreleased-deps:
# runs-on: ubuntu-latest
# name: Detect unreleased dependencies
Expand All @@ -27,6 +28,25 @@ jobs:
# fi
# fi
# done
=======
unreleased-deps:
runs-on: ubuntu-latest
name: Detect unreleased dependencies
steps:
- uses: actions/checkout@v3
- run: |
for reqfile in requirements.txt test-requirements.txt ; do
if [ -f ${reqfile} ] ; then
result=0
# reject non-comment lines that contain a / (i.e. URLs, relative paths)
grep "^[^#].*/" ${reqfile} || result=$?
if [ $result -eq 0 ] ; then
echo "Unreleased dependencies found in ${reqfile}."
exit 1
fi
fi
done
>>>>>>> after updating
test:
runs-on: ubuntu-20.04
container: ${{ matrix.container }}
Expand All @@ -37,6 +57,7 @@ jobs:
include:
- container: ghcr.io/oca/oca-ci/py2.7-ocb10.0:latest
name: test with OCB
makepot: "false"
services:
postgres:
image: postgres:9.6
Expand All @@ -47,7 +68,7 @@ jobs:
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install addons and dependencies
Expand All @@ -56,11 +77,11 @@ jobs:
run: manifestoo -d . check-licenses
- name: Check development status
run: manifestoo -d . check-dev-status --default-dev-status=Beta
continue-on-error: true
- name: Initialize test db
run: oca_init_test_database
- name: Run tests
run: oca_run_tests
- uses: codecov/codecov-action@v1
- name: Update .pot files
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'qrtl' }}
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ __pycache__/
*.py[cod]
/.venv
/.pytest_cache
/.ruff_cache

# C extensions
*.so
Expand All @@ -24,6 +25,15 @@ var/
*.egg
*.eggs

# Debian packages
*.deb

# Redhat packages
*.rpm

# MacOS packages
*.dmg

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
Expand Down
2 changes: 2 additions & 0 deletions .oca_hooks.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[MESSAGES_CONTROL]
disable=xml-deprecated-data-node,xml-deprecated-tree-attribute
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exclude: |
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
default_language_version:
python: python3
python: python3.6
repos:
- repo: https://github.com/oca/maintainer-tools
rev: ab1d7f6
Expand Down
4 changes: 2 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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_authors=
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
Expand Down Expand Up @@ -103,7 +103,7 @@ enable=anomalous-backslash-in-string,
eval-referenced,
license-allowed,
manifest-author-string,
manifest-required-author,
; manifest-required-author,
manifest-required-key,
manifest-version-format,
api-one-deprecated,
Expand Down
4 changes: 2 additions & 2 deletions .pylintrc-mandatory
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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_authors= -->
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
Expand Down Expand Up @@ -57,7 +57,7 @@ enable=anomalous-backslash-in-string,
eval-referenced,
license-allowed,
manifest-author-string,
manifest-required-author,
<!-- manifest-required-author, -->
manifest-required-key,
manifest-version-format

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This part will be replaced when running the oca-gen-addons-table script from OCA

This repository is licensed under [AGPL-3.0](LICENSE).

However, each module can have a totally different license, as long as they adhere to Quartile Limited
However, each module can have a totally different license, as long as they adhere to
policy. Consult each module's `__manifest__.py` file, which contains a `license` key
that explains its license.

Expand Down
2 changes: 1 addition & 1 deletion purchase_received_qty_adj/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
- Add transfer reference to stock move tree view
""",
'depends': [
'purchase',
'purchase_stock_picking_return_invoicing',
'purchase_open_qty',
],
'data': [
'views/purchase_order_view.xml',
Expand Down
4 changes: 2 additions & 2 deletions purchase_received_qty_adj/views/purchase_order_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<record id="purchase_order_form" model="ir.ui.view">
<field name="name">purchase.order.form</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="inherit_id" ref="purchase_stock_picking_return_invoicing.purchase_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='order_line']/tree/field[@name='qty_to_refund']"
position="attributes">
position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//field[@name='order_line']/tree/field[@name='qty_refunded']"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo.tests.common import SavepointCase
from odoo import fields


class TestSalePricelistAutoUpdate(SavepointCase):
Expand All @@ -20,7 +21,7 @@ def setUpClass(cls):
{
"name": "FY2022",
"date_start": "2022-01-01",
"date_end": "2022-12-31",
"date_end": fields.date.today(),
"type_id": range_type.id,
}
)
Expand Down Expand Up @@ -53,7 +54,7 @@ def test_confirm_and_cancel_sales_order(self):
yearly_sales_dom = [
("partner_id", "=", self.partner.id),
("start_date", "=", "2022-01-01"),
("end_date", "=", "2022-12-31"),
("end_date", "=", fields.date.today()),
]
yearly_sales = self.yearly_sales.search(yearly_sales_dom)
# No corresponding yearly sales record before sales order confirmation.
Expand Down
1 change: 1 addition & 0 deletions setup/stock_shipment_schedule_report/odoo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
6 changes: 6 additions & 0 deletions setup/stock_shipment_schedule_report/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
4 changes: 4 additions & 0 deletions stock_shipment_schedule_report/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-

from . import wizards
from . import reports
23 changes: 23 additions & 0 deletions stock_shipment_schedule_report/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Quartile Limited
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Shipment Schedule Report",
"summary": "",
"version": "10.0.1.1.0",
"category": "Reporting",
"website": "https://www.quartile.co",
"author": "Quartile Limited",
"license": "LGPL-3",
"installable": True,
"depends": [
"sale_stock",
"abstract_report_xlsx",
"sale_order_dates_ext",
"website_product_stock",
],
"data": [
"wizards/shipment_schedule_report_wizard_view.xml",
"reports.xml",
],
}
13 changes: 13 additions & 0 deletions stock_shipment_schedule_report/reports.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="action_shipment_schedule_report_xlsx" model="ir.actions.report.xml">
<field name="name">Shipment Schedule Report</field>
<field name="model">shipment.schedule.report</field>
<field name="type">ir.actions.report.xml</field>
<field name="report_name">stock_shipment_schedule_report.shipment_schedule_report</field>
<field name="report_type">xlsx</field>
<field name="auto" eval="False"/>
</record>

</odoo>
6 changes: 6 additions & 0 deletions stock_shipment_schedule_report/reports/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-

from . import shipment_schedule_report
from . import shipment_schedule_report_line
from . import shipment_schedule_report_compute
from . import shipment_schedule_xlsx
Loading

0 comments on commit 62ba751

Please sign in to comment.