PyOdoo 0.7.0__tar.gz → 0.7.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/PKG-INFO +4 -2
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/PyOdoo.egg-info/PKG-INFO +4 -2
- pyodoo-0.7.1/PyOdoo.egg-info/requires.txt +2 -0
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/README.md +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/__init__.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/active_status_choice.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/boolean_operator.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/compare_type.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/constants.py +3 -3
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/filter.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/message_subtype.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/samples/awaitable.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/samples/contacts.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/samples/contacts_async.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/samples/python_code.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/samples/sql_excel_query.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/v12/__init__.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/v12/api.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/v12/model.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/v12/python_code.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/v12/sql_excel_query.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/setup.cfg +2 -0
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/tests/test_compare_types.py +23 -23
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/tests/test_contacts.py +3 -3
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/tests/test_python_code.py +1 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/tests/test_sql_excel_query.py +1 -1
- PyOdoo-0.7.0/PyOdoo.egg-info/requires.txt +0 -1
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/LICENSE +0 -0
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/PyOdoo.egg-info/SOURCES.txt +0 -0
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/PyOdoo.egg-info/dependency_links.txt +0 -0
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/PyOdoo.egg-info/top_level.txt +0 -0
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyodoo/samples/__init__.py +0 -0
- {PyOdoo-0.7.0 → pyodoo-0.7.1}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyOdoo
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: API for Odoo
|
|
5
5
|
Home-page: http://www.muflone.com/pyodoo/
|
|
6
6
|
Author: Fabio Castelli
|
|
@@ -14,10 +14,12 @@ Classifier: Programming Language :: Python :: 3
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
18
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
18
19
|
Description-Content-Type: text/markdown
|
|
19
20
|
License-File: LICENSE
|
|
20
21
|
Requires-Dist: xlrd==2.0.1
|
|
22
|
+
Requires-Dist: requests==2.32.3
|
|
21
23
|
|
|
22
24
|
# PyOdoo
|
|
23
25
|
|
|
@@ -28,7 +30,7 @@ Requires-Dist: xlrd==2.0.1
|
|
|
28
30
|
|
|
29
31
|
**Description:** API for Odoo
|
|
30
32
|
|
|
31
|
-
**Copyright:** 2021-
|
|
33
|
+
**Copyright:** 2021-2024 Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
32
34
|
|
|
33
35
|
**License:** GPL-3+
|
|
34
36
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyOdoo
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: API for Odoo
|
|
5
5
|
Home-page: http://www.muflone.com/pyodoo/
|
|
6
6
|
Author: Fabio Castelli
|
|
@@ -14,10 +14,12 @@ Classifier: Programming Language :: Python :: 3
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
18
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
18
19
|
Description-Content-Type: text/markdown
|
|
19
20
|
License-File: LICENSE
|
|
20
21
|
Requires-Dist: xlrd==2.0.1
|
|
22
|
+
Requires-Dist: requests==2.32.3
|
|
21
23
|
|
|
22
24
|
# PyOdoo
|
|
23
25
|
|
|
@@ -28,7 +30,7 @@ Requires-Dist: xlrd==2.0.1
|
|
|
28
30
|
|
|
29
31
|
**Description:** API for Odoo
|
|
30
32
|
|
|
31
|
-
**Copyright:** 2021-
|
|
33
|
+
**Copyright:** 2021-2024 Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
32
34
|
|
|
33
35
|
**License:** GPL-3+
|
|
34
36
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
##
|
|
20
20
|
|
|
21
21
|
APP_NAME = 'PyOdoo'
|
|
22
|
-
APP_VERSION = '0.7.
|
|
22
|
+
APP_VERSION = '0.7.1'
|
|
23
23
|
APP_DESCRIPTION = 'API for Odoo'
|
|
24
24
|
APP_DOMAIN = 'pyodoo'
|
|
25
25
|
APP_ID = f'{APP_DOMAIN}.muflone.com'
|
|
26
26
|
APP_AUTHOR = 'Fabio Castelli'
|
|
27
27
|
APP_AUTHOR_EMAIL = 'muflone@muflone.com'
|
|
28
|
-
APP_COPYRIGHT = f'Copyright 2021-
|
|
28
|
+
APP_COPYRIGHT = f'Copyright 2021-2024 {APP_AUTHOR}'
|
|
29
29
|
URL_AUTHOR = 'http://www.muflone.com/'
|
|
30
30
|
URL_APPLICATION = f'{URL_AUTHOR}{APP_DOMAIN}/'
|
|
31
31
|
URL_SOURCES = f'https://github.com/muflone/{APP_DOMAIN}/'
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -18,6 +18,7 @@ classifiers =
|
|
|
18
18
|
Programming Language :: Python :: 3.9
|
|
19
19
|
Programming Language :: Python :: 3.10
|
|
20
20
|
Programming Language :: Python :: 3.11
|
|
21
|
+
Programming Language :: Python :: 3.12
|
|
21
22
|
Topic :: Software Development :: Libraries :: Python Modules
|
|
22
23
|
|
|
23
24
|
[options]
|
|
@@ -27,6 +28,7 @@ packages =
|
|
|
27
28
|
include_package_data = False
|
|
28
29
|
install_requires =
|
|
29
30
|
xlrd==2.0.1
|
|
31
|
+
requests==2.32.3
|
|
30
32
|
|
|
31
33
|
[options.package_data]
|
|
32
34
|
pyodoo = samples/*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -47,7 +47,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
47
47
|
# Check if the results list has exactly one item
|
|
48
48
|
self.assertEqual(len(results), 1)
|
|
49
49
|
# Check if the results list contains the Mozzarella Sandwich
|
|
50
|
-
self.assertIn(
|
|
50
|
+
self.assertIn(84, results)
|
|
51
51
|
|
|
52
52
|
def test_02_filter_not_equal(self) -> None:
|
|
53
53
|
"""
|
|
@@ -65,7 +65,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
65
65
|
# Check if the results list has exactly three items
|
|
66
66
|
self.assertEqual(len(results), 3)
|
|
67
67
|
# Check if the results list doesn't contain the Mozzarella Sandwich
|
|
68
|
-
self.assertNotIn(
|
|
68
|
+
self.assertNotIn(84, results)
|
|
69
69
|
|
|
70
70
|
def test_03_filter_greater(self) -> None:
|
|
71
71
|
"""
|
|
@@ -83,7 +83,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
83
83
|
# Check if the results list has exactly one item
|
|
84
84
|
self.assertEqual(len(results), 1)
|
|
85
85
|
# Check if the results list doesn't contain the Mozzarella Sandwich
|
|
86
|
-
self.assertNotIn(
|
|
86
|
+
self.assertNotIn(84, results)
|
|
87
87
|
|
|
88
88
|
def test_04_filter_greater_equal(self) -> None:
|
|
89
89
|
"""
|
|
@@ -101,7 +101,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
101
101
|
# Check if the results list has exactly two items
|
|
102
102
|
self.assertEqual(len(results), 2)
|
|
103
103
|
# Check if the results list contains the Mozzarella Sandwich
|
|
104
|
-
self.assertIn(
|
|
104
|
+
self.assertIn(84, results)
|
|
105
105
|
|
|
106
106
|
def test_05_filter_lower(self) -> None:
|
|
107
107
|
"""
|
|
@@ -119,7 +119,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
119
119
|
# Check if the results list has exactly two items
|
|
120
120
|
self.assertEqual(len(results), 2)
|
|
121
121
|
# Check if the results list doesn't contain the Mozzarella Sandwich
|
|
122
|
-
self.assertNotIn(
|
|
122
|
+
self.assertNotIn(84, results)
|
|
123
123
|
|
|
124
124
|
def test_06_filter_lower_equal(self) -> None:
|
|
125
125
|
"""
|
|
@@ -137,7 +137,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
137
137
|
# Check if the results list has exactly three items
|
|
138
138
|
self.assertEqual(len(results), 3)
|
|
139
139
|
# Check if the results list contains the Mozzarella Sandwich
|
|
140
|
-
self.assertIn(
|
|
140
|
+
self.assertIn(84, results)
|
|
141
141
|
|
|
142
142
|
def test_07_filter_in(self) -> None:
|
|
143
143
|
"""
|
|
@@ -155,9 +155,9 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
155
155
|
# Check if the results list has exactly two items
|
|
156
156
|
self.assertEqual(len(results), 2)
|
|
157
157
|
# Check if the results list contains the Club Sandwich
|
|
158
|
-
self.assertIn(
|
|
158
|
+
self.assertIn(85, results)
|
|
159
159
|
# Check if the results list contains the Mozzarella Sandwich
|
|
160
|
-
self.assertIn(
|
|
160
|
+
self.assertIn(84, results)
|
|
161
161
|
|
|
162
162
|
def test_08_filter_not_in(self) -> None:
|
|
163
163
|
"""
|
|
@@ -175,9 +175,9 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
175
175
|
# Check if the results list has exactly two items
|
|
176
176
|
self.assertEqual(len(results), 2)
|
|
177
177
|
# Check if the results list doesn't contain the Club Sandwich
|
|
178
|
-
self.assertNotIn(
|
|
178
|
+
self.assertNotIn(85, results)
|
|
179
179
|
# Check if the results list doesn't contain the Mozzarella Sandwich
|
|
180
|
-
self.assertNotIn(
|
|
180
|
+
self.assertNotIn(84, results)
|
|
181
181
|
|
|
182
182
|
def test_09_filter_contains(self) -> None:
|
|
183
183
|
"""
|
|
@@ -192,7 +192,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
192
192
|
# Check if the results list has exactly four items
|
|
193
193
|
self.assertEqual(len(results), 4)
|
|
194
194
|
# Check if the results list contains the Mozzarella Sandwich
|
|
195
|
-
self.assertIn(
|
|
195
|
+
self.assertIn(84, results)
|
|
196
196
|
|
|
197
197
|
def test_10_filter_contains_not(self) -> None:
|
|
198
198
|
"""
|
|
@@ -210,7 +210,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
210
210
|
# Check if the results list has exactly three items
|
|
211
211
|
self.assertEqual(len(results), 3)
|
|
212
212
|
# Check if the results list doesn't contain the Mozzarella Sandwich
|
|
213
|
-
self.assertNotIn(
|
|
213
|
+
self.assertNotIn(84, results)
|
|
214
214
|
|
|
215
215
|
def test_11_filter_not_contains(self) -> None:
|
|
216
216
|
"""
|
|
@@ -228,7 +228,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
228
228
|
# Check if the results list has exactly three items
|
|
229
229
|
self.assertEqual(len(results), 3)
|
|
230
230
|
# Check if the results list doesn't contain the Mozzarella Sandwich
|
|
231
|
-
self.assertNotIn(
|
|
231
|
+
self.assertNotIn(84, results)
|
|
232
232
|
|
|
233
233
|
def test_12_filter_like(self) -> None:
|
|
234
234
|
"""
|
|
@@ -246,7 +246,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
246
246
|
# Check if the results list has exactly one item
|
|
247
247
|
self.assertEqual(len(results), 1)
|
|
248
248
|
# Check if the results list contains the Mozzarella Sandwich
|
|
249
|
-
self.assertIn(
|
|
249
|
+
self.assertIn(84, results)
|
|
250
250
|
|
|
251
251
|
def test_13_filter_not_like(self) -> None:
|
|
252
252
|
"""
|
|
@@ -264,7 +264,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
264
264
|
# Check if the results list has exactly three items
|
|
265
265
|
self.assertEqual(len(results), 3)
|
|
266
266
|
# Check if the results list doesn't contain the Mozzarella Sandwich
|
|
267
|
-
self.assertNotIn(
|
|
267
|
+
self.assertNotIn(84, results)
|
|
268
268
|
|
|
269
269
|
def test_14_filter_ilike(self) -> None:
|
|
270
270
|
"""
|
|
@@ -282,7 +282,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
282
282
|
# Check if the results list has exactly one item
|
|
283
283
|
self.assertEqual(len(results), 1)
|
|
284
284
|
# Check if the results list contains the Mozzarella Sandwich
|
|
285
|
-
self.assertIn(
|
|
285
|
+
self.assertIn(84, results)
|
|
286
286
|
|
|
287
287
|
def test_15_filter_not_ilike(self) -> None:
|
|
288
288
|
"""
|
|
@@ -300,7 +300,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
300
300
|
# Check if the results list has exactly three items
|
|
301
301
|
self.assertEqual(len(results), 3)
|
|
302
302
|
# Check if the results list doesn't contain the Mozzarella Sandwich
|
|
303
|
-
self.assertNotIn(
|
|
303
|
+
self.assertNotIn(84, results)
|
|
304
304
|
|
|
305
305
|
def test_16_filter_raw_like(self) -> None:
|
|
306
306
|
"""
|
|
@@ -318,7 +318,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
318
318
|
# Check if the results list has exactly one item
|
|
319
319
|
self.assertEqual(len(results), 1)
|
|
320
320
|
# Check if the results list contains the Mozzarella Sandwich
|
|
321
|
-
self.assertIn(
|
|
321
|
+
self.assertIn(84, results)
|
|
322
322
|
|
|
323
323
|
def test_17_filter_raw_ilike(self) -> None:
|
|
324
324
|
"""
|
|
@@ -336,7 +336,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
336
336
|
# Check if the results list has exactly one item
|
|
337
337
|
self.assertEqual(len(results), 1)
|
|
338
338
|
# Check if the results list contains the Mozzarella Sandwich
|
|
339
|
-
self.assertIn(
|
|
339
|
+
self.assertIn(84, results)
|
|
340
340
|
|
|
341
341
|
def test_18_filter_unset_or_equal(self) -> None:
|
|
342
342
|
"""
|
|
@@ -354,7 +354,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
354
354
|
# Check if the results list has exactly four items
|
|
355
355
|
self.assertEqual(len(results), 4)
|
|
356
356
|
# Check if the results list contains the Mozzarella Sandwich
|
|
357
|
-
self.assertIn(
|
|
357
|
+
self.assertIn(84, results)
|
|
358
358
|
|
|
359
359
|
def test_19_filter_child_of(self) -> None:
|
|
360
360
|
"""
|
|
@@ -372,7 +372,7 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
372
372
|
# Check if the results list has exactly four items
|
|
373
373
|
self.assertEqual(len(results), 4)
|
|
374
374
|
# Check if the results list contains the Mozzarella Sandwich
|
|
375
|
-
self.assertIn(
|
|
375
|
+
self.assertIn(84, results)
|
|
376
376
|
|
|
377
377
|
def test_20_filter_parent_of(self) -> None:
|
|
378
378
|
"""
|
|
@@ -390,4 +390,4 @@ class TestCaseCompareTypes(unittest.TestCase):
|
|
|
390
390
|
# Check if the results list has exactly four items
|
|
391
391
|
self.assertEqual(len(results), 4)
|
|
392
392
|
# Check if the results list contains the Mozzarella Sandwich
|
|
393
|
-
self.assertIn(
|
|
393
|
+
self.assertIn(84, results)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -174,7 +174,7 @@ class TestCaseContacts(unittest.TestCase):
|
|
|
174
174
|
self.assertEqual(results[0]['id'], 2)
|
|
175
175
|
self.assertEqual(results[0]['name'], 'OdooBot')
|
|
176
176
|
self.assertEqual(results[0]['type'], 'contact')
|
|
177
|
-
self.
|
|
177
|
+
self.assertEqual(results[0]['street'], False)
|
|
178
178
|
|
|
179
179
|
def test_10_find_by_id_both_active(self) -> None:
|
|
180
180
|
"""
|
|
@@ -193,7 +193,7 @@ class TestCaseContacts(unittest.TestCase):
|
|
|
193
193
|
for item in results:
|
|
194
194
|
self.assertIn(item['id'], (2, 11))
|
|
195
195
|
self.assertEqual(item['type'], 'contact')
|
|
196
|
-
self.assertGreater(len(item['
|
|
196
|
+
self.assertGreater(len(item['name']), 0)
|
|
197
197
|
|
|
198
198
|
def test_11_find_by_id_multiple(self) -> None:
|
|
199
199
|
"""
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Project: PyOdoo
|
|
3
3
|
# Description: API for Odoo
|
|
4
4
|
# Author: Fabio Castelli (Muflone) <muflone@muflone.com>
|
|
5
|
-
# Copyright: 2021-
|
|
5
|
+
# Copyright: 2021-2024 Fabio Castelli
|
|
6
6
|
# License: GPL-3+
|
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
xlrd==2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|