mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-26 23:02:07 +02:00
12 lines
399 B
Python
12 lines
399 B
Python
from odoo import api, fields, models
|
|
|
|
|
|
class ResPartner(models.Model):
|
|
_inherit = 'res.partner'
|
|
|
|
l10n_fr_is_french = fields.Boolean(compute='_compute_l10n_fr_is_french')
|
|
|
|
@api.depends('country_code')
|
|
def _compute_l10n_fr_is_french(self):
|
|
for partner in self:
|
|
partner.l10n_fr_is_french = partner.country_code in self.env['res.company']._get_france_country_codes()
|