Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] default_warehouse_from_sale_team: Migration to 18.0 T#87470 #1689

Open
wants to merge 55 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
fcc8ae8
[ADD] ci: init CI files for v18
luisg123v Jan 27, 2025
372df55
[IMP] Better test naming, and cleanup of test (#883)
nhomar Apr 26, 2016
cf79297
8.0 warehouse default (#889): Test was incorrectly invoqued
nhomar Apr 27, 2016
a18c039
default_warehouse_from_sale_team: new version (#1032) (#1281)
JulioSerna Jul 3, 2018
b792e5b
[FIX] default_warehouse_from_sale_team: Update get_id method in seque…
deivislaya Aug 14, 2018
68b9865
[IMP] default_warehouse_from_sales_team: adapt method in order to avo…
JulioSerna Sep 18, 2018
c92fe6b
[MIG] default_warehouse_from_sale_team: Migration to 12.0
hugho-ad Apr 15, 2019
cb5caf1
[REF] default_warehouse_from_sale_team: Default journal at invoice is…
hugho-ad May 1, 2019
9c4d437
[FIX] Lints
hugho-ad May 1, 2019
6229ad1
[REF] i18n: Update translations
hugho-ad May 2, 2019
926d751
[FIX] default_warehouse_from_sale_team: Wrong UoM Reference
Apr 30, 2020
c76ff12
[I18N] default_warehouse_from_sale_team: Update translations terms
CarmenMiranda Jul 15, 2020
0bb05c4
[I18N] default_warehouse_from_sale_team: Typo in translation
CarmenMiranda Jul 16, 2020
32cd6f7
[FIX] default_warehouse_from_sale_team: Default Sales Team Constraint
CarmenMiranda Jul 17, 2020
ca910fc
[FIX] default_warehouse_from_sale_team: Adapt tests to v12
luisg123v Aug 2, 2020
ee0fc77
[IMP] default_warehouse_from_sale_team: Remove nested for on ir_rule
Aug 19, 2020
0b5d977
[FIX] default_warehouse_from_sale_team: Remove unnecessary headers
luisg123v Sep 3, 2020
1011bc4
[MIG] default_warehouse_from_sale_team: Migrate to v13
luisg123v Oct 4, 2020
cd9faa4
[FIX] default_warehouse_from_sale_team: avoid sequence re-call
Oct 30, 2020
6e0dc1f
[FIX] default_warehouse_from_sale_team: CRM Team Read Permission
CarmenMiranda May 31, 2021
faab6a5
[MIG] default_warehouse_from_sale_team: Migrate to 14.0
luisg123v Jul 24, 2021
889987f
[IMP] default_warehouse_from_sale_team: Improving Rules
CarmenMiranda Oct 12, 2021
0611e60
[REF] default_warehouse_from_sale_team: Sequence assignation in v14.0
luisg123v Oct 20, 2021
1552c9f
[IMP] default_warehouse_from_sale_team: Rename field Default Warehouse
luisg123v Oct 23, 2021
6942bf9
[FIX] default_warehouse_from_Sale_team: Don't overwrite team nor ware…
luisg123v Nov 23, 2021
c23ceb2
[FIX] default_warehouse_on_sale_team: typo in model names of mixins
luisg123v Feb 12, 2022
b6f1fd4
[FIX] default_warehouse_from_sale_team: access error when chained rule
luisg123v Feb 22, 2022
806dcb0
[IMP] default_warehouse_from_sale_team: Default journal for vendor bills
luisg123v Feb 28, 2022
703f744
[FIX] default_warehouse_from_sale_team: typo in README
luisg123v Mar 3, 2022
f2b2adf
[FIX] default_warehouse_from_sale_team: Sale Team Constraint Message
CarmenMiranda Mar 9, 2022
b9da0f6
[IMP] default_warehouse_from_sale_team: journal when created by code
luisg123v Mar 10, 2022
cde95ac
[FIX] default_warehouse_from_sale_team: access error on journal name
luisg123v Mar 11, 2022
cc35597
[MIG] default_warehouse_from_sale_team: Migrate to 15.0
rolandojduartem Mar 10, 2022
d938695
[ADD] default_warehouse_from_sale_team: Allow to run procurement in w…
rolandojduartem Mar 9, 2022
42db171
[IMP] default_warehouse_from_sale_team: black, isort, prettier
ajqn9094 Aug 30, 2022
93e740f
[FIX] default_warehouse_from_sale_team: pre-commit-vauxoo error
Jan 23, 2023
d6a701c
[IMP] default_warehouse_from_sale_team: run test after installation
luisg123v Mar 3, 2023
3f4234a
[REF] default_warehouse_from_sale_team: Rename and split files by the…
rolandojduartem Mar 3, 2023
6256780
[REF] default_warehouse_from_sale_team: fix indentation in files
rolandojduartem Mar 3, 2023
72fd926
[REF] default_warehouse_from_sale_team: Change to Command syntax
rolandojduartem Mar 7, 2023
c98b1ec
[REF] default_warehouse_from_sale_team: Remove superfluous false noup…
rolandojduartem Mar 7, 2023
691c318
[MIG] default_warehouse_from_sale_team: Migration to 16.0
rolandojduartem Mar 9, 2023
0ec7067
[IMP] default_warehouse_from_sale_team: Add sale_team_ids to the inva…
rolandojduartem Apr 18, 2023
5f0a5f1
[FIX] default_warehouse_from_sale_team: Avoid return the same record …
R4Alex Jun 1, 2023
35b190d
[I18n] default_warehouse_from_sale_team: autoformat translations
luisg123v Jul 1, 2023
9a64ad0
[FIX] default_warehouse_from_sale_team: update default journal retrieval
CLaurelB Oct 18, 2023
72c7f80
[MIG] default_warehouse_from_sale_team: Migration to 17.0
xmglord Apr 3, 2024
640733b
[FIX] default_warehouse_from_sale_team: Fix case of searching a stock…
keylor2906 Apr 15, 2024
308e692
[IMP] default_warehouse_from_sale_team: hook to fill allowed sales teams
luisg123v Jul 6, 2024
e4c5d33
[IMP] default_warehouse_from_sale_team: make ineritable bypassed rules
luisg123v Mar 17, 2022
c0ea9f0
[FIX] default_warehouse_from_sale_team: remove incorrect record rule
luisg123v Jul 27, 2024
e351a78
[FIX] default_warehouse_from_sale_team: usability for readonly users
luisg123v Sep 5, 2024
ae6c51c
[FIX] default_warehouse_from_sale_team: prevent Sales Team compute on…
CLaurelB Dec 30, 2024
00fc9e2
[FIX] default_warehouse_from_sale_team: validate cache access when no…
CLaurelB Jan 9, 2025
3d888b8
[MIG] default_warehouse_from_sale_team: Migration to 18.0
IrvingReyes Jan 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "0 12 * * 0"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Stale PRs and issues policy
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# General settings.
ascending: true
remove-stale-when-updated: true
# Pull Requests settings.
# 120+30 day stale policy for PRs
# * Except PRs marked as "no stale"
days-before-pr-stale: 120
days-before-pr-close: 30
exempt-pr-labels: "no stale"
stale-pr-label: "stale"
stale-pr-message: >
There hasn't been any activity on this pull request in the past 4 months, so
it has been marked as stale and it will be closed automatically if no
further activity occurs in the next 30 days.

If you want this PR to never become stale, please ask a PSC member to apply
the "no stale" label.
# Issues settings.
# 180+30 day stale policy for open issues
# * Except Issues marked as "no stale"
days-before-issue-stale: 180
days-before-issue-close: 30
exempt-issue-labels: "no stale,needs more information"
stale-issue-label: "stale"
stale-issue-message: >
There hasn't been any activity on this issue in the past 6 months, so it has
been marked as stale and it will be closed automatically if no further
activity occurs in the next 30 days.

If you want this issue to never become stale, please ask a PSC member to
apply the "no stale" label.

# 15+30 day stale policy for issues pending more information
# * Issues that are pending more information
# * Except Issues marked as "no stale"
- name: Needs more information stale issues policy
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ascending: true
only-labels: "needs more information"
exempt-issue-labels: "no stale"
days-before-stale: 15
days-before-close: 30
days-before-pr-stale: -1
days-before-pr-close: -1
remove-stale-when-updated: true
stale-issue-label: "stale"
stale-issue-message: >
This issue needs more information and there hasn't been any activity
recently, so it has been marked as stale and it will be closed automatically
if no further activity occurs in the next 30 days.

If you think this is a mistake, please ask a PSC member to remove the "needs
more information" label.
95 changes: 95 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: tests

on:
pull_request_target:
branches:
- "18.0"
push:
branches:
- "18.0"

env:
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
CI_PROJECT_NAMESPACE: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
CI_PROJECT_NAME: ${{ github.event.pull_request.head.repo.name || github.event.repository.name }}

jobs:
pre-commit-vauxoo:
runs-on: ubuntu-latest
name: pre-commit-vauxoo
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.CI_COMMIT_SHA }}
- name: Cache pre-commit and pip packages
id: cache-pre-commit-pip
uses: actions/cache@v3
with:
path: |
~/.cache/pre-commit
~/.cache/pip
key: cache-pre-commit-pip
- name: Install pre-commit-vauxoo
run: pip install --upgrade pre-commit-vauxoo
- name: Run pre-commit-vauxoo
run: pre-commit-vauxoo
no-dependency-files:
runs-on: ubuntu-latest
name: No dependency files
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.CI_COMMIT_SHA }}
- name: Ensure dependency files don't exist
run: |
for reqfile in requirements.txt oca_dependencies.txt ; do
if [ -f ${reqfile} ] ; then
echo "Please avoid adding requirement files to this repo, because requirements will be installed in all project depending on this one."
echo "If you need them for test to work, you can use test-${reqfile} instead of ${reqfile}"
exit 1
fi
done
build_docker:
runs-on: ubuntu-latest
name: Build Docker and test Odoo
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.CI_COMMIT_SHA }}
persist-credentials: false
- name: Cache pip packages
id: cache-pip-build
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: cache-pip-build
- name: Set ssh keys
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.PRIVATE_DEPLOY_KEY }}"
mkdir -p ~/.ssh/
ssh-keyscan -H git.vauxoo.com >> ~/.ssh/known_hosts
- name: Install dependencies
run: |
pip install -U deployv vxci
sudo apt update
sudo apt install dos2unix
- name: Build image
env:
PRIVATE_DEPLOY_KEY: ${{ secrets.PRIVATE_DEPLOY_KEY }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USER: ${{ secrets.DOCKER_USER }}
ORCHEST_REGISTRY: ${{ secrets.ORCHEST_REGISTRY }}
ORCHEST_TOKEN: ${{ secrets.ORCHEST_TOKEN }}
run: |
source variables.sh
vxci check_keys
vxci build_image --push_image
- name: Test odoo image
run: |
source variables.sh
slugified_branch=$(python -c "from vxci.common import slugify; print(slugify('${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}'))")
source ${slugified_branch}/image_name.env
vxci test_repo --allow_deprecated
87 changes: 87 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

*.DS_Store*

# C extensions
*.so

# Distribution / packaging
.Python
env/
bin/
build/
develop-eggs/
dist/
eggs/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coveragerc
.coverage.*
et
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo

# Pycharm
.idea

# VS Code
.vscode

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# Rope
.ropeproject

# Sphinx documentation
docs/_build/

# Backup files
*~
*.swp

# docker JSON packages
package-lock.json
package.json

# docker node_modules
node_modules/

# pre-commit-vauxoo
.bandit*
.config/
.editorconfig
.eslintrc*
.flake8*
.isort.cfg
.oca_hooks*
.pre-commit*.yaml
.prettierrc.yml
.pylintrc*
bandit*.yaml
doc8.ini
pyproject.toml
Loading