Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • coopdevs/som-connexio/odoo/odoo-somconnexio-python-client
1 result
Show changes
Commits on Source (5)
......@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.1.25] - 2022-07-06
### Added
* Add kwargs in constructor for models: address, broadband_isp, crm_lead, crm_lead_line, discoveryChannel, mobile_isp_info,product_catalog, and provider. [#42](https://git.coopdevs.org/coopdevs/som-connexio/odoo-somconnexio-python-client/-/merge_requests/42)
## [0.1.24] - 2022-06-30
### Added
* Add Sponsees model and methods to search them in Partner (by ref). [#35](https://git.coopdevs.org/coopdevs/som-connexio/odoo-somconnexio-python-client/-/merge_requests/35)
......
__version__ = "0.1.24"
__version__ = "0.1.25"
......@@ -15,7 +15,7 @@ class Address:
"""
def __init__(
self, street="", zip_code="", city="", state="", country="", street2=None
self, street="", zip_code="", city="", state="", country="", street2=None, **kwargs
):
self.street = street
self.street2 = street2
......
......@@ -16,6 +16,7 @@ class BroadbandISPInfo:
change_address="no",
delivery_address=None,
invoice_address=None,
**kwargs
):
self.phone_number = phone_number
self.type = type
......
......@@ -13,6 +13,7 @@ class CRMLead:
lead_line_ids=None,
subscription_request_id=None,
partner_id=None,
**kwargs
):
lead_lines = []
if lead_line_ids:
......
......@@ -3,7 +3,7 @@ from odoo_somconnexio_python_client.resources.mobile_isp_info import MobileISPIn
class CRMLeadLine:
def __init__(self, product_code, broadband_isp_info=None, mobile_isp_info=None):
def __init__(self, product_code, broadband_isp_info=None, mobile_isp_info=None, **kwargs):
self.product_code = product_code
if broadband_isp_info:
self.broadband_isp_info = BroadbandISPInfo(**broadband_isp_info)
......
......@@ -4,7 +4,7 @@ from odoo_somconnexio_python_client.client import Client
class DiscoveryChannel:
_url_path = "/discovery-channel"
def __init__(self, id, name):
def __init__(self, id, name, **kwargs):
self.id = id
self.name = name
......
......@@ -15,6 +15,7 @@ class MobileISPInfo:
previous_contract_type="no",
delivery_address=None,
invoice_address=None,
**kwargs
):
self.phone_number = phone_number
self.type = type
......
......@@ -3,7 +3,16 @@ from odoo_somconnexio_python_client.client import Client
class Product:
def __init__(
self, name, code, price, category="", minutes="", data="", bandwidth="", available_for=[]
self,
name,
code,
price,
category="",
minutes="",
data="",
bandwidth="",
available_for=[],
**kwargs
):
self.code = code
self.name = name
......
......@@ -4,7 +4,7 @@ from odoo_somconnexio_python_client.client import Client
class Provider:
_url_path = "/provider"
def __init__(self, id, name):
def __init__(self, id, name, **kwargs):
self.id = id
self.name = name
......