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,889 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ABCClassificationProfile(models.Model):
_inherit = "abc.classification.profile"
data_source = fields.Selection(
selection_add=[("sale_report", "Sales R... | 39.575342 | 2,889 |
628 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Product Pricelist Print Website Sale",
"summary": "Extend Product Pricelist Direct Print for filter by public"
" categories",
"version": "15.0.1.0.0",
"category": "Product",
... | 41.866667 | 628 |
956 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, models
class ProductPricelistXlsx(models.AbstractModel):
_inherit = "report.product_pricelist_direct_print.product_pricelist_xlsx"
def _add_extra_header(self, sheet, book, next_col, h... | 43.454545 | 956 |
992 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ProductPricelistPrint(models.TransientModel):
_inherit = "product.pricelist.print"
is_public_categ = fields.Boolean(string="Filter/Group by public categories")... | 35.428571 | 992 |
633 | py | PYTHON | 15.0 | # Copyright 2018 brain-tec AG (http://www.braintec-group.com)
# Copyright 2015-2016 Camptocamp SA
# Copyright 2015 ADHOC SA (http://www.adhoc.com.ar)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Product Dimension",
"version": "15.0.1.0.1",
"category": "Product",
"auth... | 37.235294 | 633 |
2,159 | py | PYTHON | 15.0 | # Copyright 2015 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestComputeVolumeOnProduct(TransactionCase):
def test_it_computes_volume_in_cm(self):
self.product.product_length = 10.0
self.product.product_height = ... | 40.735849 | 2,159 |
2,026 | py | PYTHON | 15.0 | # Copyright 2015 ADHOC SA (http://www.adhoc.com.ar)
# Copyright 2015-2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
# Define all the related fields in product.template... | 34.338983 | 2,026 |
1,158 | py | PYTHON | 15.0 | # Copyright 2015 ADHOC SA (http://www.adhoc.com.ar)
# Copyright 2015-2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ProductProduct(models.Model):
_inherit = "product.product"
product_length = fields.Float("length")
product_h... | 33.085714 | 1,158 |
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 |
3,290 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-product-attribute",
description="Meta package for oca-product-attribute Odoo addons",
version=version,
install_requires=[
'odoo-addon-base_product_mass_addition>=15.0dev... | 53.934426 | 3,290 |
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 |
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 |
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 |
730 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Product Pricelist Simulation",
"summary": "Simulate the product price for all pricelists",
"version": "15.0.1.0.0",
"category": "Product",
"website": "https://github.com/OCA/product... | 33.181818 | 730 |
4,112 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - Sergio Teruel
# Copyright 2022 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import Form, common
class TestProductPricelistSimulation(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass... | 37.381818 | 4,112 |
300 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProductPricelist(models.Model):
_inherit = "product.pricelist"
show_in_simulation = fields.Boolean(string="Show in simulation", default=True)
| 30 | 300 |
3,544 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class PricelistSimulation(models.TransientModel):
_name = "wizard.preview.pricelist"
_description = "wizard - Preview Pricelist"
@api.model
def default_g... | 34.407767 | 3,544 |
739 | py | PYTHON | 15.0 | # Copyright 2019-2020 Camptocamp (<https://www.camptocamp.com>).
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
{
"name": "Product Packaging Type",
"version": "15.0.1.0.0",
"development_status": "Beta",
"category": "Product",
"summary": "Product Packaging Type",
"author": "Cam... | 33.590909 | 739 |
6,080 | py | PYTHON | 15.0 | # Copyright 2019-2020 Camptocamp (<https://www.camptocamp.com>).
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)
from collections import OrderedDict
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class ProductPackagingType(models.Model):
_name = "product.p... | 37.763975 | 6,080 |
665 | py | PYTHON | 15.0 | # Copyright 2021 ACSONE SA/NV
# Copyright 2023 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Product Assortment",
"summary": """
Adds the ability to manage products assortment""",
"version": "15.0.2.0.0",
"license": "AGPL-3",
"developme... | 31.666667 | 665 |
5,847 | py | PYTHON | 15.0 | # Copyright 2021 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from psycopg2 import IntegrityError
from odoo.tests.common import TransactionCase
from odoo.tools.misc import mute_logger
class TestProductAssortment(TransactionCase):
def setUp(self):
super(TestProductAssortmen... | 43.634328 | 5,847 |
6,398 | py | PYTHON | 15.0 | # Copyright 2021 ACSONE SA/NV
# Copyright 2023 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.osv import expression
from odoo.tools import ormcache
from odoo.tools.safe_eval import datetime, safe_eval
class IrFilters(models.... | 36.56 | 6,398 |
2,235 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# Copyright 2021 Tecnativa - Carlos Dauden
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
from odoo import api, fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
applied_assortment_ids = fields.Many2many(
comodel_name="i... | 36.639344 | 2,235 |
618 | py | PYTHON | 15.0 | # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
{
"name": "Product Supplier Info Archive",
"summary": """
Add the active field to the product supplier info
""",
"version": "15.0.1.0.0",
"license": "LGPL-3",... | 36.352941 | 618 |
286 | py | PYTHON | 15.0 | # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
from odoo import fields, models
class ProductSupplierinfo(models.Model):
_inherit = "product.supplierinfo"
active = fields.Boolean(default=True)
| 28.6 | 286 |
694 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Product Template Tags",
"summary": "This addon allow to add tags on products",
"version": "15.0.1.0.1",
"license": "AGPL-3",
"author": "ACSONE SA/NV, Odoo Community Association (OCA), Numigi",
... | 34.7 | 694 |
1,648 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from psycopg2 import IntegrityError
from odoo.tests.common import TransactionCase
from odoo.tools import mute_logger
class TestProductTemplateTagBase(TransactionCase):
@classmethod
def setUpClass(cls):
supe... | 41.2 | 1,648 |
1,620 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ProductTemplateTag(models.Model):
_name = "product.template.tag"
_description = "Product Tag"
_order = "sequence, name"
name = fields.Char(required=True, translate... | 31.153846 | 1,620 |
422 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
tag_ids = fields.Many2many(
comodel_name="product.template.tag",
string="Tags",
relation="... | 24.823529 | 422 |
614 | py | PYTHON | 15.0 | # Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Product Code Mandatory",
"summary": "Set Product Internal Reference as a required field",
"version": "15.0.1.0.1",
"license": "AGPL-3",
"author": "Open Source Integrator... | 38.375 | 614 |
503 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestProductCode(TransactionCase):
def setUp(self):
super(TestProductCode, self).setUp()
self.product_model = self.env["product.product"]
self.product = self.product_model.c... | 35.928571 | 503 |
440 | py | PYTHON | 15.0 | # Copyright (C) 2018 - TODAY, Open Source Integrators License AGPL-3.0
# or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProductProduct(models.Model):
_inherit = "product.product"
def _get_default_code(self):
return self.env["ir.sequence"].next_by_code("product.de... | 29.333333 | 440 |
506 | 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).
def pre_init_hook(cr): # pragma: no cover
"""
Updates existing codes matching the default '/' or
empty. Primarily this ensures installation does not
fail for demo data.
:param c... | 29.764706 | 506 |
633 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Product Category Code Unique",
"summary": """
Allows to set product category code field as unique""",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV,Odoo Community... | 30.142857 | 633 |
1,115 | 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 psycopg2 import IntegrityError
import odoo.tests.common as common
from odoo.tools import mute_logger
class TestProductCode(common.TransactionCase):
@classmethod
def setUpClass(cls):
... | 29.342105 | 1,115 |
900 | py | PYTHON | 15.0 | # Copyright 2021 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models
class ProductCategory(models.Model):
_inherit = "product.category"
_sql_constraints = [
("uniq_code", "unique(code)", "The category code must be unique!"),
]
@api.mode... | 28.125 | 900 |
808 | py | PYTHON | 15.0 | # Copyright (C) 2019 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
def pre_init_product_code(cr):
cr.execute(
"""UPDATE product_product
SET default_code = 'DEFAULT' || nextval('ir_default_id_seq')
WHERE id in (SELECT distinct(pp.id)
... | 42.526316 | 808 |
545 | py | PYTHON | 15.0 | # Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Unique Product Internal Reference",
"summary": "Set Product Internal Reference as Unique",
"version": "15.0.1.0.1",
"license": "AGPL-3",
"author": "Open Source Integrator... | 36.333333 | 545 |
1,020 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import psycopg2
from odoo.tests.common import TransactionCase
from odoo.tools.misc import mute_logger
class TestCodeUnique(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.product_obj = cls.env["produ... | 36.428571 | 1,020 |
1,497 | py | PYTHON | 15.0 | # Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models
from odoo.tools import config
class ProductProduct(models.Model):
_inherit = "product.product"
_sql_constraints = [
(
"default_code_uniq",
... | 34.813953 | 1,497 |
501 | py | PYTHON | 15.0 | # Copyright 2020 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Product Lot Sequence",
"summary": """
Adds ability to define a lot sequence from the product""",
"version": "15.0.1.1.2",
"license": "AGPL-3",
"author": "ForgeFlow S.L., Odoo Community... | 35.785714 | 501 |
6,064 | py | PYTHON | 15.0 | from odoo.tests import Form
from odoo.tests.common import TransactionCase
class TestProductLotSequence(TransactionCase):
"""Test product lot sequence."""
def setUp(self):
super(TestProductLotSequence, self).setUp()
self.product_product = self.env["product.product"]
self.stock_producti... | 43.625899 | 6,064 |
1,026 | py | PYTHON | 15.0 | # Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import models
class StockMove(models.Model):
_inherit = "stock.move"
def action_show_details(self):
"""Avoid calling and incrementing the sequence if not needed or already done"""
seq_poli... | 44.608696 | 1,026 |
2,511 | py | PYTHON | 15.0 | # Copyright 2020 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ProductionLot(models.Model):
_inherit = "stock.production.lot"
name = fields.Char(default=lambda self: self._default_name())
@api.model
def _get_sequence_policy... | 36.926471 | 2,511 |
4,947 | py | PYTHON | 15.0 | # Copyright 2020 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
lot_sequence_id = fields.Many2one(
"ir.sequence",
string="Entry Sequence",
help="Thi... | 41.923729 | 4,947 |
495 | py | PYTHON | 15.0 | # Copyright 2018 ForgeFlow S.L.
# (http://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Product Restricted Type",
"version": "15.0.1.0.0",
"author": "ForgeFlow," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/product-attribute",
... | 30.9375 | 495 |
2,146 | py | PYTHON | 15.0 | # Copyright 2018 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
class TestProductRestrictedType(TransactionCase):
def setUp(self):
super(TestProductRestrictedType, self).setUp()
... | 38.321429 | 2,146 |
1,259 | py | PYTHON | 15.0 | # Copyright 2018 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, api, models
from odoo.exceptions import ValidationError
class ProductTemplate(models.Model):
_inherit = "product.template"
@api.onchange("categ_id")
def _onchange_categ_id(self):
i... | 33.131579 | 1,259 |
1,306 | py | PYTHON | 15.0 | # Copyright 2018 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class ProductCategory(models.Model):
_inherit = "product.category"
restricted_product_type = fields.Selection(
string="R... | 38.411765 | 1,306 |
644 | py | PYTHON | 15.0 | # Copyright 2020 Akretion (https://www.akretion.com).
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Product logistics UoM",
"summary": "Configure product weights and volume UoM",
"version": "15.0.1.0.1",
"development_status": "Beta",
"category": "Product",
"website"... | 30.666667 | 644 |
2,602 | py | PYTHON | 15.0 | # Copyright 2020 Akretion (https://www.akretion.com).
# @author Raphaël Reverdy <raphael.reverdy@akretion.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
volume_uom_id = fields.Many2... | 36.125 | 2,601 |
1,387 | py | PYTHON | 15.0 | # Copyright 2020 Akretion (https://www.akretion.com).
# @author Raphaël Reverdy <raphael.reverdy@akretion.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
product_default_wei... | 35.538462 | 1,386 |
650 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Product Cost Security",
"summary": "Product cost security restriction view",
"version": "15.0.2.0.0",
"development_status": "Production/Stable",
"maintainers": ["sergio-teruel"],
... | 38.235294 | 650 |
819 | py | PYTHON | 15.0 | # Copyright 2018 Sergio Teruel - Tecnativa <sergio.teruel@tecnativa.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
standard_price = fields.Float(groups="product_cost_security.gr... | 43.105263 | 819 |
332 | py | PYTHON | 15.0 | # Copyright 2018 Sergio Teruel - Tecnativa <sergio.teruel@tecnativa.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ProductProduct(models.Model):
_inherit = "product.product"
standard_price = fields.Float(groups="product_cost_security.group_pro... | 36.888889 | 332 |
613 | py | PYTHON | 15.0 | # Copyright 2018 Carlos Dauden - Tecnativa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Product Pricelist Revision",
"summary": "Product Pricelist Revision",
"version": "15.0.1.0.0",
"category": "Product",
"website": "https://github.com/OCA/product-attribute",
"aut... | 32.263158 | 613 |
4,583 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from datetime import datetime
from odoo.tests.common import TransactionCase
class TestProductPricelistRevision(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
... | 43.647619 | 4,583 |
1,406 | py | PYTHON | 15.0 | # Copyright 2018 Carlos Dauden - Tecnativa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ProductPricelistItem(models.Model):
_inherit = "product.pricelist.item"
name = fields.Char(search="_search_name")
previous_item_id = fields.Many2one(
... | 31.244444 | 1,406 |
1,487 | py | PYTHON | 15.0 | # Copyright 2018 Carlos Dauden - Tecnativa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from dateutil.relativedelta import relativedelta
from odoo import fields, models
class ProductPricelistItemDuplicateWizard(models.TransientModel):
_name = "product.pricelist.item.duplicate.wizard"
_des... | 39.131579 | 1,487 |
487 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Product Category Active",
"version": "15.0.1.0.0",
"category": "Product",
"summary": "Add option to archive product categories",
"author": "Tecnativa, Odoo Community Associat... | 34.785714 | 487 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.