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.
Files changed (49) hide show
  1. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/PKG-INFO +1 -1
  2. odoo-somconnexio-python-client-0.1.47/odoo_somconnexio_python_client/__init__.py +1 -0
  3. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/invoice.py +1 -1
  4. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/partner.py +2 -0
  5. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client.egg-info/PKG-INFO +1 -1
  6. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_invoice.py +9 -9
  7. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_partner.py +1 -0
  8. odoo-somconnexio-python-client-0.1.45/odoo_somconnexio_python_client/__init__.py +0 -1
  9. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/LICENSE +0 -0
  10. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/README.md +0 -0
  11. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/client.py +0 -0
  12. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/exceptions.py +0 -0
  13. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/helpers.py +0 -0
  14. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/__init__.py +0 -0
  15. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/address.py +0 -0
  16. {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
  17. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/contract.py +0 -0
  18. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/coop_agreement.py +0 -0
  19. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/crm_lead.py +0 -0
  20. {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
  21. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/discovery_channel.py +0 -0
  22. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/fiber_contracts.py +0 -0
  23. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/knowledge.py +0 -0
  24. {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
  25. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/odoo_paging.py +0 -0
  26. {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
  27. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/product_catalog.py +0 -0
  28. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/provider.py +0 -0
  29. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/sponsees.py +0 -0
  30. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client/resources/subscription_request.py +0 -0
  31. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client.egg-info/SOURCES.txt +0 -0
  32. {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
  33. {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
  34. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/odoo_somconnexio_python_client.egg-info/requires.txt +0 -0
  35. {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
  36. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/setup.cfg +0 -0
  37. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/setup.py +0 -0
  38. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/__init__.py +0 -0
  39. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_address.py +0 -0
  40. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_contract.py +0 -0
  41. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_coop_agreement.py +0 -0
  42. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_crm_lead.py +0 -0
  43. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_discovery_channel.py +0 -0
  44. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_fiber_contracts.py +0 -0
  45. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_knowledge.py +0 -0
  46. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_one_shot_catalog.py +0 -0
  47. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_product_catalog.py +0 -0
  48. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_providers.py +0 -0
  49. {odoo-somconnexio-python-client-0.1.45 → odoo-somconnexio-python-client-0.1.47}/tests/resources/test_subscription_request.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-somconnexio-python-client
3
- Version: 0.1.45
3
+ Version: 0.1.47
4
4
  Summary: Python wrapper for SomConnexio's Odoo (using REST API)
5
5
  Home-page: https://gitlab.com/coopdevs/odoo-somconnexio-python-client
6
6
  Author: Coopdevs
@@ -5,7 +5,7 @@ from ..exceptions import ResourceNotFound
5
5
  default_offset = 0
6
6
  default_limit = 500
7
7
  default_sortOrder = "DESCENDENT"
8
- default_sortBy = "date_invoice"
8
+ default_sortBy = "invoice_date"
9
9
 
10
10
 
11
11
  class PagingInvoices:
@@ -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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-somconnexio-python-client
3
- Version: 0.1.45
3
+ Version: 0.1.47
4
4
  Summary: Python wrapper for SomConnexio's Odoo (using REST API)
5
5
  Home-page: https://gitlab.com/coopdevs/odoo-somconnexio-python-client
6
6
  Author: Coopdevs
@@ -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(9)
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 == "date_invoice"
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 == 9
101
- assert invoice.name == "SO2024-0001"
102
- assert invoice.date == "2024-07-24"
103
- assert invoice.total_amount == 2.5
104
- assert invoice.tax_amount == 0.5
105
- assert invoice.base_amount == 2.0
106
- assert invoice.status == "paid"
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):