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
519 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2014 Nicolas Bessi, Alexandre Fayolle, Camptocamp SA
  3. # Copyright 2016 Sodexis
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. from openerp import models, fields, api
  6. class ResPartner(models.Model):
  7. """Add third field in address"""
  8. _inherit = "res.partner"
  9. street3 = fields.Char('Street 3')
  10. @api.model
  11. def _address_fields(self):
  12. fields = super(ResPartner, self)._address_fields()
  13. fields.append('street3')
  14. return fields