odoo-somconnexio-python-client 0.1.45__tar.gz → 0.1.47__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.
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/PKG-INFO +1 -1
- odoo-somconnexio-python-client-0.1.47/odoo_somconnexio_python_client/__init__.py +1 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/invoice.py +1 -1
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/partner.py +2 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client.egg-info/PKG-INFO +1 -1
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_invoice.py +9 -9
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_partner.py +1 -0
- odoo-somconnexio-python-client-0.1.45/odoo_somconnexio_python_client/__init__.py +0 -1
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/LICENSE +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/README.md +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/client.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/exceptions.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/helpers.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/__init__.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/address.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/broadband_isp_info.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/contract.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/coop_agreement.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/crm_lead.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/crm_lead_line.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/discovery_channel.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/fiber_contracts.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/knowledge.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/mobile_isp_info.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/odoo_paging.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/one_shot_catalog.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/product_catalog.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/provider.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/sponsees.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/subscription_request.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client.egg-info/SOURCES.txt +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client.egg-info/dependency_links.txt +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client.egg-info/not-zip-safe +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client.egg-info/requires.txt +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client.egg-info/top_level.txt +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/setup.cfg +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/setup.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/__init__.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_address.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_contract.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_coop_agreement.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_crm_lead.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_discovery_channel.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_fiber_contracts.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_knowledge.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_one_shot_catalog.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_product_catalog.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_providers.py +0 -0
- {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_subscription_request.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.47"
|
|
@@ -30,6 +30,7 @@ class Partner:
|
|
|
30
30
|
member,
|
|
31
31
|
addresses,
|
|
32
32
|
banned_actions,
|
|
33
|
+
is_company,
|
|
33
34
|
**kwargs
|
|
34
35
|
):
|
|
35
36
|
self.id = id
|
|
@@ -53,6 +54,7 @@ class Partner:
|
|
|
53
54
|
for address in addresses:
|
|
54
55
|
self.addresses.append(Address(**address))
|
|
55
56
|
self.banned_actions = banned_actions
|
|
57
|
+
self.is_company = is_company
|
|
56
58
|
|
|
57
59
|
@classmethod
|
|
58
60
|
def get(cls, ref):
|
|
@@ -16,7 +16,7 @@ class InvoiceTests(unittest.TestCase):
|
|
|
16
16
|
|
|
17
17
|
@pytest.mark.vcr()
|
|
18
18
|
def test_get_invoice_by_id(self):
|
|
19
|
-
invoice = Invoice.get_by_id(
|
|
19
|
+
invoice = Invoice.get_by_id(31)
|
|
20
20
|
self._common_invoice_asserts(invoice)
|
|
21
21
|
assert invoice.pdf
|
|
22
22
|
|
|
@@ -34,7 +34,7 @@ class InvoiceTests(unittest.TestCase):
|
|
|
34
34
|
|
|
35
35
|
paging = paging_invoices.paging
|
|
36
36
|
self._common_paging_asserts(paging)
|
|
37
|
-
assert paging.sortBy == "
|
|
37
|
+
assert paging.sortBy == "invoice_date"
|
|
38
38
|
assert paging.sortOrder == "DESCENDENT"
|
|
39
39
|
|
|
40
40
|
@pytest.mark.vcr()
|
|
@@ -97,13 +97,13 @@ class InvoiceTests(unittest.TestCase):
|
|
|
97
97
|
)
|
|
98
98
|
|
|
99
99
|
def _common_invoice_asserts(self, invoice):
|
|
100
|
-
assert invoice.id ==
|
|
101
|
-
assert invoice.name == "
|
|
102
|
-
assert invoice.date == "
|
|
103
|
-
assert invoice.total_amount ==
|
|
104
|
-
assert invoice.tax_amount == 0
|
|
105
|
-
assert invoice.base_amount ==
|
|
106
|
-
assert invoice.status == "
|
|
100
|
+
assert invoice.id == 31
|
|
101
|
+
assert invoice.name == "SO2025-0001"
|
|
102
|
+
assert invoice.date == "2025-05-01"
|
|
103
|
+
assert invoice.total_amount == 121.0
|
|
104
|
+
assert invoice.tax_amount == 21.0
|
|
105
|
+
assert invoice.base_amount == 100.0
|
|
106
|
+
assert invoice.status == "posted"
|
|
107
107
|
|
|
108
108
|
def _common_paging_asserts(self, paging):
|
|
109
109
|
assert paging.limit == 1
|
|
@@ -33,6 +33,7 @@ class PartnerTests(unittest.TestCase):
|
|
|
33
33
|
assert "mobile_one_shot" in partner.banned_actions
|
|
34
34
|
assert "mobile_tariff_change" in partner.banned_actions
|
|
35
35
|
assert "new_service" in partner.banned_actions
|
|
36
|
+
self.assertFalse(partner.is_company)
|
|
36
37
|
|
|
37
38
|
@pytest.mark.vcr()
|
|
38
39
|
def test_check_sponsor_ok(self):
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.45"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|