Skip to content

Commit b0a2660

Browse files
committed
Initial Commit - Base migrations
Created migrators for: Languages, Partners, Products, Orders, Projects, Timesheets, Invoices, Payments. Support Odoo jsonrpc and json2 if odoo > 20
0 parents  commit b0a2660

22 files changed

Lines changed: 2555 additions & 0 deletions
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
name: Build distribution 📦
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v6
12+
with:
13+
persist-credentials: false
14+
- name: Set up Python
15+
uses: actions/setup-python@v6
16+
with:
17+
python-version: "3.x"
18+
- name: Install pypa/build
19+
run: >-
20+
python3 -m
21+
pip install
22+
build
23+
--user
24+
- name: Build a binary wheel and a source tarball
25+
run: python3 -m build
26+
- name: Store the distribution packages
27+
uses: actions/upload-artifact@v5
28+
with:
29+
name: python-package-distributions
30+
path: dist/
31+
32+
publish-to-pypi:
33+
34+
name: >-
35+
Publish Python 🐍 distribution 📦 to PyPI
36+
if: startsWith(github.ref, 'refs/tags/')
37+
needs:
38+
- build
39+
runs-on: ubuntu-latest
40+
environment:
41+
name: pypi
42+
url: https://pypi.org/p/python-odoo-migrator
43+
permissions:
44+
id-token: write
45+
46+
steps:
47+
- name: Download all the dists
48+
uses: actions/download-artifact@v6
49+
with:
50+
name: python-package-distributions
51+
path: dist/
52+
- name: Publish distribution 📦 to PyPI
53+
uses: pypa/gh-action-pypi-publish@release/v1
54+
55+
publish-to-testpypi:
56+
name: Publish Python 🐍 distribution 📦 to TestPyPI
57+
if: startsWith(github.ref, 'refs/heads/release/')
58+
needs:
59+
- build
60+
runs-on: ubuntu-latest
61+
62+
environment:
63+
name: testpypi
64+
url: https://test.pypi.org/p/python-odoo-migrator
65+
66+
permissions:
67+
id-token: write
68+
69+
steps:
70+
- name: Download all the dists
71+
uses: actions/download-artifact@v6
72+
with:
73+
name: python-package-distributions
74+
path: dist/
75+
- name: Publish distribution 📦 to TestPyPI
76+
uses: pypa/gh-action-pypi-publish@release/v1
77+
with:
78+
repository-url: https://test.pypi.org/legacy/

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.*
2+
!.gitignore
3+
!.gitkeep
4+
!.github
5+
!.mailmap
6+
!.weblate.json
7+
# compiled python files
8+
*.py[co]
9+
__pycache__/
10+
# setup.py egg_info
11+
*.egg-info
12+
# emacs backup files
13+
*~
14+
# hg stuff
15+
*.orig
16+
*.db
17+
18+
config.json
19+
modelspec.json
20+
21+
### macOS ###
22+
*.DS_Store
23+
.AppleDouble
24+
.LSOverride
25+
26+
# various virtualenv
27+
/bin/
28+
/build/
29+
/dist/
30+
/include/
31+
/lib/
32+
/man/
33+
/share/
34+
/src/

LICENSE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2025 NTBIES srl.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)