<commit_before># -*- coding: utf-8 -*-
# Copyright 2017 <NAME>/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp import fields, models

from openerp.addons.mozaik_person.models.partner_involvement \
    import CATEGORY_TYPE


class VirtualPartnerInvolvement(models.Model):

    _inherit = ["virtual.partner.involvement","virtual.partner.thesaurus.child.search"]
    _name = "virtual.partner.involvement"

    local_voluntary = fields.Boolean()
    regional_voluntary = fields.Boolean()
    national_voluntary = fields.Boolean()
    local_only = fields.Boolean()

    nationality_id = fields.Many2one(
        comodel_name='res.country', string='Nationality')
    involvement_type = fields.Selection(selection=CATEGORY_TYPE)
    effective_time = fields.Datetime(string='Involvement Date')
    promise = fields.Boolean()


class VirtualPartnerInstance(models.Model):

    _inherit = "virtual.partner.instance"

    local_voluntary = fields.Boolean()
    regional_voluntary = fields.Boolean()
    national_voluntary = fields.Boolean()
    local_only = fields.Boolean()
    nationality_id = fields.Many2one(
        comodel_name='res.country', string='Nationality')

class VirtualPartnerThesaurusChildSearch(model.AbstractModel):

    name = "virtual.partner.thesaurus.child.search"

    search_interests_m2m_ids = fields.many2many(
        comodel_name='thesaurus.terms', store=False,
        search="_search_interests_m2m_ids")

    search_competencies_m2m_ids = fields.many2many(
        comodel_name='thesaurus.terms', store=False,
        search="_search_competencies_m2m_ids")

    def _search_competencies_m2m_ids(self, operator, value):
        list_id = "A Chercher"
        return [('competenciens_m2m_ids', 'in', list_id)]
<commit_msg>[CHG] Commit to let rebase<commit_after># -*- coding: utf-8 -*-
# Copyright 2017 <NAME> (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp import fields, models

from openerp.addons.mozaik_person.models.partner_involvement \
    import CATEGORY_TYPE


class VirtualPartnerInvolvement(models.Model):

    _inherit = ["virtual.partner.involvement","virtual.partner.thesaurus.child.search"]
    _name = "virtual.partner.involvement"

    local_voluntary = fields.Boolean()
    regional_voluntary = fields.Boolean()
    national_voluntary = fields.Boolean()
    local_only = fields.Boolean()

    nationality_id = fields.Many2one(
        comodel_name='res.country', string='Nationality')
    involvement_type = fields.Selection(selection=CATEGORY_TYPE)
    effective_time = fields.Datetime(string='Involvement Date')
    promise = fields.Boolean()


class VirtualPartnerInstance(models.Model):

    _inherit = "virtual.partner.instance"

    local_voluntary = fields.Boolean()
    regional_voluntary = fields.Boolean()
    national_voluntary = fields.Boolean()
    local_only = fields.Boolean()
    nationality_id = fields.Many2one(
        comodel_name='res.country', string='Nationality')

class VirtualPartnerThesaurusChildSearch(models.AbstractModel):

    name = "virtual.partner.thesaurus.child.search"

    search_interests_m2m_ids = fields.Many2many(
        comodel_name='thesaurus.terms', store=False,
        search="_search_interests_m2m_ids")

    search_competencies_m2m_ids = fields.Many2many(
        comodel_name='thesaurus.terms', store=False,
        search="_search_competencies_m2m_ids")

    def _search_competencies_m2m_ids(self, operator, value):
        list_id = "A Chercher"
        return [('competenciens_m2m_ids', 'in', list_id)]

{'fraction_non_alphanumeric': 0.11388196176226101, 'fraction_numerical': 0.00942089221390967, 'mean_word_length': 4.340236686390533, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3868934', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1152, 'n_words': 178}