diff --git a/.DINAR/build-date.txt b/.DINAR/build-date.txt
new file mode 100644
index 000000000..a9e6d6f5c
--- /dev/null
+++ b/.DINAR/build-date.txt
@@ -0,0 +1 @@
+April 3, 2020
diff --git a/.github/workflows/DINAR-pr.yml b/.github/workflows/DINAR-pr.yml
index 6d8196cbb..ff86aa13f 100644
--- a/.github/workflows/DINAR-pr.yml
+++ b/.github/workflows/DINAR-pr.yml
@@ -154,17 +154,30 @@ jobs:
mkdir new-deps/
# create dummy file to be sure that Artifact will be uploaded
echo ok > new-deps/.empty
+ echo "::set-env name=ARTIFACT::empty"
- name: Prepare DINAR with additional dependencies
if: env.PR_MODULES_DEPS != '' || env.PR_DEPS != ''
run: |
# Save artifacts for local run and for integrations Tests
bash DINAR/workflow-files/save-docker-layers.sh new-deps/
echo "${{ env.PR_MODULES_DEPS }}" > new-deps/modules.txt
+ echo "::set-env name=ARTIFACT::yes"
- name: Save DINAR with dependencies
uses: actions/upload-artifact@v1
with:
name: new-deps
path: new-deps/
+ - name: HOW TO RUN QUICK TESTS LOCALLY
+ if: always()
+ run: |
+ export MODULES=${{ env.PR_MODULES }}
+ export LOAD_MODULES=${{ env.PR_MODULES_LOAD }}
+ export PR_NUM=${{ github.event.number }}
+ export VERSION=${{ github.event.pull_request.base.ref }}
+ export REVISION_PR=${{ github.event.pull_request.head.sha}}
+ export DINAR_REPO="itpp-labs/DINAR-fork"
+ export ODOO_EXTRA_ARG=--test-enable
+ bash DINAR/workflow-files/how-to-run-locally.sh ${{ secrets.GITHUB_TOKEN }}
- name: Test updated modules
if: env.PR_MODULES != ''
run: |
@@ -221,7 +234,6 @@ jobs:
sudo apt-get install jq
- name: HOW TO RUN TESTS LOCALLY
if: always()
- # TODO make similar for Quick Tests
run: |
export MODULES=${{ env.ALL_MODULES }}
export LOAD_MODULES=${{ env.ALL_MODULES_LOAD }}
diff --git a/.github/workflows/DINAR.yml b/.github/workflows/DINAR.yml
index 9fb0fec48..00439259b 100644
--- a/.github/workflows/DINAR.yml
+++ b/.github/workflows/DINAR.yml
@@ -34,10 +34,27 @@ jobs:
echo "DINAR_TOKEN is not set"
exit 1
fi
+
+ check-branch:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check that this branch needs docker images
+ run: |
+ REF=${GITHUB_BASE_REF:-${GITHUB_REF}}
+ BRANCH=${REF##*/}
+ CHECK=$( echo "$BRANCH" | grep -E "^(master|[0-9]+\.[0-9]+)(-dev-.+)?$" || true)
+ if [ -z "$CHECK" ]
+ then
+ echo "This branch is not supposed to be a target of pull requests, so docker image is not needed."
+ echo "For information check https://github.com/itpp-labs/DINAR/issues/60"
+ exit 1
+ fi
+
rebuild-images:
runs-on: ubuntu-latest
needs:
- check-secret
+ - check-branch
steps:
- name: Checkout Repo
uses: actions/checkout@v2
@@ -60,7 +77,12 @@ jobs:
run: |
bash DINAR/workflow-files/configure-docker.sh ${{ secrets.DINAR_TOKEN }}
- - name: dinar-odoo-base
+ cat <<- EOF > REPO/.DINAR/image/.netrc
+ machine github.com
+ login $GITHUB_ACTOR
+ password ${{ secrets.DINAR_TOKEN }}
+ EOF
+ - name: Build ${{ env.IMAGE_ODOO_BASE }}
uses: elgohr/Publish-Docker-Github-Action@master
env:
LOCAL_CUSTOM_DIR: ./image
diff --git a/.github/workflows/repo2store.yml b/.github/workflows/repo2store.yml
index 39116651c..b5b39aab3 100644
--- a/.github/workflows/repo2store.yml
+++ b/.github/workflows/repo2store.yml
@@ -13,7 +13,7 @@ jobs:
- name: Checkout REPO
uses: actions/checkout@v2-beta
with:
- fetch-depth: 100
+ fetch-depth: 0
# custom token is not needed for fetching REPO,
# but the action makes some magic with authentication headers
# which are used on pushing to REPO-store
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3d8138dd3..dcd432d96 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -42,7 +42,7 @@ repos:
name: prettier xml plugin
additional_dependencies:
- "prettier@1.19.1"
- - "@prettier/plugin-xml@0.5.0"
+ - "@prettier/plugin-xml@0.7.2"
files: \.xml$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v6.8.0
@@ -88,11 +88,11 @@ repos:
name: pylint with optional checks
args: ["--rcfile=.pylintrc", "--exit-zero"]
verbose: true
- additional_dependencies: ["pylint-odoo==3.0.3"]
+ additional_dependencies: ["pylint-odoo==3.1.0"]
- id: pylint
name: pylint with mandatory checks
args: ["--rcfile=.pylintrc-mandatory"]
- additional_dependencies: ["pylint-odoo==3.0.3"]
+ additional_dependencies: ["pylint-odoo==3.1.0"]
- repo: https://github.com/asottile/pyupgrade
rev: v1.26.2
hooks:
diff --git a/.prettierrc.yml b/.prettierrc.yml
index 0b7d15a5f..fc5f3a7c4 100644
--- a/.prettierrc.yml
+++ b/.prettierrc.yml
@@ -5,3 +5,4 @@ printWidth: 88
proseWrap: always
semi: true
trailingComma: "es5"
+xmlWhitespaceSensitivity: "ignore"
diff --git a/auth_signup_confirmation/data/config.xml b/auth_signup_confirmation/data/config.xml
index 1a7255947..4e98e6c39 100644
--- a/auth_signup_confirmation/data/config.xml
+++ b/auth_signup_confirmation/data/config.xml
@@ -1,11 +1,9 @@
-
-
-
- auth_signup_confirmation.url_singup_thankyou
- /web/signup/thankyou/
-
-
-
+
+
+ auth_signup_confirmation.url_singup_thankyou
+ /web/signup/thankyou/
+
+
diff --git a/autostaging_project_task/views.xml b/autostaging_project_task/views.xml
index e59e47ac3..f5f44271e 100644
--- a/autostaging_project_task/views.xml
+++ b/autostaging_project_task/views.xml
@@ -4,14 +4,13 @@
Copyright 2019 Artem Rafailov
License MIT (https://opensource.org/licenses/MIT). -->
-
+
Autostagingproject.taskAutostaging
-
Autostagingproject.project
@@ -19,7 +18,6 @@
project_id
-
project.form.allow.automoveproject.project
@@ -29,11 +27,10 @@
-
+
-
project.task.type.form.autostagingproject.task.type
@@ -50,14 +47,14 @@
days
+ >
+ days
+
-
-
project.task.type.tree.autostagingproject.task.type
@@ -70,7 +67,6 @@
-
project.task.form.autostagingproject.task
@@ -93,6 +89,5 @@
-
diff --git a/base_attendance/report/res_partner_badge.xml b/base_attendance/report/res_partner_badge.xml
index dac0a9a96..3ac015931 100644
--- a/base_attendance/report/res_partner_badge.xml
+++ b/base_attendance/report/res_partner_badge.xml
@@ -3,7 +3,6 @@
Copyright 2018-2019 Kolushov Alexandr
License MIT (https://opensource.org/licenses/MIT).-->
-
-
@@ -48,23 +46,37 @@
-
+
+
+ >
+
+
+
+
-
+
+
-
+
+
+
+
+
+
+
+ />
+
+
diff --git a/base_attendance/security/res_attendance_security.xml b/base_attendance/security/res_attendance_security.xml
index 210f4fe5c..71dffba15 100644
--- a/base_attendance/security/res_attendance_security.xml
+++ b/base_attendance/security/res_attendance_security.xml
@@ -8,13 +8,11 @@
Helps you manage the partner attendances.15
-
Read OnlyThe user will gain access to see attendances menu.
-
Manual Attendances
@@ -26,21 +24,18 @@
name="comment"
>The user will gain access to manage partners attendance.
-
Manager
-
-
Enable PIN use (for Partner Attendance)
@@ -48,9 +43,7 @@
name="comment"
>The user will have to enter his PIN to check in and out manually at the company screen.
-
-
attendance officer: full access
@@ -60,6 +53,5 @@
eval="[(4,ref('base_attendance.group_hr_attendance_manager'))]"
/>
-
diff --git a/base_attendance/static/src/xml/attendance.xml b/base_attendance/static/src/xml/attendance.xml
index e45ff2eeb..4de36a644 100644
--- a/base_attendance/static/src/xml/attendance.xml
+++ b/base_attendance/static/src/xml/attendance.xml
@@ -7,7 +7,6 @@
-
@@ -22,7 +21,6 @@
-
@@ -52,11 +50,13 @@
-
+
+ />
+
+ >
+
+
@@ -88,7 +90,6 @@
-
@@ -105,7 +106,6 @@
-
diff --git a/base_attendance/views/res_attendance_view.xml b/base_attendance/views/res_attendance_view.xml
index a78f32b2e..07fff20c0 100644
--- a/base_attendance/views/res_attendance_view.xml
+++ b/base_attendance/views/res_attendance_view.xml
@@ -3,9 +3,7 @@
Copyright 2018-2019 Kolushov Alexandr
License MIT (https://opensource.org/licenses/MIT).-->
-
-
res.partner.attendance.treeres.partner.attendance
@@ -17,7 +15,6 @@
-
res.partner.attendance.formres.partner.attendance
@@ -33,7 +30,6 @@
-
res_partner_attendance_view_filterres.partner.attendance
@@ -73,7 +69,6 @@
-
res.partner.attendance.pivotres.partner.attendance
@@ -85,7 +80,6 @@
-
res.partner.attendance.graphres.partner.attendance
@@ -97,9 +91,7 @@
-
-
Attendancesres.partner.attendance
@@ -113,7 +105,6 @@
>Please make sure you're using the correct filter if you expected to see any.
-
No attendance records to display.
-
Attendance Analysisres.partner.attendanceformpivot,graph
-
+
+
-
Attendance Analysisres.partner.attendance
@@ -147,9 +137,9 @@
'search_default_department_id': [active_id],
'default_department_id': active_id}
-
+
+
-
Get to the Kiosk Modeir.actions.server
@@ -167,12 +157,10 @@ action = {
}
-
Messagebase_attendance_greeting_message
-
res.partner.kanban.attendance
@@ -220,10 +208,14 @@ action = {