Skip to content

Commit

Permalink
Merge remote-tracking branch 'nl66278/11.0-backport-kvk-fix' into 11.…
Browse files Browse the repository at this point in the history
…0-use-github-actions
  • Loading branch information
NL66278 committed May 3, 2023
2 parents debf177 + 278e8f7 commit 9c7c088
Show file tree
Hide file tree
Showing 8 changed files with 196 additions and 283 deletions.
8 changes: 4 additions & 4 deletions l10n_nl_kvk/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ Integration with Kamer van Koophandel
:target: https://runbot.odoo-community.org/runbot/176/11.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
|badge1| |badge2| |badge3| |badge4| |badge5|

This module integrates Odoo with the official Dutch chamber of commerce
`Kamer van Koophandel (KvK) API search <https://www.kvk.nl>`_.
`Kamer van Koophandel (KvK) Zoeken API <https://www.kvk.nl>`_.

The KvK API service allows lookups by the *Chamber Of Commerce Registration Number*
(KvK field) providing company name, street name, postcode and city. The lookups will be
(KvK field) providing company name, street name and city. The lookups will be
triggered in the partner form views by entering a KvK field and pressing its lookup button.
The lookup works also on the company name field, providing Kvk number, street name, postcode
and city.

The KvK field is already provided by the OCA module `partner_coc`. That field is visible when
the partner is a Company (flag *is_company* = true).

More info about the lookup service here: https://developers.kvk.nl/documentation
More info about the lookup service here: https://developers.kvk.nl/apis/zoeken

**Table of contents**

Expand Down
44 changes: 22 additions & 22 deletions l10n_nl_kvk/data/api_kvk_nl_bundle.crt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
-----BEGIN CERTIFICATE-----
MIIG8TCCBNmgAwIBAgIUPKycY2I8JUq855Fqu47uMGgDNJkwDQYJKoZIhvcNAQEL
MIIG8TCCBNmgAwIBAgIUG3ZRWvKOeTV1mnRrABAdXxPbQOowDQYJKoZIhvcNAQEL
BQAwgYAxCzAJBgNVBAYTAk5MMSAwHgYDVQQKDBdRdW9WYWRpcyBUcnVzdGxpbmsg
Qi5WLjEXMBUGA1UEYQwOTlRSTkwtMzAyMzc0NT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
3ldOJbcWmCNjb/v3TjLSExHP8B/Jc62oFVVUk5eAWZxrQKb5QCN5HagxExhUfQWO
mfZDqUs=
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
MIIG/DCCBOSgAwIBAgIIU2w5U7TnvlwwDQYJKoZIhvcNAQELBQAwZjELMAkGA1UE
Expand Down
87 changes: 31 additions & 56 deletions l10n_nl_kvk/examples/kvk_68727720.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,36 @@
{
"apiVersion": "2.0",
"meta":
{

},
"data":
{
"itemsPerPage": 10,
"startPage": 1,
"totalItems": 2,
"items": [
{
"kvkNumber": "68727720",
"rsin": "857567433",
"tradeNames":
"pagina": 1,
"aantal": 10,
"totaal": 2,
"resultaten": [
{
"kvkNummer": "68727720",
"vestigingsnummer": "000037143557",
"handelsnaam": "Test NV Katrien",
"straatnaam": "Rietdekkershof",
"plaats": "Veendam",
"type": "rechtspersoon",
"links": [
{
"shortBusinessName": "Test NV Katrien",
"currentStatutoryNames": [ "Test NV Katrien"
]
"rel": "basisprofiel",
"href": "https://api.kvk.nl/test/api/v1/basisprofielen/68727720"
},
"hasEntryInBusinessRegister": true,
"hasNonMailingIndication": true,
"isLegalPerson": true,
"isBranch": false,
"isMainBranch": false
},

{
"kvkNumber": "68727720",
"branchNumber": "000037143557",
"rsin": "857567433",
"tradeNames":
{
"businessName": "Test NV Katrien",
"shortBusinessName": "Test NV Katrien",
"currentTradeNames": [ "Test NV Katrien"
],
"currentStatutoryNames": [ "Test NV Katrien"
]
},
"hasEntryInBusinessRegister": true,
"hasNonMailingIndication": true,
"isLegalPerson": false,
"isBranch": true,
"isMainBranch": true,
"addresses": [
{
"type": "vestigingsadres",
"street": "Rietdekkershof",
"houseNumber": "8",
"houseNumberAddition": "",
"postalCode": "9646AS",
"city": "Veendam",
"country": "Nederland"
}
]
}
]
}
"rel": "vestigingsprofiel",
"href": "https://api.kvk.nl/test/api/v1/vestigingsprofielen/000037143557"
}
]
},
{
"kvkNummer": "68727720",
"handelsnaam": "Test NV Katrien",
"type": "rechtspersoon",
"links": [
{
"rel": "basisprofiel",
"href": "https://api.kvk.nl/test/api/v1/basisprofielen/68727720"
}
]
}
]
}
106 changes: 40 additions & 66 deletions l10n_nl_kvk/examples/kvk_69599084.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,43 @@
{
"apiVersion": "2.0",
"meta": {},
"data": {
"itemsPerPage": 10,
"startPage": 1,
"totalItems": 2,
"items": [
{
"kvkNumber": "69599084",
"branchNumber": "000038509520",
"tradeNames": {
"businessName": "Test EMZ Nevenvestiging Govert",
"currentTradeNames": [
"Test EMZ Nevenvestiging Govert",
"Tweede handelsnaam Vestiging2",
"Derde handelsnaam Vestiging2",
"Vierde handelsnaam Vestiging2"
]
"pagina": 1,
"aantal": 10,
"totaal": 2,
"resultaten": [
{
"kvkNummer": "69599084",
"vestigingsnummer": "000038509504",
"handelsnaam": "Test EMZ Dagobert",
"straatnaam": "Abebe Bikilalaan",
"plaats": "Amsterdam",
"type": "hoofdvestiging",
"links": [
{
"rel": "basisprofiel",
"href": "https://api.kvk.nl/test/api/v1/basisprofielen/69599084"
},
"hasEntryInBusinessRegister": true,
"hasNonMailingIndication": true,
"isLegalPerson": false,
"isBranch": true,
"isMainBranch": false,
"addresses": [
{
"type": "vestigingsadres",
"street": "Geneinde",
"houseNumber": "73",
"houseNumberAddition": "",
"postalCode": "6223GT",
"city": "Maastricht",
"country": "Nederland"
}
]
},
{
"kvkNumber": "69599084",
"branchNumber": "000038509504",
"tradeNames": {
"businessName": "Test EMZ Dagobert",
"currentTradeNames": [
"Test EMZ Dagobert",
"Tweede handelsnaam 1MZ",
"Derde handelsnaam 1MZ",
"Vierde handelsnaam 1MZ"
]
{
"rel": "vestigingsprofiel",
"href": "https://api.kvk.nl/test/api/v1/vestigingsprofielen/000038509504"
}
]
},
{
"kvkNummer": "69599084",
"vestigingsnummer": "000038509520",
"handelsnaam": "Test EMZ Nevenvestiging Govert",
"straatnaam": "Geneinde",
"plaats": "Maastricht",
"type": "nevenvestiging",
"links": [
{
"rel": "basisprofiel",
"href": "https://api.kvk.nl/test/api/v1/basisprofielen/69599084"
},
"hasEntryInBusinessRegister": true,
"hasNonMailingIndication": true,
"isLegalPerson": false,
"isBranch": true,
"isMainBranch": true,
"addresses": [
{
"type": "vestigingsadres",
"street": "Abebe Bikilalaan",
"houseNumber": "17",
"houseNumberAddition": "",
"postalCode": "1034WL",
"city": "Amsterdam",
"country": "Nederland"
}
]
}
]
}
}
{
"rel": "vestigingsprofiel",
"href": "https://api.kvk.nl/test/api/v1/vestigingsprofielen/000038509520"
}
]
}
]
}
55 changes: 17 additions & 38 deletions l10n_nl_kvk/examples/kvk_90004760.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,20 @@
{
"apiVersion": "2.0",
"meta":
{

},
"data":
{
"itemsPerPage": 10,
"startPage": 1,
"totalItems": 1,
"items": [
{
"kvkNumber": "90004760",
"rsin": "992235534",
"tradeNames":
"pagina": 1,
"aantal": 10,
"totaal": 1,
"resultaten": [
{
"kvkNummer": "90004760",
"handelsnaam": "Local Funzoom N.V.",
"straatnaam": "Eikenlaan",
"plaats": "Leiderdorp",
"type": "rechtspersoon",
"links": [
{
"shortBusinessName": "Local Funzoom N.V.",
"currentStatutoryNames": [ "Local Funzoom N.V."
]
},
"hasEntryInBusinessRegister": true,
"hasNonMailingIndication": false,
"isLegalPerson": true,
"isBranch": false,
"isMainBranch": false,
"addresses": [
{
"type": "bezoekadres",
"street": "Eikenlaan",
"houseNumber": "9",
"houseNumberAddition": "",
"postalCode": "2351NT",
"city": "Leiderdorp",
"country": "Nederland"
}
]
}
]
}
"rel": "basisprofiel",
"href": "https://api.kvk.nl/test/api/v1/basisprofielen/90004760"
}
]
}
]
}
Loading

0 comments on commit 9c7c088

Please sign in to comment.