Skip to content

Instantly share code, notes, and snippets.

@holdenrehg
Last active June 4, 2016 02:09
Show Gist options
  • Save holdenrehg/97c9d9ec6bd8924ff6326490e9fc35d3 to your computer and use it in GitHub Desktop.
Save holdenrehg/97c9d9ec6bd8924ff6326490e9fc35d3 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
import logging
from openerp import api, models, fields
_logger = logging.getLogger(__name__)
class PartnerGroup(models.Model):
_name = 'res.partner.group'
name = fields.Char('Group Name')
partner_ids = fields.One2many('res.partner', 'partner_group_id', 'Partners')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment