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 |
|---|---|---|---|---|---|---|
547 | py | PYTHON | 15.0 | # Copyright 2020 Florent de Labarre
# Copyright 2020 Tecnativa - João Marques
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Online Bank Statements: MyPonto.com",
"version": "15.0.1.0.0",
"category": "Account",
"website": "https://github.com/OCA/bank-statement-import",
"... | 39 | 546 |
8,475 | py | PYTHON | 15.0 | # Copyright 2020 Florent de Labarre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from datetime import date, datetime
from unittest import mock
from odoo import fields
from odoo.tests import Form, common
_module_ns = "odoo.addons.account_statement_import_online_ponto"
_provider_class = (
_modu... | 43.020305 | 8,475 |
9,602 | py | PYTHON | 15.0 | # Copyright 2020 Florent de Labarre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import base64
import json
import re
import time
from datetime import datetime
import pytz
import requests
from dateutil.relativedelta import relativedelta
from odoo import _, api, fields, models
from odoo.exceptions ... | 38.408 | 9,602 |
741 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "CRM Only Security Groups",
"summary": "Add new group in Sales to show only CRM",
"version": "15.0.1.2.0",
"category": "Customer Relationship Management",
"website": "https://githu... | 35.190476 | 739 |
3,487 | py | PYTHON | 15.0 | # Copyright 2021-2022 Tecnativa - Víctor Martínez
# License LGPL-3 - See https://www.gnu.org/licenses/lgpl-3.0.html
from odoo.exceptions import AccessError
from odoo.tests import Form, common, new_test_user
from odoo.tests.common import users
class TestCrmSecurity(common.TransactionCase):
@classmethod
def se... | 38.722222 | 3,485 |
537 | py | PYTHON | 15.0 | # Copyright 2015 Antiun Ingenieria - Endika Iglesias <endikaig@antiun.com>
# Copyright 2017 Tecnativa - Luis Martínez
# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html
{
"name": "CRM location",
"category": "Customer Relationship Management",
"version": "15.0.1.0.2",
"depends": ["crm", "... | 35.733333 | 536 |
1,982 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - Luis M. Ontalba
# Copyright 2019 Tecnativa - Alexandre Díaz
# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0
from odoo.tests import common
class TestCrmLocation(common.TransactionCase):
@classmethod
def setUpClass(cls):
super(TestCrmLocation, cls).setUpClass()... | 37.377358 | 1,981 |
1,102 | py | PYTHON | 15.0 | # Copyright 2015 Antiun Ingenieria - Endika Iglesias <endikaig@antiun.com>
# Copyright 2017 Tecnativa - Luis Martínez
# Copyright 2019 Tecnativa - Alexandre Díaz
# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html
from odoo import api, fields, models
class CrmLead(models.Model):
_inherit = "crm.lea... | 32.352941 | 1,100 |
682 | py | PYTHON | 15.0 | # Copyright 2016 Tecnativa S.L. - Jairo Llopis
# Copyright 2016 Tecnativa S.L. - Vicent Cubells
# Copyright 2017 Tecnativa S.L. - David Vidal
# Copyright 2018 Tecnativa S.L. - Cristina Martin R.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Tracking Fields in Partners",
"summa... | 37.888889 | 682 |
1,206 | py | PYTHON | 15.0 | # Copyright 2016 Tecnativa S.L. - Jairo Llopis
# Copyright 2016 Tecnativa S.L. - Vicent Cubells
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase
class LeadCase(TransactionCase):
def setUp(self):
super(LeadCase, self).setUp()
self.... | 41.517241 | 1,204 |
909 | py | PYTHON | 15.0 | # Copyright 2016 Tecnativa S.L. - Jairo Llopis
# Copyright 2016 Tecnativa S.L. - Vicent Cubells
# Copyright 2016 Tecnativa S.L. - David Vidal
# Copyright 2018 Tecnativa S.L. - Cristina Martin R.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, models
class CRMLead(models.Mo... | 41.318182 | 909 |
287 | py | PYTHON | 15.0 | # Copyright 2016 Tecnativa S.L. - Jairo Llopis
# Copyright 2016 Tecnativa S.L. - Vicent Cubells
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import models
class ResPartner(models.Model):
_name = "res.partner"
_inherit = [_name, "utm.mixin"]
| 28.7 | 287 |
1,001 | py | PYTHON | 15.0 | # Copyright 2015-2017 Odoo S.A.
# Copyright 2017 Tecnativa - Vicent Cubells
# Copyright 2018 Tecnativa - Cristina Martin R.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Claims Management",
"version": "15.0.1.1.0",
"category": "Customer Relationship Management",
"author": "... | 35.75 | 1,001 |
1,697 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests import common
class TestCrmClaim(common.TransactionCase):
@classmethod
def setUpClass(cls):
super(TestCrmClaim, cls).setUpClass()
Claims = cls.env["crm.claim"].wit... | 38.568182 | 1,697 |
416 | py | PYTHON | 15.0 | # Copyright 2015-2017 Odoo S.A.
# Copyright 2017 Tecnativa - Vicent Cubells
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class CrmClaimCategory(models.Model):
_name = "crm.claim.category"
_description = "Category of claim"
name = fields.Char(required=Tr... | 32 | 416 |
1,334 | py | PYTHON | 15.0 | # Copyright 2015-2017 Odoo S.A.
# Copyright 2017 Tecnativa - Vicent Cubells
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class CrmClaimStage(models.Model):
"""Model for claim stages. This models the main stages of a claim
management flow. Main CRM objects (l... | 38.114286 | 1,334 |
1,007 | py | PYTHON | 15.0 | # Copyright 2015-2017 Odoo S.A.
# Copyright 2017 Tecnativa - Vicent Cubells
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import api, fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
claim_count = fields.Integer(string="# Claims", compute="_compute_claim_co... | 41.958333 | 1,007 |
6,575 | py | PYTHON | 15.0 | # Copyright 2015-2017 Odoo S.A.
# Copyright 2017 Tecnativa - Vicent Cubells
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import _, api, fields, models
from odoo.tools import html2plaintext
APPLICABLE_MODELS = [
"account.invoice",
"event.registration",
"hr.applicant",
"res.... | 35.928962 | 6,575 |
4,263 | py | PYTHON | 15.0 | # Copyright 2015-2017 Odoo S.A.
# Copyright 2017 Tecnativa - Vicent Cubells
# Copyright 2018 Tecnativa - Cristina Martin R.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from psycopg2.extensions import AsIs
from odoo import fields, models, tools
class CrmClaimReport(models.Model):
"""CRM Claim... | 31.813433 | 4,263 |
529 | py | PYTHON | 15.0 | # Copyright 2015 Antiun Ingeniería, S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "VAT in leads",
"summary": "Add VAT field to leads",
"version": "15.0.1.0.0",
"category": "Customer Relationship Management",
"website": "https://github.com/OCA/crm",
"author... | 32.9375 | 527 |
1,174 | py | PYTHON | 15.0 | # Copyright 2015 Antiun Ingeniería, S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase
class LeadCase(TransactionCase):
def setUp(self):
super(LeadCase, self).setUp()
self.lead = self.env["crm.lead"].create(
{"name"... | 40.413793 | 1,172 |
820 | py | PYTHON | 15.0 | # Copyright 2015 Antiun Ingeniería, S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class Lead(models.Model):
_inherit = "crm.lead"
vat = fields.Char(
string="TIN",
help="Tax Identification Number. The first 2 characters are the "
... | 30.333333 | 819 |
1,117 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Valentin Vinagre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
{
"name": "Crm Salesperson Planner",
"version": "15.0.1.0.0",
"development_status": "Beta",
"category": "Customer Relationship Management",
"author": "Sygel Technology," "Odoo Community Ass... | 41.37037 | 1,117 |
2,183 | py | PYTHON | 15.0 | from openupgradelib import openupgrade
column_spec = {
"crm_salesperson_planner_visit_template": [
("start", None),
("start_datetime", "start"),
("stop", None),
("stop_datetime", "stop"),
]
}
field_spec = [
(
"crm.salesperson.planner.visit.template",
"crm_sa... | 26.950617 | 2,183 |
5,623 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Valentin Vinagre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from dateutil.relativedelta import relativedelta
from odoo import fields
from odoo.tests import common
class TestCrmSalespersonPlannerVisitBase(common.TransactionCase):
@classmethod
def setUpClass(... | 37.738255 | 5,623 |
6,475 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Valentin Vinagre
# Copyright 2021 Sygel - Manuel Regidor
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from datetime import timedelta
from odoo import exceptions, fields
from odoo.tests import common
class TestCrmSalespersonPlannerVisitTemplate(common.TransactionCase)... | 35 | 6,475 |
677 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Valentin Vinagre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import fields, models
class CrmSalespersonPlannerVisitCloseReason(models.Model):
_name = "crm.salesperson.planner.visit.close.reason"
_description = "SalesPerson Planner Visit Close Reason... | 35.631579 | 677 |
6,950 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Valentin Vinagre
# Copyright 2021 Sygel - Manuel Regidor
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class CrmSalespersonPlannerVisit(models.Model):
_name = "crm.salesperson.plann... | 35.10101 | 6,950 |
2,504 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Manuel Regidor
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import _, fields, models
from odoo.exceptions import ValidationError
class CalendarEvent(models.Model):
_inherit = "calendar.event"
salesperson_planner_visit_ids = fields.One2many(
... | 42.440678 | 2,504 |
6,886 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Valentin Vinagre
# Copyright 2021 Sygel - Manuel Regidor
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from datetime import timedelta
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class CrmSalespersonPlannerVisitTemplate(models.Mo... | 33.590244 | 6,886 |
487 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Valentin Vinagre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import fields, models
class CrmLead(models.Model):
_inherit = "crm.lead"
crm_salesperson_planner_visit_ids = fields.Many2many(
comodel_name="crm.salesperson.planner.visit",
... | 30.4375 | 487 |
1,345 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Valentin Vinagre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
salesperson_planner_visit_count = fields.Integer(
string="Number of Salesperson Visits",
com... | 40.757576 | 1,345 |
2,362 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Valentin Vinagre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import _, fields, models
class CrmSalespersonPlannerVisitCloseWiz(models.TransientModel):
_name = "crm.salesperson.planner.visit.close.wiz"
_description = "Get Close Reason"
def _defa... | 37.492063 | 2,362 |
1,417 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Valentin Vinagre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from datetime import timedelta
from odoo import _, fields, models
from odoo.exceptions import ValidationError
class CrmSalespersonPlannerVisitTemplateCreate(models.TransientModel):
_name = "crm.salespe... | 38.297297 | 1,417 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
1,502 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-crm",
description="Meta package for oca-crm Odoo addons",
version=version,
install_requires=[
'odoo-addon-crm_claim>=15.0dev,<15.1dev',
'odoo-addon-crm_claim_typ... | 41.722222 | 1,502 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
888 | py | PYTHON | 15.0 | # Copyright 2015 Vauxoo: Yanina Aular <yani@vauxoo.com>,
# Copyright 2015 Vauxoo: Osval Reyes <osval@vauxoo.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "CRM Claim Types",
"category": "Customer Relationship Management",
"summary": "Claim types for CRM",
"author":... | 32.888889 | 888 |
518 | py | PYTHON | 15.0 | # Copyright 2015 Vauxoo: Yanina Aular <yani@vauxoo.com>,
# Osval Reyes <osval@vauxoo.com>
# Copyright 2017 Bhavesh Odedra <bodedra@ursainfosystems.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class CrmClaimType(models.Model):
_n... | 34.533333 | 518 |
588 | py | PYTHON | 15.0 | # Copyright 2009-2013 Akretion
# Copyright 2013 Camptocamp
# Copyright 2015 Vauxoo
# Copyright 2017 URSA Information Systems
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class CrmClaimStage(models.Model):
_inherit = "crm.claim.stage"
claim_type = fie... | 28 | 588 |
725 | py | PYTHON | 15.0 | # Copyright 2015 Vauxoo: Yanina Aular <yani@vauxoo.com>,
# Osval Reyes <osval@vauxoo.com>
# Copyright 2017 Bhavesh Odedra <bodedra@ursainfosystems.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class CrmClaim(models.Model):
_inher... | 31.521739 | 725 |
616 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Valentin Vinagre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
{
"name": "Crm Salesperson Planner Sale",
"version": "15.0.1.0.0",
"development_status": "Beta",
"category": "Customer Relationship Management",
"author": "Sygel Technology, Tecnativa, Odoo... | 36.235294 | 616 |
1,464 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo.tests import Form
from odoo.addons.crm_salesperson_planner.tests.test_crm_salesperson_planner_visit import (
TestCrmSalespersonPlannerVisitBase,
)
class TestCrmSalespersonPlannerSale(TestC... | 45.6875 | 1,462 |
486 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Valentin Vinagre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import fields, models
class SaleOrder(models.Model):
_inherit = "sale.order"
visit_id = fields.Many2one(
comodel_name="crm.salesperson.planner.visit",
string="Visit",
... | 30.375 | 486 |
3,675 | py | PYTHON | 15.0 | # Copyright 2021 Sygel - Valentin Vinagre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import api, fields, models
class CrmSalespersonPlannerVisit(models.Model):
_inherit = "crm.salesperson.planner.visit"
order_ids = fields.One2many("sale.order", "visit_id", string="Orders"... | 40.833333 | 3,675 |
564 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
"name": "CRM won reason",
"version": "15.0.1.0.0",
"category": "Customer Relationship Management",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/crm",
... | 29.684211 | 564 |
2,106 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from odoo.tests import Form
from odoo.tests.common import TransactionCase
class TestCrmLeadReason(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(conte... | 42.979592 | 2,106 |
297 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from odoo import fields, models
class CrmLeadLost(models.TransientModel):
_inherit = "crm.lead.lost"
lost_reason_id = fields.Many2one(domain="[('reason_type', 'in', (False, 'lost'))]")
| 27 | 297 |
612 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from odoo import fields, models
class CrmLeadReason(models.TransientModel):
_name = "crm.lead.won"
_description = "Get Won Reason"
won_reason_id = fields.Many2one(
"crm.lost.reason",
"Won R... | 30.6 | 612 |
291 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import fields, models
class CrmLostReason(models.Model):
_inherit = "crm.lost.reason"
reason_type = fields.Selection([("won", "Won"), ("lost", "Lost")], default="lost")
| 29.1 | 291 |
246 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import fields, models
class CrmLead(models.Model):
_inherit = "crm.lead"
won_reason_id = fields.Many2one("crm.lost.reason")
| 24.6 | 246 |
1,483 | py | PYTHON | 15.0 | ##############################################################################
#
# Copyright (c)
# 2015 Serv. Tec. Avanzados - Pedro M. Baeza (http://www.serviciosbaeza.com)
# 2015 AvanzOsc (http://www.avanzosc.es)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms... | 43.617647 | 1,483 |
1,418 | py | PYTHON | 15.0 | ##############################################################################
# For copyright and license notices, see __manifest__.py file in root directory
##############################################################################
from odoo.tests.common import TransactionCase
class TestCrmLeadCode(Transaction... | 41.705882 | 1,418 |
896 | py | PYTHON | 15.0 | ##############################################################################
# For copyright and license notices, see __manifest__.py file in root directory
##############################################################################
from odoo import _, api, fields, models
class CrmLead(models.Model):
_inher... | 34.461538 | 896 |
586 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "CRM Multicompany Reporting Currency",
"summary": "Adds Amount in multicompany reporting currency to CRM Lead",
"version": "15.0.1.0.3",
"category": "Sales",
"author": "Camptocamp SA, Odoo C... | 39.066667 | 586 |
3,409 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)
from odoo import fields
from odoo.tests.common import TransactionCase
from odoo.addons.mail.tests.common import mail_new_test_user
class TestAmountMulticompanyReportingCurrency(TransactionCase):
@classmethod
... | 37.054348 | 3,409 |
688 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# 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 set_values(self):
crm_lead = self.env["crm.lead"]
applied_currency = crm_lead._get_m... | 36.210526 | 688 |
3,131 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from odoo import api, fields, models
class CrmLead(models.Model):
_inherit = "crm.lead"
def _get_multicompany_reporting_currency_id(self):
multicompany_reporting_currency_parameter = (
self... | 37.722892 | 3,131 |
744 | py | PYTHON | 15.0 | # @@ -1,11 +1,10 @@
# Copyright 2017 Tecnativa - Vicent Cubells
{
"name": "CRM Phone Calls",
"version": "15.0.1.1.0",
"category": "Customer Relationship Management",
"author": "Odoo S.A., Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/crm",
"license": "AGPL-3",... | 32.347826 | 744 |
7,747 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.tests import Form, common
class TestCrmPhoneCall(common.SavepointCase):
"""Unit test case of the Crm Phonecall module."""
@classmethod
def setUpClass(cls):
"""Created requi... | 40.560209 | 7,747 |
2,815 | py | PYTHON | 15.0 | # Copyright 2004-2010 Tiny SPRL (<http://tiny.be>)
# Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import time
from odoo import api, fields, models
class CrmPhonecall2phonecall(models.TransientModel):
"""Added the details of the crm phonecall2phonecal... | 37.039474 | 2,815 |
8,914 | py | PYTHON | 15.0 | # Copyright 2004-2016 Odoo SA (<http://www.odoo.com>)
# Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from functools import reduce
from odoo import _, api, fields, models
class CrmPhonecall(models.Model):
"""Model for CRM phonecalls."""
_name = "... | 40.703196 | 8,914 |
412 | py | PYTHON | 15.0 | # Copyright 2004-2016 Odoo SA (<http://www.odoo.com>)
# Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class CalendarEvent(models.Model):
"""Enhance the calendar event to add phonecall data."""
_inherit = "calendar.e... | 31.692308 | 412 |
381 | py | PYTHON | 15.0 | from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
group_show_form_view = fields.Boolean(
"Enable form view for phone calls",
help="By default form is disabled for calls, with this group it is enabled.",
implied_group="crm_... | 31.75 | 381 |
1,403 | py | PYTHON | 15.0 | # Copyright 2004-2016 Odoo SA (<http://www.odoo.com>)
# Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
from odoo.tools.safe_eval import safe_eval
class CrmLead(models.Model):
"""Added the phonecall related details in the ... | 35.974359 | 1,403 |
777 | py | PYTHON | 15.0 | # Copyright 2004-2016 Odoo SA (<http://www.odoo.com>)
# Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResPartner(models.Model):
"""Added the details of phonecall in the partner."""
_inherit = "res.partner"
... | 33.782609 | 777 |
3,101 | py | PYTHON | 15.0 | # Copyright 2004-2010 Tiny SPRL (<http://tiny.be>)
# Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from psycopg2.extensions import AsIs
from odoo import fields, models, tools
AVAILABLE_STATES = [
("draft", "Draft"),
("open", "Todo"),
("cancel", ... | 32.302083 | 3,101 |
642 | py | PYTHON | 15.0 | # Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Phonecall planner",
"summary": "Schedule phone calls according to some criteria",
"version": "15.0.1.0.0",
"category": "Customer Relationship Management",
"website":... | 42.8 | 642 |
5,643 | py | PYTHON | 15.0 | # Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from __future__ import division
from datetime import datetime, timedelta
from odoo import fields
from odoo.exceptions import ValidationError
from odoo.tests.common import SavepointCase
from odo... | 36.642857 | 5,643 |
7,593 | py | PYTHON | 15.0 | # Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from __future__ import division
from datetime import datetime, timedelta
from logging import getLogger
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
from o... | 35.816038 | 7,593 |
793 | py | PYTHON | 15.0 | # Copyright 2017 Vicent Cubells <vicent.cubells@tecnativa.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from psycopg2 import IntegrityError
from odoo import SUPERUSER_ID, api
def convert_names_to_many2one(cr, registry): # pragma: no cover
"""Convert old string names to new Many2one"""
... | 39.65 | 793 |
900 | py | PYTHON | 15.0 | # Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis
# Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Restricted Summary for Phone Calls",
"summary": "Allows to choose from a defined summary list",
"version": "15.0.1.0.0",
"ca... | 40.863636 | 899 |
1,853 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from psycopg2 import IntegrityError
from odoo.tests import common
from odoo.tools import mute_logger
class TestCrmPhoneCallSummaryPredefined(common.TransactionCase):
@classmethod
def setUpClass... | 36.294118 | 1,851 |
1,044 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class CrmPhonecall2phonecall(models.TransientModel):
_inherit = "crm.phonecall2phonecall"
name = fields.Char(
related="summary_id.name",
store=True,
required=False,
readonly=... | 29 | 1,044 |
1,317 | py | PYTHON | 15.0 | # Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis
# Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class CRMPhonecall(models.Model):
"""Added number and summary in the phonecall."""
_inherit = "crm.phonecal... | 28 | 1,316 |
549 | py | PYTHON | 15.0 | # Copyright 2015 Antiun Ingenieria S.L. - Javier Iniesta
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "CRM Industry",
"summary": "Link leads/opportunities to industries",
"version": "15.0.1.1.1",
"category": "Customer Relationship Management",
"website": "https://... | 36.6 | 549 |
2,750 | py | PYTHON | 15.0 | # Copyright 2015 Antiun Ingenieria S.L. - Javier Iniesta
# Copyright 2018 ForgeFlow, S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.exceptions import UserError
from odoo.tests import Form
from odoo.tests.common import TransactionCase
class TestCrmLead(TransactionCase):
def t... | 40.441176 | 2,750 |
2,554 | py | PYTHON | 15.0 | # Copyright 2015 Antiun Ingenieria S.L. - Javier Iniesta
# Copyright 2018 ForgeFlow, S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import _, api, exceptions, fields, models
class CrmLead(models.Model):
_inherit = "crm.lead"
industry_id = fields.Many2one(
comodel... | 37.014493 | 2,554 |
666 | py | PYTHON | 15.0 | # Copyright 2023 Moduon Team S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)
{
"name": "CRM Partner Assign",
"summary": "Assign a Partner to an Opportunity/Lead/Partner to indicate Partnership",
"version": "15.0.0.1.1",
"development_status": "Alpha",
"category": "Sales/CRM"... | 28.956522 | 666 |
701 | py | PYTHON | 15.0 | # Copyright 2023 Moduon Team S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)
from odoo.tests.common import TransactionCase
class CRMLead(TransactionCase):
def test_crm_lead_date_partner_assign(self):
"""Test that `date_partner_assign` is set when assigning a partner."""
l... | 31.863636 | 701 |
1,629 | py | PYTHON | 15.0 | # Copyright 2023 Moduon Team S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)
from odoo import api, fields, models
class CRMLead(models.Model):
_inherit = "crm.lead"
partner_contact_assigned_id = fields.Many2one(
comodel_name="res.partner",
domain="[('is_company', '='... | 31.941176 | 1,629 |
854 | py | PYTHON | 15.0 | # Copyright 2023 Moduon Team S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)
from odoo import api, fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
assigned_partner_id = fields.Many2one(
comodel_name="res.partner",
string="Implemented by",
... | 31.62963 | 854 |
684 | py | PYTHON | 15.0 | # Copyright 2010-2020 Odoo S. A.
# Copyright 2021 Tecnativa - Pedro M. Baeza
# License LGPL-3 - See https://www.gnu.org/licenses/lgpl-3.0.html
{
"name": "Lead to Task",
"summary": "Create Tasks from Leads/Opportunities",
"sequence": "19",
"category": "Project",
"complexity": "easy",
"author": "O... | 32.571429 | 684 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.