You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
644 B

  1. import logging
  2. from odoo import fields, models
  3. _logger = logging.getLogger(__name__)
  4. class ResConfigSettings(models.TransientModel):
  5. _inherit = 'res.config.settings'
  6. export_gogocarto_fields = fields.Many2many(
  7. related='company_id.export_gogocarto_fields',
  8. relation='ir.model.fields',
  9. string='GogoCarto Exported fields',
  10. readonly=False,
  11. domain=[
  12. ('model_id', '=', 'res.partner'),
  13. ('name', 'not in', ['name',
  14. 'partner_longitude',
  15. 'partner_latitude',
  16. 'id'])
  17. ]
  18. )