diff --git a/partner_gogocarto_export_api/models/res_config_settings.py b/partner_gogocarto_export_api/models/res_config_settings.py index bc29409ed..009ef7ba3 100644 --- a/partner_gogocarto_export_api/models/res_config_settings.py +++ b/partner_gogocarto_export_api/models/res_config_settings.py @@ -7,20 +7,17 @@ _logger = logging.getLogger(__name__) class ResConfigSettings(models.TransientModel): _inherit = 'res.config.settings' - gogocarto_map_url = fields.Char(readonly=False) export_gogocarto_fields = fields.Many2many('ir.model.fields', 'export_field_rel', 'export_id', 'fields_id', domain="[""('model_id', '=', 'res.partner')\ - ,('name', 'not in', ('name','partner_longitude','partner_latitude'))""]", + ,('name', 'not in', ('name','partner_longitude','partner_latitude','message_follower_ids','message_ids'))""]", readonly=False) @api.model def get_values(self): res = super(ResConfigSettings, self).get_values() ICPSudo = self.env['ir.config_parameter'].sudo() - gogocarto_map_url = ICPSudo.get_param('gogocarto_export_api.gogocarto_map_url') export_gogocarto_fields = ICPSudo.get_param('gogocarto_export_api.export_gogocarto_fields') if ICPSudo.get_param('gogocarto_export_api.export_gogocarto_fields') else "[]" res.update( - gogocarto_map_url=gogocarto_map_url, export_gogocarto_fields= [(6, 0, literal_eval(export_gogocarto_fields))] ) return res @@ -29,7 +26,6 @@ class ResConfigSettings(models.TransientModel): def set_values(self): res = super(ResConfigSettings, self).set_values() ICPSudo = self.env['ir.config_parameter'] - ICPSudo.set_param('gogocarto_export_api.gogocarto_map_url',self.gogocarto_map_url) ICPSudo.set_param('gogocarto_export_api.export_gogocarto_fields',self.export_gogocarto_fields.ids) return res diff --git a/partner_gogocarto_export_api/views/gogocarto_config_settings_view.xml b/partner_gogocarto_export_api/views/gogocarto_config_settings_view.xml index 9db03f3f7..28d6a3384 100644 --- a/partner_gogocarto_export_api/views/gogocarto_config_settings_view.xml +++ b/partner_gogocarto_export_api/views/gogocarto_config_settings_view.xml @@ -10,19 +10,6 @@

Gogocarto export configuration

-
-
-
- URL of your Gogocarto map, to be displayed in Odoo main menu -
-
-
-
-
-
-