Skip to content
Snippets Groups Projects
Commit b889efed authored by Daniel Palomar's avatar Daniel Palomar
Browse files

Merge branch 'feature/add-coop_candidate-bool-to-partner-resource' into 'master'

Add coop_candidate to Partner resource

See merge request coopdevs/odoo-somconnexio-python-client!10
parents a5d5dc8b 5b25f0b2
No related branches found
No related tags found
1 merge request!10Add coop_candidate to Partner resource
Pipeline #4655 passed
......@@ -5,6 +5,9 @@ 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]
### Added
* Set coop_candidate field to the Partner resource. [#10](https://gitlab.com/coopdevs/odoo-somconnexio-python-client/-/merge_requests/10)
## [0.1.8]
### Added
* Send the different invoice address with the ISPInfo. [#6](https://gitlab.com/coopdevs/odoo-somconnexio-python-client/-/merge_requests/6) and [#9](https://gitlab.com/coopdevs/odoo-somconnexio-python-client/-/merge_requests/9)
......
......@@ -24,6 +24,7 @@ class Partner:
cooperator_end_date,
coop_agreement_code,
sponsor_id,
coop_candidate,
**kwargs
):
self.id = id
......@@ -41,6 +42,7 @@ class Partner:
self.cooperator_end_date = cooperator_end_date
self.sponsor_id = sponsor_id
self.coop_agreement_code = coop_agreement_code
self.coop_candidate = coop_candidate
@classmethod
def get(cls, ref):
......
......@@ -18,27 +18,25 @@ interactions:
body:
string: !!python/unicode '{"id": 52, "name": "Felip Dara", "firstname": "Felip",
"lastname": "Dara", "display_name": "Dara", "ref": "1234", "lang": "en_US",
"vat": "55642302N", "type": "representative", "street": "Carrer del Penal,
2", "street2": "", "zip": "17855", "city": "Oix", "state": {"id": 436, "name":
"Girona (Gerona)"}, "country": {"id": 68, "name": "Spain"}, "email": "felipdata@demo.net",
"phone": "", "mobile": "", "birthdate_date": "", "cooperator_register_number":
855, "cooperator_end_date": "", "sponsor_id": 0, "coop_agreement_code": ""}'
"vat": "ES55642302N", "type": "representative", "email": "felipdata@demo.net",
"phone": "", "mobile": "", "cooperator_register_number": 855, "cooperator_end_date":
"", "sponsor_id": 0, "coop_agreement_code": "", "coop_candidate": false}'
headers:
access-control-allow-methods:
- GET
access-control-allow-origin:
- None
content-length:
- '530'
- '367'
content-type:
- application/json
date:
- Fri, 11 Dec 2020 08:12:47 GMT
- Mon, 04 Jan 2021 16:28:53 GMT
server:
- Werkzeug/0.11.15 Python/3.7.7
set-cookie:
- session_id=1b49315fbd9340a378bb5cb9b46d1902696d7e3c; Expires=Thu, 11-Mar-2021
08:12:47 GMT; Max-Age=7776000; HttpOnly; Path=/
- session_id=7ba60b1c2193ddd342f2ee7a69f3b63c9f61a29d; Expires=Sun, 04-Apr-2021
16:28:53 GMT; Max-Age=7776000; HttpOnly; Path=/
status:
code: 200
message: OK
......
......@@ -18,27 +18,25 @@ interactions:
body:
string: !!python/unicode '{"id": 52, "name": "Felip Dara", "firstname": "Felip",
"lastname": "Dara", "display_name": "Dara", "ref": "1234", "lang": "en_US",
"vat": "55642302N", "type": "representative", "street": "Carrer del Penal,
2", "street2": "", "zip": "17855", "city": "Oix", "state": {"id": 436, "name":
"Girona (Gerona)"}, "country": {"id": 68, "name": "Spain"}, "email": "felipdata@demo.net",
"phone": "", "mobile": "", "birthdate_date": "", "cooperator_register_number":
855, "cooperator_end_date": "", "sponsor_id": 0, "coop_agreement_code": ""}'
"vat": "ES55642302N", "type": "representative", "email": "felipdata@demo.net",
"phone": "", "mobile": "", "cooperator_register_number": 855, "cooperator_end_date":
"", "sponsor_id": 0, "coop_agreement_code": "", "coop_candidate": false}'
headers:
access-control-allow-methods:
- GET
access-control-allow-origin:
- None
content-length:
- '530'
- '367'
content-type:
- application/json
date:
- Fri, 11 Dec 2020 08:12:47 GMT
- Mon, 04 Jan 2021 16:28:53 GMT
server:
- Werkzeug/0.11.15 Python/3.7.7
set-cookie:
- session_id=fd69772c5d3e405f410bdbe2daa3a666f4697710; Expires=Thu, 11-Mar-2021
08:12:47 GMT; Max-Age=7776000; HttpOnly; Path=/
- session_id=9b3a40b91b0528bdf1c8199ffb03c9420b949125; Expires=Sun, 04-Apr-2021
16:28:53 GMT; Max-Age=7776000; HttpOnly; Path=/
status:
code: 200
message: OK
......
......@@ -24,7 +24,7 @@ interactions:
content-type:
- application/json
date:
- Fri, 11 Dec 2020 08:12:47 GMT
- Mon, 04 Jan 2021 16:28:53 GMT
server:
- Werkzeug/0.11.15 Python/3.7.7
status:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment