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 |
|---|---|---|---|---|---|---|
2,651 | py | PYTHON | 15.0 | # Copyright 2017 Carlos Dauden <carlos.dauden@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from ast import literal_eval
from odoo import fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
sale_contract_count = fields.Integer(
string="Sale Contr... | 35.346667 | 2,651 |
11,126 | py | PYTHON | 15.0 | # Copyright 2018 ACSONE SA/NV.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import itertools
from collections import namedtuple
from odoo.fields import Date
Criteria = namedtuple(
"Criteria",
[
"when", # Contract line relatively to today (BEFORE, IN, AFTER)
"has_date_end",... | 25.934732 | 11,126 |
455 | py | PYTHON | 15.0 | # Copyright 2019 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ContractTag(models.Model):
_name = "contract.tag"
_description = "Contract Tag"
name = fields.Char(required=True)
company_id = fields.Many2one(
"res.company",
... | 25.277778 | 455 |
1,667 | py | PYTHON | 15.0 | # Copyright 2018 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ContractLineWizard(models.TransientModel):
_name = "contract.line.wizard"
_description = "Contract Line Wizard"
date_start = fields.Date()
date_end = fields.Date()
... | 30.87037 | 1,667 |
2,963 | py | PYTHON | 15.0 | # Copyright 2019 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import (
AccessDenied,
AccessError,
MissingError,
UserError,
ValidationError,
)
class ContractManuallyCreateInvoice(models.TransientModel):
... | 34.057471 | 2,963 |
1,159 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ContractContractTerminate(models.TransientModel):
_name = "contract.contract.terminate"
_description = "Terminate Contract Wizard"
contract_id = fields.Many2one(
c... | 31.324324 | 1,159 |
3,946 | py | PYTHON | 15.0 | # Copyright 2020-2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, http
from odoo.exceptions import AccessError, MissingError
from odoo.http import request
from odoo.addons.portal.controllers.portal import CustomerPortal, pager as portal_pager
clas... | 37.207547 | 3,944 |
805 | py | PYTHON | 15.0 | # Copyright 2016 Antiun Ingenieria S.L. - Antonio Espinosa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import logging
from odoo import SUPERUSER_ID, api
_logger = logging.getLogger(__name__)
def post_init_hook(cr, registry):
"""Copy payment mode from partner to the new field at contrac... | 36.590909 | 805 |
921 | py | PYTHON | 15.0 | # Copyright 2015 Domatix (<www.domatix.com>)
# Copyright 2016 Antiun Ingenieria S.L. - Antonio Espinosa
# Copyright 2017 Tecnativa - David Vidal
# Copyright 2017 Tecnativa - Carlos Dauden <carlos.dauden@tecnativa.com>
# Copyright 2017-2018 Tecnativa - Vicent Cubells <vicent.cubells@tecnativa.com>
# Copyright (C) 2021 O... | 41.863636 | 921 |
4,735 | py | PYTHON | 15.0 | # Copyright 2015 Antiun Ingenieria S.L. - Antonio Espinosa
# Copyright 2017 Tecnativa - Vicent Cubells
# Copyright 2017 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from unittest.mock import patch
import odoo.tests
from odoo.tests import tagged
from odoo.addons.account... | 36.145038 | 4,735 |
967 | py | PYTHON | 15.0 | from odoo import api, fields, models
class ContractContract(models.Model):
_inherit = "contract.contract"
payment_mode_id = fields.Many2one(
comodel_name="account.payment.mode",
string="Payment Mode",
domain=[("payment_type", "=", "inbound")],
index=True,
)
@api.oncha... | 34.535714 | 967 |
819 | py | PYTHON | 15.0 | # Copyright 2016-2019 Tecnativa - Pedro M. Baeza
# Copyright 2018 Tecnativa - Carlos Dauden
# Copyright 2019 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Variable quantity in contract recurrent invoicing",
"version": "15.0.1.0.0",
"category": "Contract Management"... | 34.125 | 819 |
2,976 | py | PYTHON | 15.0 | # Copyright 2016 Tecnativa - Pedro M. Baeza
# Copyright 2018 Tecnativa - Carlos Dauden
# Copyright 2018 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import exceptions
from odoo.tests import tagged
from odoo.tests.common import TransactionCase
@tagged("post_install", "-at_ins... | 38.153846 | 2,976 |
639 | py | PYTHON | 15.0 | # Copyright 2016 Tecnativa - Pedro M. Baeza
# Copyright 2018 Tecnativa - Carlos Dauden
# Copyright 2018 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ContractAbstractContractLine(models.AbstractModel):
_inherit = "contract.abstract.contract.lin... | 31.95 | 639 |
1,873 | py | PYTHON | 15.0 | # Copyright 2016 Tecnativa - Pedro M. Baeza
# Copyright 2018 Tecnativa - Carlos Dauden
# Copyright 2018 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
from odoo.tools import float_is_zero
from odoo.tools.safe_eval import safe_eval
class AccountAnalyticInvoiceLine... | 34.685185 | 1,873 |
1,377 | py | PYTHON | 15.0 | # Copyright 2016 Tecnativa - Pedro M. Baeza
# Copyright 2018 Tecnativa - Carlos Dauden
# Copyright 2018 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, exceptions, fields, models
from odoo.tools.safe_eval import safe_eval
class ContractLineFormula(models.Model):
... | 36.236842 | 1,377 |
450 | py | PYTHON | 15.0 | # Copyright 2016 Tecnativa - Pedro M. Baeza
# Copyright 2018 Tecnativa - Carlos Dauden
# Copyright 2018 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ContractContract(models.Model):
_inherit = "contract.contract"
skip_zero_qty = fields.Boo... | 30 | 450 |
579 | py | PYTHON | 15.0 | # Copyright 2017 Pesol (<http://pesol.es>)
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)
{
"name": "Contracts Management - Recurring Sales",
"version": "15.0.1.0.3",
"category": "Contract Management",
"license": "AGPL-3",
"aut... | 30.473684 | 579 |
6,847 | py | PYTHON | 15.0 | # © 2016 Carlos Dauden <carlos.dauden@tecnativa.com>
# Copyright 2017 Pesol (<http://pesol.es>)
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
from .common impor... | 45.64 | 6,846 |
2,605 | py | PYTHON | 15.0 | # Copyright 2022 ACSONE SA/NV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from freezegun.api import freeze_time
from odoo import fields
from odoo.tests import Form
from odoo.tests.common import TransactionCase
from .common import ContractSaleCommon
today = "2020-01-15"
class TestContractSale(... | 35.684932 | 2,605 |
5,412 | py | PYTHON | 15.0 | # © 2016 Carlos Dauden <carlos.dauden@tecnativa.com>
# Copyright 2017 Pesol (<http://pesol.es>)
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from freezegun import freeze_time
from odoo import fields
from odoo.tests import Form
def to_date(date):
... | 38.65 | 5,411 |
832 | py | PYTHON | 15.0 | # Copyright 2021 ACSONE SA/NV (<http://acsone.eu>)
# 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"
contract_auto_confirm = fields.Boolean(
compute="_compute_contract_auto_confirm",
hel... | 34.666667 | 832 |
319 | 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 SaleOrderLine(models.Model):
_inherit = "sale.order.line"
contract_line_id = fields.Many2one(
"contract.line", string="Contract Line", index=True
)
| 26.583333 | 319 |
1,944 | 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 models
class ContractLine(models.Model):
_inherit = "contract.line"
def _prepare_sale_line_vals(self, dates, order_id=False):
sale_line_vals = {
"product_id": sel... | 35.345455 | 1,944 |
501 | py | PYTHON | 15.0 | # Copyright 2017 Pesol (<http://pesol.es>)
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ContractAbstractContract(models.AbstractModel):
_inherit = "contract.abstract.contract"
sale_autoconfirm = f... | 29.470588 | 501 |
5,273 | py | PYTHON | 15.0 | # © 2004-2010 OpenERP SA
# © 2014 Angel Moya <angel.moya@domatix.com>
# © 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# © 2016 Carlos Dauden <carlos.dauden@tecnativa.com>
# Copyright 2016-2017 LasLabs Inc.
# Copyright 2017 Pesol (<http://pesol.es>)
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
# Copyright 2018 ... | 39.02963 | 5,269 |
764 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-contract",
description="Meta package for oca-contract Odoo addons",
version=version,
install_requires=[
'odoo-addon-agreement_rebate_partner_company_group>=15.0dev,<15.1... | 33.217391 | 764 |
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 |
627 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Carlos Dauden
# Copyright 2022 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Agreement Rebate Partner Company Group",
"summary": "Rebate agreements applied to all company group members",
"version": "15.0.1.0.0",
"develo... | 39.1875 | 627 |
1,897 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.addons.agreement_rebate.tests.test_agreement_rebate import TestAgreementRebate
class TestAgreementRebatePartnerCompanyGroup(TestAgreementRebate):
def setUp(self):
super().setUp()
... | 42.155556 | 1,897 |
866 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class AgreementSettlementCreateWiz(models.TransientModel):
_inherit = "agreement.settlement.create.wiz"
def _partner_domain(self, agreement):
if not agreement.partner_i... | 37.652174 | 866 |
915 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Jairo Llopis
# Copyright 2021 Tecnativa - Víctor Martínez
# Copyright 2021 Tecnativa - Pedro M. Baeza
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
{
"name": "eCommerce product attachments",
"summary": "Let visitors download attachments from a product page",
"... | 33.814815 | 913 |
569 | py | PYTHON | 15.0 | # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl)
# Copyright 2021 Tecnativa - Víctor Martínez
from odoo.tests import common
class TestWebsiteSaleProductAttachmentTourl(common.HttpCase):
def setUp(self):
super().setUp()
attachment = self.env.ref("website.library_image_11")
pr... | 37.8 | 567 |
735 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Jairo Llopis
# Copyright 2021 Tecnativa - Pedro M. Baeza
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class IrAttachment(models.Model):
_inherit = "ir.attachment"
attached_in_product_tmpl_ids = fields.Many2many(
string=... | 35 | 735 |
1,722 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Jairo Llopis
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
from odoo import api, fields, models
from odoo.addons.website.models import ir_http
class ProductTemplate(models.Model):
_inherit = "product.template"
website_attachment_ids = fields.Many2many(
... | 35.875 | 1,722 |
1,227 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Website Sale Product Minimal Price",
"summary": "Display minimal price for products that has variants",
"version": "15.0.1.0.0",
"development_status": "Production/Stable",
"maintain... | 39.580645 | 1,227 |
3,532 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import tagged
from odoo.tests.common import HttpCase
@tagged("post_install", "-at_install")
class WebsiteSaleProductMinimalPriceHttpCase(HttpCase):
def setUp(self):
super().setUp()
... | 40.597701 | 3,532 |
4,038 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import tagged
from odoo.tests.common import HttpCase
@tagged("post_install", "-at_install")
class TestProductWithNoPrices(HttpCase):
"""With this test we are checking that the minimal price is... | 38.826923 | 4,038 |
5,167 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Sergio Teruel
# Copyright 2020 Tecnativa - Pedro M. Baeza
# Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class ProductTemplate(models.Model):
_inherit = "product.template"
def _get_product_subprice... | 45.324561 | 5,167 |
3,636 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import http
from odoo.http import request
from odoo.addons.sale.controllers.variant import VariantController
class WebsiteSaleVariantController(VariantController):
@http.route(
["/sale/get... | 38.680851 | 3,636 |
493 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Display product reference in e-commerce",
"version": "15.0.1.0.0",
"category": "Website",
"website": "https://github.com/OCA/e-commerce",
"author": "Tecnativa, Odoo Community Asso... | 35.214286 | 493 |
574 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Website Sale Comparison Hide Price",
"version": "15.0.1.0.0",
"category": "Website",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/e-comme... | 38.266667 | 574 |
983 | py | PYTHON | 15.0 | # Copyright 2020 Jairo Llopis - Tecnativa
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
{
"name": "Alternative (un)taxed prices display on eCommerce",
"summary": "Display prices with(out) taxes in eCommerce, complementing normal mode",
"version": "15.0.1.1.0",
"development_status": "P... | 37.807692 | 983 |
6,684 | py | PYTHON | 15.0 | # Copyright 2020 Jairo Llopis - Tecnativa
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
from odoo.tests.common import Form, HttpCase
class UICase(HttpCase):
def setUp(self):
super().setUp()
# Create and select a pricelist
# to make tests pass no matter what l10n package... | 40.26506 | 6,684 |
2,548 | py | PYTHON | 15.0 | # Copyright 2020 Jairo Llopis - Tecnativa
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
from odoo import models
class ProductTemplate(models.Model):
_inherit = "product.template"
def _get_combination_info(
self,
combination=False,
product_id=False,
add_qty=... | 36.927536 | 2,548 |
840 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Website Sale Product Cart Quantity",
"summary": "Allows to add to cart from product items a custom quantity.",
"version": "15.0.1.0.0",
"website": "https://github.com/OCA/e-commerce",
... | 36.521739 | 840 |
699 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import HttpCase, tagged
@tagged("post_install", "-at_install")
class TestWebsiteSaleProductItemCartCustomQty(HttpCase):
def setUp(self):
super().setUp()
view = self.env.ref("we... | 34.95 | 699 |
674 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Google Tag Manager Enhanced Conversions",
"summary": "Add support for Google Tag Manager Enhanced Conversions",
"version": "15.0.1.0.0",
"author": "Tecnativa, Odoo Community Association (O... | 44.933333 | 674 |
378 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
google_tag_manager_enhanced_conversions = fields.Boolean(
related="website_id.googl... | 34.363636 | 378 |
540 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class Website(models.Model):
_inherit = "website"
google_tag_manager_enhanced_conversions = fields.Boolean(
string="Enhanced Conversions",
help="This will p... | 38.571429 | 540 |
574 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Alexandre D. Díaz
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Website Sale Attribute Filter Order",
"version": "15.0.1.0.0",
"category": "Website",
"author": "Tecnativa, " "Odoo Community Association (OCA)",
"website": "https://github.com/O... | 38.2 | 573 |
795 | py | PYTHON | 15.0 | # Copyright 2015 Agile Business Group sagl (<http://www.agilebg.com>)
# Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "e-commerce required VAT",
"summary": "VAT number required in checkout form",
"version": "15.0.1.0.0",
... | 36.136364 | 795 |
567 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests.common import HttpCase
class TestWebsiteSaleVatRequired(HttpCase):
def test_website_sale_vat_required(self):
self.env.user.partner_id.vat = False
self.browser_js(
... | 37.8 | 567 |
475 | py | PYTHON | 15.0 | # Copyright 2015 Agile Business Group sagl (<http://www.agilebg.com>)
# Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.website_sale.controllers.main import WebsiteSale
class WebsiteSale(WebsiteSale):
def _get_mandatory_fie... | 39.583333 | 475 |
979 | py | PYTHON | 15.0 | # Copyright (C) 2020 Alexandre Díaz - Tecnativa S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import SUPERUSER_ID, api
from odoo.tools import config
def post_init_hook(cr, registry):
# This is here to not broke the tests. The idea:
# - XML changes in website are made usin... | 51.473684 | 978 |
744 | py | PYTHON | 15.0 | # Copyright (C) 2015 Antiun Ingeniería, S.L.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
"name": "Suggest to create user account when buying",
"summary": "Suggest users to create an account when buying in the website",
"version": "15.0.1.0.1",
"category": "Website",
"websi... | 37.15 | 743 |
911 | py | PYTHON | 15.0 | # Copyright (C) 2020 Alexandre Díaz - Tecnativa S.L.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
import odoo.tests
@odoo.tests.tagged("post_install", "-at_install")
class TestUi(odoo.tests.HttpCase):
def test_01_shop_buy(self):
# Ensure that 'vat' is not empty for compatibility wi... | 45.5 | 910 |
911 | py | PYTHON | 15.0 | # Copyright 2017 Sergio Teruel <sergio.teruel@tecnativa.com>
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Website Sale Checkout Skip Payment",
"summary": "Skip payment for logged users in checkout process",
"version": "1... | 33.740741 | 911 |
1,247 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from unittest.mock import Mock, patch
from odoo.tests.common import HttpCase
class WebsiteSaleHttpCase(HttpCase):
def setUp(self):
super().setUp()
# Active skip payment for Mitchel Admin
... | 33.702703 | 1,247 |
391 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
website_sale_checkout_skip_message = fields.Text(
"Website Sale Checkout Skip Message",
related="website... | 30.076923 | 391 |
864 | py | PYTHON | 15.0 | # Copyright 2017 Sergio Teruel <sergio.teruel@tecnativa.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import fields, models
from odoo.http import request
class Website(models.Model):
_inherit = "website"
website_sale_checkout_skip_message = fields.Text(
string="Websi... | 34.56 | 864 |
288 | py | PYTHON | 15.0 | # Copyright 2017 Sergio Teruel <sergio.teruel@tecnativa.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
skip_website_checkout_payment = fields.Boolean(default=False)
| 28.8 | 288 |
1,701 | py | PYTHON | 15.0 | # Copyright 2017 Sergio Teruel <sergio.teruel@tecnativa.com>
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import http
from odoo.http import request
from odoo.addons.payment.controllers.portal import PaymentPortal
from odoo.addons.we... | 37.8 | 1,701 |
974 | py | PYTHON | 15.0 | # Copyright 2017-Today GRAP (http://www.grap.coop).
# @author Sylvain LE GAL <https://twitter.com/legalsylvain>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Product Multi Links (Template)",
"version": "15.0.1.0.0",
"category": "Generic Modules",
"author": "GRAP, ACSONE SA/... | 37.461538 | 974 |
4,645 | py | PYTHON | 15.0 | # Copyright 2019 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
class TestProductTemplateLink(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.en... | 36.865079 | 4,645 |
9,700 | py | PYTHON | 15.0 | # Copyright 2019 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from psycopg2 import IntegrityError
from odoo.tests import TransactionCase
from odoo.tools import mute_logger
class TestProductTemplateLinkType(TransactionCase):
@classmethod
def setUpClass(cls):
super().se... | 37.022901 | 9,700 |
5,115 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase
class TestProductTemplateLinker(TransactionCase):
"""
Tests for product.template.linker
"""
@classmethod
def setUpClass(cls):
... | 39.346154 | 5,115 |
3,627 | py | PYTHON | 15.0 | # Copyright 2019 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ProductTemplateLinkType(models.Model):
_name = "product.template.link.type"
_description = "Product Template Link Type"
name = fields.Char(required=True, translate=Tr... | 32.675676 | 3,627 |
3,684 | py | PYTHON | 15.0 | # Copyright 2017-Today GRAP (http://www.grap.coop).
# @author Sylvain LE GAL <https://twitter.com/legalsylvain>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from collections import defaultdict
from odoo import _, api, fields, models
from odoo.exceptions import AccessError
class ProductTemplate(mo... | 35.085714 | 3,684 |
5,698 | py | PYTHON | 15.0 | # Copyright 2017-Today GRAP (http://www.grap.coop).
# @author Sylvain LE GAL <https://twitter.com/legalsylvain>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from contextlib import contextmanager
from psycopg2.extensions import AsIs
from odoo import _, api, fields, models
from odoo.exceptions import... | 32.747126 | 5,698 |
3,632 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class ProductTemplateLinker(models.TransientModel):
"""
Wizard used to link product template together in one shot
"""
_name = "product.template.... | 34.590476 | 3,632 |
897 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Website Sale Hide Price",
"version": "15.0.1.3.0",
"category": "Website",
"author": "Tecnativa, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/e-commerce",
... | 34.5 | 897 |
1,892 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
website_hide_price = fields.Boolean(string="Hide prices on website")
website_hide_price_message = fie... | 33.785714 | 1,892 |
374 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
website_hide_price_default_message = fields.Char(
related="website_id.website_hide_... | 31.166667 | 374 |
712 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
from odoo.http import request
class Website(models.Model):
_inherit = "website"
website_show_price = fields.Boolean(compute="_compute_website_show_price")
website_hide... | 33.904762 | 712 |
288 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
website_show_price = fields.Boolean(string="Show prices on website", default=True)
| 32 | 288 |
802 | py | PYTHON | 15.0 | # Copyright 2016 Sergio Teruel <sergio.teruel@tecnativa.com>
# Copyright 2016-2017 Jairo Llopis <jairo.llopis@tecnativa.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Website Sale Checkout Country VAT",
"summary": "Autocomplete VAT in checkout process",
"version": "15.0.1.0... | 36.454545 | 802 |
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 |
3,112 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-e-commerce",
description="Meta package for oca-e-commerce Odoo addons",
version=version,
install_requires=[
'odoo-addon-product_template_multi_link>=15.0dev,<15.1dev',
... | 57.62963 | 3,112 |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.