Add an ``action_open_gogocarto_export`` method on ``res.config.settings`` returning an ``ir.actions.act_url`` (``target="new"``) pointing at the selected company's export endpoint, exposed as a link-style button next to the exported fields in the GogoCarto settings block. Re-add the ``base_setup`` dependency: the new method uses ``res.config.settings.company_id``, which is defined by ``base_setup`` (so is the ``company_id`` our ``export_gogocarto_fields`` related field already relies on). Its removal in 057e7a2 only worked because ``base_setup`` was pulled in transitively. Regenerate ``i18n/fr.po`` and the ``.pot`` from a live 18.0 instance, with the French translation for the new "Open export URL" string. The stale "Mass Edit In Gogocarto Field" translation (wrongly worded) is not carried over by the regenerated catalog. Verified on a local 18.0 instance: 11 tests, 0 failed, 0 error, and the settings arch renders "Ouvrir l'URL d'export" in French.
27 lines
739 B
Python
27 lines
739 B
Python
{
|
|
"name": "partner_gogocarto_export_api",
|
|
"summary": """HTTP JSON api to send partner data for Gogocarto import""",
|
|
"license": "AGPL-3",
|
|
"author": "Lokavaluto, Elabore",
|
|
"website": "https://git.elabore.coop/elabore/partner-tools",
|
|
"category": "Localization",
|
|
"version": "18.0.1.0.0",
|
|
"depends": [
|
|
"base",
|
|
"base_setup",
|
|
"contacts",
|
|
"base_geolocalize",
|
|
"partner_geolocalize_usability",
|
|
"jsonifier",
|
|
"server_action_mass_edit",
|
|
],
|
|
"data": [
|
|
"views/gogocarto_partner.xml",
|
|
"views/gogocarto_config_settings_view.xml",
|
|
"views/res_company_view.xml",
|
|
],
|
|
"demo": [],
|
|
"installable": True,
|
|
"auto_install": False,
|
|
}
|