size
int64
0
304k
ext
stringclasses
1 value
lang
stringclasses
1 value
branch
stringclasses
1 value
content
stringlengths
0
304k
avg_line_length
float64
0
238
max_line_length
int64
0
304k
544
py
PYTHON
15.0
# Copyright 2018 Eficent Business and IT Consulting Services, S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields, models class ResConfigSettings(models.TransientModel): _inherit = "res.config.settings" group_use_partner_industry_for_person = fields.Boolean( ...
38.857143
544
1,029
py
PYTHON
15.0
# Copyright 2015 Antiun Ingenieria S.L. - Javier Iniesta # Copyright 2016 Tecnativa S.L. - Vicent Cubells # Copyright 2018 Eficent Business and IT Consulting Services, S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import _, api, exceptions, fields, models class ResPartner(model...
35.482759
1,029
464
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Carlos Dauden # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) { "name": "Partner pricelist search", "version": "15.0.1.0.0", "author": "Tecnativa,Odoo Community Association (OCA)", "website": "https://github.com/OCA/partner-contact", "category": "Partner ...
33.142857
464
3,067
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Carlos Dauden # Copyright 2022 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo.tests import common class TestPartnerPricelistSearch(common.TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() ...
36.927711
3,065
450
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Carlos Dauden # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import models class Pricelist(models.Model): _inherit = "product.pricelist" def show_pricelist_partners(self): xmlid = "base.action_partner_form" action = self.env["ir.actions....
32.142857
450
1,242
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Carlos Dauden # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class ResPartner(models.Model): _inherit = "res.partner" property_product_pricelist = fields.Many2one( search="_search_property_product_pricelist" ) ...
32.684211
1,242
450
py
PYTHON
15.0
# Copyright 2022 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). import logging def pre_init_hook(cr): """Prepopulate stored related fields for faster installation""" logger = logging.getLogger(__name__) logger.info("Prepopulating stored related fields") cr...
29.866667
448
544
py
PYTHON
15.0
# Copyright 2019 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "CRM Partner Company Group", "summary": "Adds the possibility to add a company group to a company", "version": "15.0.1.0.0", "category": "Sales", "author": "Camptocamp SA, Odoo Community Ass...
38.857143
544
295
py
PYTHON
15.0
# Copyright 2019 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models class CrmLead(models.Model): _inherit = "crm.lead" company_group_id = fields.Many2one( related="partner_id.company_group_id", store=True )
24.583333
295
452
py
PYTHON
15.0
# Copyright 2022 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). import logging def pre_init_hook(cr): """Prepopulate stored related fields for faster installation""" logger = logging.getLogger(__name__) logger.info("Prepopulating stored related fields") cr...
30
450
545
py
PYTHON
15.0
# Copyright 2019 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Sale Partner Company Group", "summary": "Adds the possibility to add a company group to a company", "version": "15.0.1.0.1", "category": "Sales", "author": "Camptocamp SA, Odoo Community As...
38.928571
545
4,447
py
PYTHON
15.0
# Copyright 2020 Ecosoft Co., Ltd (http://ecosoft.co.th/) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo.addons.base_partner_company_group.tests.test_base_partner_company_group import ( TestBasePartnerCompanyGroup, ) class TestSalePartnerCompanyGroup(TestBasePartnerCompanyGroup): ...
38.336207
4,447
299
py
PYTHON
15.0
# Copyright 2019 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models class SaleOrder(models.Model): _inherit = "sale.order" company_group_id = fields.Many2one( related="partner_id.company_group_id", store=True )
24.916667
299
2,115
py
PYTHON
15.0
# Copyright 2019 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import _, api, models class Contact(models.Model): _inherit = "res.partner" @api.onchange("company_group_id") def _onchange_company_group_id(self): res = {} if ( self...
38.454545
2,115
554
py
PYTHON
15.0
# Copyright 2019 ACSONE SA/NV # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Partner Industry Parent", "summary": """ This module add a parent relation to the partner industry""", "version": "15.0.1.0.0", "license": "AGPL-3", "author": "ACSONE SA/NV," "Odoo Comm...
30.777778
554
1,045
py
PYTHON
15.0
# Copyright 2019 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests.common import TransactionCase class TestResPartnerIndustry(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() cls.env = cls.env(context=dict(cls.env.context, tra...
40.192308
1,045
2,560
py
PYTHON
15.0
# Copyright 2019 ACSONE SA/NV # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models from odoo.exceptions import ValidationError class ResPartnerIndustry(models.Model): _inherit = "res.partner.industry" _parent_name = "parent_id" _parent_store = True ...
33.684211
2,560
1,622
py
PYTHON
15.0
# Copyright 2023 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import SUPERUSER_ID, _, api, models class Partner(models.Model): _inherit = "res.partner" @api.model def _search( self, args, offset=0, limit=None, order=None,...
30.037037
1,622
1,030
py
PYTHON
15.0
# Copyright 2016 Nicolas Bessi, Camptocamp SA # Copyright 2018-2021 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Location management (aka Better ZIP)", "version": "15.0.1.0.2", "development_status": "Mature", "depends": ["base_address_city", "con...
31.212121
1,030
11,531
py
PYTHON
15.0
# Copyright 2015 Yannick Vaucher, Camptocamp SA # Copyright 2018-2021 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import psycopg2 from odoo.exceptions import ValidationError from odoo.tests import Form, common from odoo.tools.misc import mute_logger class TestBaseLocat...
41.035587
11,531
610
py
PYTHON
15.0
# Copyright 2018 Aitor Bouzas <aitor.bouzas@adaptivecity.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class City(models.Model): _inherit = "res.city" zip_ids = fields.One2many("res.city.zip", "city_id", string="Zips in this city") _sql_constraints...
30.5
610
1,648
py
PYTHON
15.0
# Copyright 2016 Nicolas Bessi, Camptocamp SA # Copyright 2018 Aitor Bouzas <aitor.bouzas@adaptivecity.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class ResCityZip(models.Model): """City/locations completion object""" _name = "res.city.zip" _...
29.428571
1,648
3,082
py
PYTHON
15.0
# Copyright 2016 Nicolas Bessi, Camptocamp SA # Copyright 2018 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class ResCompany(models.Model): _inherit = "res.company" # In order to keep the same logic used in Odoo, fields must ...
38.049383
3,082
6,277
py
PYTHON
15.0
# Copyright 2016 Nicolas Bessi, Camptocamp SA # Copyright 2018 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from lxml import etree from odoo import _, api, fields, models from odoo.exceptions import ValidationError class ResPartner(models.Model): _inherit = "res.par...
38.042424
6,277
692
py
PYTHON
15.0
# Copyright 2019-2020: Druidoo (<https://www.druidoo.io>) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Contact's Age Range", "version": "15.0.1.0.0", "license": "AGPL-3", "author": "Druidoo, Odoo Community Association (OCA)", "website": "https://github.com/OCA/partner...
34.6
692
1,650
py
PYTHON
15.0
# Copyright 2019-2020: Druidoo (<https://www.druidoo.io>) # Copyright 2020 Ecosoft Co., Ltd (http://ecosoft.co.th/) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from datetime import datetime from dateutil.relativedelta import relativedelta from odoo.exceptions import ValidationError from odoo.tes...
38.372093
1,650
1,909
py
PYTHON
15.0
# Copyright 2019-2020: Druidoo (<https://www.druidoo.io>) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models from odoo.exceptions import ValidationError class ResPartnerDateRange(models.Model): _name = "res.partner.age.range" _description = "Partner Age R...
34.089286
1,909
1,317
py
PYTHON
15.0
# Copyright 2019-2020: Druidoo (<https://www.druidoo.io>) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, fields, models class ResPartner(models.Model): _inherit = "res.partner" age_range_id = fields.Many2one( "res.partner.age.range", "Age Range", ...
31.357143
1,317
687
py
PYTHON
15.0
# Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis # Copyright 2015 Antiun Ingenieria S.L. - Antonio Espinosa # Copyright 2017 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Partner second last name", "summary": "Have split fi...
40.352941
686
1,220
py
PYTHON
15.0
# Copyright 2017 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo.tests.common import TransactionCase class TestConfig(TransactionCase): @classmethod def setUpClass(cls): super(TestConfig, cls).setUpClass() cls.wizard = cls.env["res.con...
38.125
1,220
7,046
py
PYTHON
15.0
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. # Copyright 2015 Antiun Ingenieria S.L. - Antonio Espinosa from odoo.tests.common import TransactionCase from odoo.addons.partner_firstname.tests.base import MailInstalled class CompanyCa...
35.331658
7,031
1,225
py
PYTHON
15.0
# Copyright 2015 Antiun Ingenieria S.L. - Antonio Espinosa # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import models class ResConfigSettings(models.TransientModel): _inherit = "res.config.settings" def _partner_names_order_selection(self): options = super(ResConfig...
35
1,225
4,171
py
PYTHON
15.0
# Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis # Copyright 2015 Antiun Ingenieria S.L. - Antonio Espinosa # Copyright 2017 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models from odoo.addons.partner_firstname...
33.36
4,170
921
py
PYTHON
15.0
# Copyright (C) 2020 Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Animal", "version": "15.0.1.1.0", "license": "AGPL-3", "summary": "Manage animals information", "author": "Open Source Integrators, Odoo Community Association (OCA)", "maintain...
32.892857
921
1,146
py
PYTHON
15.0
from odoo.tests.common import TransactionCase # @tagged('-at_install', 'post_install') class TestAnimalState(TransactionCase): def setUp(self, *args, **kwargs): super(TestAnimalState, self).setUp(*args, **kwargs) self.test_species = self.env["animal.species"].create({"name": "specie 1"}) s...
33.705882
1,146
382
py
PYTHON
15.0
# Copyright (C) 2020 Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class AnimalSpecies(models.Model): _name = "animal.species" _description = "Animal Species" _order = "name" name = fields.Char(translate=True) breed_ids = f...
31.833333
382
1,301
py
PYTHON
15.0
# Copyright (C) 2020 Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class Animal(models.Model): _name = "animal" _description = "Animal" _inherit = ["mail.thread", "mail.activity.mixin"] _order = "name" name = fields.Ch...
31.731707
1,301
485
py
PYTHON
15.0
# Copyright (C) 2020 Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class AnimalColor(models.Model): _name = "animal.color" _description = "Animal Colors" name = fields.Char(translate=True) breed_id = fields.Many2one("animal.bre...
34.642857
485
382
py
PYTHON
15.0
# Copyright (C) 2020 Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class AnimalBreed(models.Model): _name = "animal.breed" _description = "Animal Breeds" _order = "name" name = fields.Char(translate=True) species_id = field...
31.833333
382
658
py
PYTHON
15.0
# Copyright 2021 ForgeFlow S.L. # Copyright 2022 Vauxoo, S.A. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Partner Manual Rank", "summary": "Be able to manually flag partners as customer or supplier.", "version": "15.0.1.0.0", "category": "Partner Management", "w...
27.416667
658
2,761
py
PYTHON
15.0
from odoo.tests import common, tagged @tagged("res_partner") class TestResPartner(common.TransactionCase): def setUp(self): super().setUp() self.partner = self.env["res.partner"].create({"name": "Microsoft Corporation"}) self.partner_2 = self.env["res.partner"].create({"name": "Apple Inc."...
34.08642
2,761
2,183
py
PYTHON
15.0
# Copyright 2021 ForgeFlow, S.L. # Copyright 2022 Vauxoo, S.A. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import _, api, fields, models from odoo.exceptions import UserError DOMAIN_SEARCH = { ("=", False): ("=", 0), ("=", True): (">=", 1), ("!=", False): (">=", 1), ...
34.109375
2,183
443
py
PYTHON
15.0
# Copyright 2021 Ecosoft Co., Ltd. (https://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Partner Bank Code", "summary": "Add fields information in banks", "version": "15.0.1.0.0", "website": "https://github.com/OCA/partner-contact", "author": "Ecosoft, ...
34.076923
443
472
py
PYTHON
15.0
# Copyright 2021 Ecosoft Co., Ltd. (https://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models class ResBank(models.Model): _inherit = "res.bank" bank_code = fields.Char() bank_branch_code = fields.Char() _sql_constraints = [ ( ...
24.842105
472
452
py
PYTHON
15.0
# Copyright 2020-2022 Quartile Limited # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Partner Name Hide Parent", "version": "15.0.1.0.0", "author": "Quartile Limited,Odoo Community Association (OCA)", "website": "https://github.com/OCA/partner-contact", "category": "Extr...
34.769231
452
991
py
PYTHON
15.0
# Copyright 2020-2022 Quartile Limited # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo.tests.common import TransactionCase class TestPartnerNameHideParent(TransactionCase): def test_display_name(self): test_parent = self.env["res.partner"].create( {"name": "parent",...
35.392857
991
768
py
PYTHON
15.0
# Copyright 2020-2022 Quartile Limited # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, fields, models class ResPartner(models.Model): _inherit = "res.partner" hide_parent = fields.Boolean( help="If selected, the parent's name will not be included in the " ...
30.72
768
719
py
PYTHON
15.0
# Copyright 2012 Camptocamp SA - Yannick Vaucher # Copyright 2017 Tecnativa - Vicent Cubells # Copyright 2018 brain-tec AG - Raul Martin # Copyright 2021 Bloopark Systems - Achraf Mhadhbi # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Partner Affiliates", "version": "15.0.1.0.0", ...
34.238095
719
707
py
PYTHON
15.0
# Copyright 2012 Camptocamp SA - Yannick Vaucher # Copyright 2018 brain-tec AG - Raul Martin # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class ResPartner(models.Model): """Add relation affiliate_ids.""" _inherit = "res.partner" # force "active_test" d...
29.458333
707
572
py
PYTHON
15.0
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Personal information page for contacts", "summary": "Add a page to contacts form to put personal information", "version": "15.0.1.0.0", "category": "Customer Relationship Management", "website": "https://github.com/OCA...
35.75
572
905
py
PYTHON
15.0
# Copyright 2004-2009 Tiny SPRL (<https://tiny.be>). # Copyright 2013 initOS GmbH & Co. KG (<https://www.initos.com>). # Copyright 2016 Tecnativa - Vicent Cubells # Copyright 2016 Camptocamp - Akim Juillerat (<https://www.camptocamp.com>). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "aut...
37.708333
905
1,825
py
PYTHON
15.0
# Copyright 2015 ACSONE SA/NV (<https://acsone.eu>). # Copyright 2016 Tecnativa - Vicent Cubells # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). import odoo.tests.common as common class TestBasePartnerSequence(common.TransactionCase): def setUp(self): super(TestBasePartnerSequence, ...
36.5
1,825
2,422
py
PYTHON
15.0
# Copyright 2004-2009 Tiny SPRL (<https://tiny.be>). # Copyright 2013 initOS GmbH & Co. KG (<https://www.initos.com>). # Copyright 2016 Tecnativa - Vicent Cubells # Copyright 2016 Camptocamp - Akim Juillerat (<https://www.camptocamp.com>). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo...
36.149254
2,422
572
py
PYTHON
15.0
# Copyright 2016 Tecnativa - Pedro M. Baeza # Copyright 2017 Tecnativa - Vicent Cubells # Copyright 2018 Tecnativa - Cristina Martin # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Deduplicate Contacts by Website", "version": "15.0.1.0.0", "category": "Tools", "website"...
35.75
572
2,449
py
PYTHON
15.0
# Copyright 2016 Tecnativa - Pedro M. Baeza # Copyright 2018 Tecnativa - Cristina Martin # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo.tests.common import TransactionCase from odoo.tools.safe_eval import safe_eval class TestDeduplicateByWebsite(TransactionCase): @classmethod ...
34.492958
2,449
1,118
py
PYTHON
15.0
# Copyright 2016 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields, models class BasePartnerMergeAutomaticWizard(models.TransientModel): _inherit = "base.partner.merge.automatic.wizard" group_by_website = fields.Boolean("Website") d...
38.551724
1,118
915
py
PYTHON
15.0
# Copyright 2016-2020 Sodexis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). def post_init_hook(cr, registry): """Add street3 to address format""" query = """ UPDATE res_country SET address_format = replace( address_format, E'%(street2)s\n', E'%(street2...
22.875
915
646
py
PYTHON
15.0
# Copyright 2014-2020 Camptocamp SA # @author: Nicolas Bessi # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Street3 in addresses", "summary": "Add a third address line on partners", "license": "AGPL-3", "version": "15.0.1.0.0", "author": "Camptocamp,Odoo Community Associ...
34
646
1,319
py
PYTHON
15.0
# Copyright 2014-2020 Camptocamp SA # @author: Nicolas Bessi # Copyright 2016-2020 Akretion (http://www.akretion.com/) # @author: Alexis de Lattre <alexis.delattre@akretion.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests.common import TransactionCase class TestStreet3(Transaction...
33.820513
1,319
483
py
PYTHON
15.0
# Copyright 2014-2020 Camptocamp SA # @author: Nicolas Bessi # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class ResCountry(models.Model): """Override default adresses formatting of countries""" _inherit = "res.country" address_format = fields.Text( ...
25.421053
483
738
py
PYTHON
15.0
# Copyright 2014-2020 Camptocamp SA # @author: Nicolas Bessi # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class ResPartner(models.Model): """Add third field in address""" _inherit = "res.partner" street3 = fields.Char("Street 3") @api.model ...
28.384615
738
599
py
PYTHON
15.0
# Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Partner phonecalls schedule", "summary": "Track the time and days your partners expect phone calls", "version": "15.0.1.0.1", "category": "Customer Relationship Managemen...
42.785714
599
6,514
py
PYTHON
15.0
# Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from datetime import datetime, timedelta from mock import patch from odoo import fields from odoo.tests.common import TransactionCase PATH = "odoo.addons.partner_phonecall_schedule.models.res_p...
35.98895
6,514
3,091
py
PYTHON
15.0
# Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from __future__ import division from datetime import datetime from odoo import api, fields, models class ResPartner(models.Model): """Added phonecall details in the partner.""" _inher...
39.628205
3,091
643
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Carlos Dauden # Copyright 2020 Tecnativa - Sergio Teruel # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Partner Contact address default", "summary": "Set a default delivery and invoice address for contacts", "version": "15.0.1.0.0", "development_...
37.823529
643
2,424
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Carlos Dauden # Copyright 2020 Tecnativa - Sergio Teruel # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo.tests import common class TestPartnerContactAddressDefault(common.TransactionCase): def setUp(self): super().setUp() self.Partner = ...
46.615385
2,424
1,865
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Carlos Dauden # Copyright 2020 Tecnativa - Sergio Teruel # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models class ResPartner(models.Model): _inherit = "res.partner" partner_delivery_id = fields.Many2one( comodel_name="res.part...
37.3
1,865
645
py
PYTHON
15.0
# Copyright 2022 Xtendoo - Dani Domínguez # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Res partner journal items link", "summary": "Adds a smart button to grant direct access to their accounting notes", "version": "15.0.1.0.0", "category": "Account", "author": "Dani Dom...
32.15
643
520
py
PYTHON
15.0
# Copyright 2022 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Partner language according country", "version": "15.0.1.0.0", "category": "Customer Relationship Management", "website": "https://github.com/OCA/partner-contact", "author": "Tecna...
37
518
1,104
py
PYTHON
15.0
# Copyright 2022 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests import Form, TransactionCase class TestPartnerCountryLang(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() cls.lang_fr = cls.env.ref("base.lang_...
36.733333
1,102
441
py
PYTHON
15.0
# Copyright 2022 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models from odoo.addons.base.models.res_partner import _lang_get class ResCountry(models.Model): _inherit = "res.country" lang = fields.Selection( _lang_get, ...
27.4375
439
1,336
py
PYTHON
15.0
# Copyright 2022 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, models class ResPartner(models.Model): _inherit = "res.partner" @api.onchange("country_id") def _onchange_country_id(self): result = super()._onchange_country_id() ...
33.35
1,334
631
py
PYTHON
15.0
# Copyright 2019 Komit <https://komit-consulting.com> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Email Format Checker", "version": "15.0.1.0.1", "summary": "Validate email address field", "author": "Komit, Odoo Community Association (OCA)", "website": "https://githu...
35.055556
631
6,159
py
PYTHON
15.0
# Copyright 2019 Komit <https://komit-consulting.com> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from unittest.mock import patch from odoo.exceptions import UserError, ValidationError from odoo.tests.common import TransactionCase from odoo.tools.misc import mute_logger class TestPartnerEmailCh...
42.756944
6,157
788
py
PYTHON
15.0
# Copyright 2021 ACSONE SA/NV # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models class ResCompany(models.Model): _inherit = "res.company" partner_email_check_syntax = fields.Boolean( string="Check syntax of email addresses", help="Don't allow em...
34.26087
788
867
py
PYTHON
15.0
from odoo import api, fields, models class ResConfigSettings(models.TransientModel): _inherit = "res.config.settings" partner_email_check_syntax = fields.Boolean( related="company_id.partner_email_check_syntax", readonly=False, ) partner_email_check_filter_duplicates = fields.Boolean...
32.111111
867
3,330
py
PYTHON
15.0
# Copyright 2019 Komit <https://komit-consulting.com> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). import logging from odoo import _, api, models from odoo.exceptions import UserError, ValidationError _logger = logging.getLogger(__name__) try: from email_validator import ( EmailSynta...
32.970297
3,330
668
py
PYTHON
15.0
# Copyright 2016 Antiun Ingenieria S.L. - Antonio Espinosa # Copyright 2017 Tecnativa - Vicent Cubells # Copyright 2020 Tecnativa - João Marques # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Partner unique reference", "summary": "Add an unique constraint to partner ref field",...
37.055556
667
4,681
py
PYTHON
15.0
# Copyright 2017 Tecnativa - Vicent Cubells # Copyright 2020 Tecnativa - João Marques # Copyright 2020 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo.exceptions import ValidationError from odoo.tests import common class TestResPartnerRefUnique(common.Savepoi...
43.738318
4,680
1,003
py
PYTHON
15.0
# Copyright 2016 Antonio Espinosa # Copyright 2020 Tecnativa - João Marques # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models class ResCompany(models.Model): _inherit = "res.company" partner_ref_unique = fields.Selection( selection=[ ("n...
30.363636
1,002
1,319
py
PYTHON
15.0
# Copyright 2016 Antonio Espinosa # Copyright 2020 Tecnativa - João Marques # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import _, api, models from odoo.exceptions import ValidationError class ResPartner(models.Model): _inherit = "res.partner" @api.constrains("ref", "is_com...
42.516129
1,318
625
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import models class BasePartnerMergeAutomaticWizard(models.TransientModel): _inherit = "base.partner.merge.automatic.wizard" def action_merge(self): """Inject context for avoidi...
34.722222
625
639
py
PYTHON
15.0
# Copyright 2016 Tecnativa - Pedro M. Baeza <pedro.baeza@tecnativa.com> # Copyright 2017 Tecnativa - Vicent Cubells <vicent.cubells@tecnativa.com> # Copyright 2020 Pesol - Pedro Evaristo Gonzalez Sanchez <pedro.gonzalez@pesol.es> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Mana...
39.9375
639
1,405
py
PYTHON
15.0
# Copyright 2016 Tecnativa - Pedro M. Baeza <pedro.baeza@tecnativa.com> # Copyright 2017 Tecnativa - Vicent Cubells <vicent.cubells@tecnativa.com> # Copyright 2018 Tecnativa - Cristina Martín # Copyright 2021 Pesol - Pedro Evaristo Gonzalez Sanchez # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). ...
40.114286
1,404
1,326
py
PYTHON
15.0
# Copyright 2016-2020 Tecnativa - Pedro M. Baeza # Copyright 2017 Tecnativa - Vicent Cubells # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import api, models class ResPartner(models.Model): _inherit = "res.partner" def write(self, vals): """Propagate a language chan...
34.894737
1,326
578
py
PYTHON
15.0
# Copyright 2016 Tecnativa - Pedro M. Baeza # Copyright 2017 Tecnativa - Vicent Cubells # Copyright 2019 Tecnativa - Victor M.M Torres # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Exclude records from the deduplication", "version": "15.0.1.0.0", "category": "Tools", ...
36.125
578
3,111
py
PYTHON
15.0
# Copyright 2016 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo.tests import common from odoo.tools.safe_eval import safe_eval class TestDeduplicateFilter(common.TransactionCase): def setUp(self): super().setUp() self.partner_1 = self.en...
37.939024
3,111
1,347
py
PYTHON
15.0
# Copyright 2016 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields, models class BasePartnerMergeAutomaticWizard(models.TransientModel): _inherit = "base.partner.merge.automatic.wizard" exclude_is_company = fields.Boolean("'Is a company?...
43.451613
1,347
618
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Jairo Llopis # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Partner contact access link", "summary": "Allow to visit the full contact form from a company", "version": "15.0.1.1.0", "development_status": "Production/Stable", "category": "Tools...
36.352941
618
1,022
py
PYTHON
15.0
# Copyright 2020 Ecosoft Co., Ltd (http://ecosoft.co.th/) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) from odoo.tests.common import TransactionCase class TestPartnerContactAccessLink(TransactionCase): def setUp(self): super().setUp() self.partner_model = self.env["res.par...
40.88
1,022
541
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Jairo Llopis # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import models class ResPartner(models.Model): _inherit = "res.partner" def open_child_form(self): """Open child contact form from the parent partner form view""" return { ...
28.473684
541
437
py
PYTHON
15.0
# Copyright 2017 initOS GmbH # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Translate Country States", "version": "15.0.1.0.0", "depends": ["base"], "website": "https://github.com/OCA/partner-contact", "summary": "Translate Country States", "author": "initOS GmbH, Od...
31.214286
437
237
py
PYTHON
15.0
# Copyright 2017 initOS GmbH # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class CountryState(models.Model): _inherit = "res.country.state" name = fields.Char(translate=True)
23.7
237
823
py
PYTHON
15.0
# Copyright 2014 Pedro M. Baeza <pedro.baeza@tecnativa.com> # Copyright 2015 Antonio Espinosa <antonioea@antiun.com> # Copyright 2015 Jairo Llopis <jairo.llopis@tecnativa.com> # Copyright 2017 David Vidal <david.vidal@tecnativa.com> # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html { "name": "Partne...
37.409091
823
619
py
PYTHON
15.0
# Copyright 2014 Pedro M. Baeza <pedro.baeza@tecnativa.com> # Copyright 2015 Antonio Espinosa <antonioea@antiun.com> # Copyright 2015 Jairo Llopis <jairo.llopis@tecnativa.com> # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from odoo import fields, models class ResPartner(models.Model): _inherit...
29.47619
619
1,519
py
PYTHON
15.0
############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Af...
41.054054
1,519
514
py
PYTHON
15.0
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Management System - Survey", "version": "15.0.1.0.0", "author": "Savoir-faire Linux,Odoo Community Association (OCA)", "website": "https://github.com/O...
36.714286
514
949
py
PYTHON
15.0
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Management System - Audit", "version": "15.0.1.0.0", "author": "Savoir-faire Linux, Odoo Community Association (OCA)", "website": "https://github.com/OC...
37.96
949
1,390
py
PYTHON
15.0
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests import common class TestModelAudit(common.TransactionCase): def test_get_action_url(self): """Test if action url start with http.""" record...
36.578947
1,390
1,071
py
PYTHON
15.0
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests import common class TestModelCopyVerificationLines(common.TransactionCase): """Test wizard's method.""" def test_copyVerificationLines(self): l...
35.7
1,071