Commit Graph

84 Commits

Author SHA1 Message Date
Stéphan Sainléger
9fc914ede2 [ADD] partner_gogocarto_export_api: add test suite
Add unit tests on the parser/domain helpers and end-to-end tests of
the public JSON endpoint:

- ``tests/test_res_partner.py``: pins the Gogocarto data contract
  (default domain and field set, company-selected fields, parser
  mapping of scalar/relational/binary/unsupported ttypes). A silent
  regression there corrupts the map feed while the endpoint keeps
  answering 200.
- ``tests/test_controller.py``: anonymous ``HttpCase`` calls on
  ``/web/<company_id>/get_http_gogocarto_elements`` covering the
  flagged-partners payload, the exclusion of unflagged partners and
  the graceful degradation on unknown company ids.

Verified on a local 18.0 instance: 9 tests, 0 failed, 0 error.
2026-10-19 00:17:04 +02:00
Stéphan Sainléger
0db0870f2b [MIG] partner_gogocarto_export_api: migrate to 18.0
Migrated from 16.0.1.0.1 following the OCA migration guidelines:

- ``with_context(force_company=...)`` replaced by ``.with_company(...)``
  in the controller: the ``force_company`` context key is no longer
  supported and logs a warning in 18.0.
- Settings view rewritten for the 17.0+ settings structure: the legacy
  ``<div class="app_settings_block">`` / ``hasclass('settings')`` anchor
  is gone. The block now follows the ``<block>``/``<setting>`` idiom and
  inherits ``base_setup.res_config_settings_view_form``; the
  ``base_setup`` dependency was added accordingly. Translatable strings
  are kept verbatim so the ``fr.po`` catalog stays valid.
- Fixed the ``posiion`` -> ``position`` typo in the company form
  inheritance (silently defaulted to ``inside`` since 16.0).
- Version bumped to ``18.0.1.0.0``; author normalized to a
  comma-separated string (pylint manifest-author-string).

Dependencies verified on 18.0: ``jsonifier`` (OCA server-tools) still
provides ``jsonify(parser)``, ``server_action_mass_edit`` (OCA
server-ux) still provides ``ir.actions.server.mass.edit.line`` and the
core ``ir.actions.server.create_action`` used by the mass-edit record.

Verified on a local 18.0 instance: clean install, and
``GET /web/<company_id>/get_http_gogocarto_elements`` returns the
expected JSON payload (flagged partners only, unknown company yields
``[]``, no ``force_company`` warnings in logs).
2026-10-19 00:17:04 +02:00
Stéphan Sainléger
84d5d2719b [FIX] partner_geolocalize_usability: avoid Nominatim HTTP 429 rejections
The stock ``base_geocoder._call_openstreetmap`` sends a generic Odoo
``User-Agent`` shared across thousands of instances, which Nominatim
rate-limits and blocks (HTTP 429 "Too many requests"), so mass
geolocation fails regardless of client-side throttling.

Override ``_call_openstreetmap`` to:

- send a deployment-specific ``User-Agent`` read from a new system
  parameter ``partner_geolocalize_usability.user_agent`` (shipped with an
  obvious placeholder so an unconfigured instance fails loudly instead of
  silently reusing the banned generic agent);
- throttle requests to one per second (``time.sleep``) before each call,
  complying with the Nominatim usage policy even when callers loop over
  many partners;
- return ``None`` instead of raising ``IndexError`` when Nominatim
  returns an empty result for an unknown address.

Document the required system parameter in the README and add tests
covering the User-Agent selection, throttling and empty/blank results.
2026-10-19 00:17:04 +02:00
597b69b078 [CI] sync config from odoo-elabore-ci 2026-09-23 18:29:20 +00:00
a38f083c11 [CI] sync config from odoo-elabore-ci 2026-09-23 17:51:48 +00:00
035f78546a [CI] sync config from odoo-elabore-ci 2026-09-23 13:13:14 +00:00
Stéphan Sainléger
e161f431ec [CLN] partner_portal_extra_links: move Elabore specific add-on to a private repo 2026-06-22 21:43:02 +02:00
Stéphan Sainléger
8640e2eefa [IMP] partner_portal_extra_links: add buttons in portal /my/home 2026-06-22 21:41:49 +02:00
Stéphan Sainléger
a213def5a1 [IMP] partner_portal_extra_link: fix dependency and clean a view 2026-06-22 21:40:01 +02:00
Stéphan Sainléger
c8d6b8f6c4 [MIG] partner_portal_extra_links: migrate to 18.0 2026-04-02 17:03:04 +02:00
Stéphan Sainléger
6e776cbe64 [IMP] partner_phone_country_validation: add tests 2026-03-06 10:25:37 +01:00
Stéphan Sainléger
0c7120cd68 [IMP] partner_phone_country_validation: complete README 2026-03-06 10:25:24 +01:00
Stéphan Sainléger
946b69e722 [FIX] partner_phone_country_validation: correct overall fragile process 2026-03-06 10:24:51 +01:00
Stéphan Sainléger
0d7a57d321 [MIG] partner_phone_country_validation: migrate to 18.0 2026-02-03 21:26:47 +01:00
Stéphan Sainléger
663d8b431d [MIG] partner_geolocalize_usability: migrate to 18.0 2026-01-12 23:52:28 +01:00
Stéphan Sainléger
9ac67a2788 [MIG] initiate branch 18.0 2025-12-16 23:12:36 +01:00
Boris Gallet
721daadbb2 [ADD] partner_portal_extra_links: add visio_url and wiki_homepage_url to portal
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m28s
2025-10-21 17:15:59 +02:00
c3d419c67e Sync config from odoo-elabore-ci:16.0
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 7m41s
2025-09-17 13:39:48 +00:00
8f46bfc892 [ADD]partner_profiles:add standalone contact in domain of groupby 2025-05-12 17:53:05 +02:00
fa0a7aab09 [FIX]partner_complementary_data_view:remove is_main_profile because it requires a dependency on partner_profiles 2025-05-07 11:21:09 +02:00
Stéphan Sainléger
e6dbf49a7f [FIX] partner_gogocarto_export_api: add missing dependency on server_action_mass_edit 2025-04-01 22:53:45 +02:00
Stéphan Sainléger
4642927ce0 [NEW] partner_phone_email_form_widget: create add-on 2025-03-23 11:59:08 +01:00
b42fc550b9 [IMP]partner_gogocarto_export_api: add mass edit in_gogocarto field 2025-02-28 12:23:15 +01:00
43ae6f7d2c [IMP]partner_profiles:add action server sync pub/admin datas in mass 2025-02-28 12:23:15 +01:00
b93d914317 [IMP]partner_profiles:add quick filters for admin, public and fonction profiles 2025-02-28 12:23:15 +01:00
Stéphan Sainléger
45a2e0bdaf [FIX] partner_profile: remove profile data for non contact partner 2025-01-09 15:25:46 +01:00
Stéphan Sainléger
423262d190 [NEW] partner_complementary_data_view: create add-on 2025-01-09 14:06:10 +01:00
clementthomas
d43983212c [IMP] add gitignore 2024-11-07 10:11:28 +01:00
clementthomas
d1a20167ad [FIX] partner-comcom: many2one instead of many2many 2024-11-05 16:22:08 +01:00
clementthomas
d3257c857b [NEW] partner_skills 2024-10-28 10:34:52 +01:00
clementthomas
5b9172ef19 [NEW] l10n_fr_partner_comcom 2024-10-16 15:05:54 +02:00
4de88acf8f [FIX]partner_profiles:avoid automatic creation of society type public profile 2024-09-16 14:51:26 +02:00
5f6a82fc0f [IMP]partner_gogocarto_export_api:allow export htlm fields 2024-03-26 11:14:56 +01:00
Boris Gallet
142a0342c9 [MIG] partner_profiles_gogocarto_export : Migration to 16.0 2024-03-22 10:08:12 +01:00
Boris Gallet
70694c19de [MIG] partner_gogocarto_export_api : Migration to 16.0 2024-03-22 10:08:12 +01:00
Boris Gallet
1c6f4a3d4c [MIG] partner_favorite : Migration to 16.0 2024-03-22 10:08:12 +01:00
Boris Gallet
f16f22fb34 [MIG] partner_profiles_geolocalize_usability: Migration to 16.0 2024-03-22 10:08:12 +01:00
Boris Gallet
e8e08c466e [MIG] partner_geolocalize_usability: Migration to 16.0 2024-03-21 17:05:35 +01:00
Boris Gallet
faf5507f26 [MIG] partner_profiles_portal : Migration to 16.0 2024-03-21 16:55:55 +01:00
Boris Gallet
df455303fa [MIG] partner_profiles: Migration to 16.0 2024-03-21 16:12:57 +01:00
clementthomas
e03fe31c86 remove modules in v12 2023-09-11 17:39:11 +02:00
Stéphan Sainléger
9325c02b53 [I18N] partner_profiles_portal: improve french translations 2023-06-28 16:38:18 +02:00
Stéphan Sainléger
cdcea7ec60 [IMP] partner_profiles: apply migration only on contact type partner 2023-06-28 16:38:18 +02:00
Stéphan Sainléger
d51b9b6d08 [IMP] partner_profiles_portal: add required asterisk in portal forms 2023-06-28 16:38:18 +02:00
Stéphan Sainléger
783faf9f61 [IMP] partner_profiles_portal: remove position profile frm child_ids 2023-06-28 16:38:18 +02:00
Stéphan Sainléger
49f73b86a7 [IMP] partner_profiles: remove position profiles from child_ids 2023-06-28 16:38:18 +02:00
Stéphan Sainléger
0f10de644e [IMP] partner_profiles_portal: improve /my/account name field label 2023-06-28 16:38:18 +02:00
Stéphan Sainléger
8d72f56edc [I18N] partner_profiles_portal: modify profiles french translations
"Profil principal" -> "Fiche administrative"
"Profil public" -> "Coordonnées publiques"
"Profil position" -> "Fonction"
2023-06-28 16:38:18 +02:00
Stéphan Sainléger
124625f74c [I18N] partner_profiles: modify profile name french translations
"Profil principal" -> "Fiche administrative"
"Profil public" -> "Coordonnées publiques"
"Profil position" -> "Fonction"
2023-06-28 16:38:18 +02:00
Stéphan Sainléger
072cdf8978 [FIX] partner_profiles_portal: fix portal boolean fields handling 2023-06-27 17:31:24 +02:00