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.

16 lines
493 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2016 Antiun Ingenieria S.L. - Antonio Espinosa
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from openerp import models, fields
  5. class ResCompany(models.Model):
  6. _inherit = "res.company"
  7. partner_ref_unique = fields.Selection(
  8. selection=[
  9. ('none', 'None'),
  10. ('companies', 'Only companies'),
  11. ('all', 'All partners'),
  12. ], string="Unique partner reference for", default="none")