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.

18 lines
529 B

  1. # -*- coding: utf-8 -*-
  2. # © 2014-2016 Camptocamp SA (Author: Romain Deheele)
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  4. from openerp import models, fields
  5. class Continent(models.Model):
  6. _name = 'res.continent'
  7. _description = 'Continent'
  8. _order = 'name'
  9. name = fields.Char(
  10. string='Continent Name',
  11. help='The full name of the continent.',
  12. required=True, translate=True)
  13. country_ids = fields.One2many(
  14. 'res.country', 'continent_id', string="Countries")