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.

19 lines
486 B

  1. # -*- coding: utf-8 -*-
  2. # © 2014-2016 Camptocamp SA (Author: Romain Deheele)
  3. # © 2017 senseFly, Amaris (Author: Quentin Theuret)
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. from odoo import models
  6. from odoo import fields
  7. class Partner(models.Model):
  8. _inherit = 'res.partner'
  9. continent_id = fields.Many2one(
  10. 'res.continent',
  11. related='country_id.continent_id',
  12. string='Continent',
  13. readonly=True,
  14. store=True,
  15. )