From 2c2e2ef12b30923d74b56c96238817ddbcec200b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Sainl=C3=A9ger?= Date: Fri, 1 Sep 2023 10:34:53 +0200 Subject: [PATCH] [IMP] partner_gogocarto_export_api: refactor partner form view --- partner_gogocarto_export_api/__manifest__.py | 2 +- .../models/res_partner.py | 2 +- .../views/gogocarto_partner.xml | 37 +++++++++++++------ 3 files changed, 27 insertions(+), 14 deletions(-) diff --git a/partner_gogocarto_export_api/__manifest__.py b/partner_gogocarto_export_api/__manifest__.py index 0af32c6..bad46f4 100644 --- a/partner_gogocarto_export_api/__manifest__.py +++ b/partner_gogocarto_export_api/__manifest__.py @@ -8,7 +8,7 @@ ), 'website': 'https://lokavaluto.fr', 'category': 'Localization', - 'version': '12.0.1.0.0', + 'version': '12.0.1.1.0', 'depends': [ 'base', 'contacts', diff --git a/partner_gogocarto_export_api/models/res_partner.py b/partner_gogocarto_export_api/models/res_partner.py index 6822c8e..7363f73 100644 --- a/partner_gogocarto_export_api/models/res_partner.py +++ b/partner_gogocarto_export_api/models/res_partner.py @@ -7,7 +7,7 @@ class ResPartner(models.Model): """ Inherits partner, adds Gogocarto fields in the partner form, and functions""" _inherit = 'res.partner' - in_gogocarto = fields.Boolean('In gogocarto') + in_gogocarto = fields.Boolean('Export to Gogocarto') def _get_gogocarto_domain(self, company_id): # To OVERRIDE in sub_modules to customize the partner selection diff --git a/partner_gogocarto_export_api/views/gogocarto_partner.xml b/partner_gogocarto_export_api/views/gogocarto_partner.xml index 61747bb..332942c 100644 --- a/partner_gogocarto_export_api/views/gogocarto_partner.xml +++ b/partner_gogocarto_export_api/views/gogocarto_partner.xml @@ -1,14 +1,27 @@ - - partner.gogocarto.form - res.partner - - 99 - - - - - - - + + partner.gogocarto.form + res.partner + + 99 + + + + + +