v14-facturacionelectronica/l10n_co_base_location/models/res_partner.py

12 lines
304 B
Python

# -*- coding: utf-8 -*-
# Copyright 2021 Joan Marín <Github@JoanMarin>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields
class ResPartner(models.Model):
_inherit = 'res.partner'
country_code = fields.Char(related='country_id.code', store=False)