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 |
|---|---|---|---|---|---|---|
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 |
720 | py | PYTHON | 15.0 | # Copyright 2013-2014 Camptocamp SA - Guewen Baconnier
# © 2016-20 ForgeFlow S.L. (https://www.forgeflow.com)
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Sale Procurement Group by Line",
"summary": "Base module for multiple procureme... | 35.9 | 718 |
5,675 | py | PYTHON | 15.0 | # Copyright 2013-2014 Camptocamp SA - Guewen Baconnier
# © 2016-20 ForgeFlow S.L. (https://www.forgeflow.com)
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import Form
from odoo.tests.common import TransactionCase
class TestSaleProcurem... | 40.81295 | 5,673 |
644 | py | PYTHON | 15.0 | # Copyright 2022 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class StockMove(models.Model):
_inherit = "stock.move"
def _update_candidate_moves_list(self, candidate_moves_list):
"""
We want to merge stock ... | 33.894737 | 644 |
4,885 | py | PYTHON | 15.0 | # Copyright 2013-2014 Camptocamp SA - Guewen Baconnier
# © 2016-20 ForgeFlow S.L. (https://www.forgeflow.com)
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
from odoo.tools.float_utils import float_compare
class SaleOrder... | 41.033613 | 4,883 |
646 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Sale Order Product Assortment",
"summary": "Module that allows to use the assortments on sale orders",
"version": "15.0.2.0.0",
"development_status": "Beta",
"category": "Sales",
... | 38 | 646 |
2,557 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestProductAssortment(TransactionCase):
def setUp(self):
super().setUp()
self.filter_obj = self.env["ir.filters"]
self.product_obj ... | 46.490909 | 2,557 |
1,425 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Carlos Roca
# Copyright 2023 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
from odoo.osv import expression
class SaleOrder(models.Model):
_inherit = "sale.order"
allowed_product_ids = fields.Many2ma... | 37.5 | 1,425 |
1,001 | py | PYTHON | 15.0 | # Copyright 2014-2021 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# Copyright 2016-2021 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Sale Rental",
"version": "15.0.1.0.1",
"category": "Sales",... | 35.75 | 1,001 |
2,492 | py | PYTHON | 15.0 | from odoo.exceptions import UserError
from odoo.tests import Form
from odoo.tests.common import TransactionCase
class TestSaleRental(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.test_rental_prod = cls.env.ref("sale_rental.rent_product_product_25")
cls.te... | 41.533333 | 2,492 |
3,418 | py | PYTHON | 15.0 | # Copyright 2014-2021 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# Copyright 2016-2021 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import UserError
cl... | 37.56044 | 3,418 |
10,321 | py | PYTHON | 15.0 | # Copyright 2014-2021 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# Copyright 2016-2021 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from odoo import _, api, fields, models
from odoo.exceptions impor... | 41.119522 | 10,321 |
14,256 | py | PYTHON | 15.0 | # Copyright 2014-2021 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# Copyright 2016-2021 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from dateutil.relativedelta import relativedelta
from odoo import _, api... | 40.385269 | 14,256 |
1,018 | py | PYTHON | 15.0 | # Copyright 2014-2021 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# Copyright 2016-2021 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models
class StockInventory(models.Model):
_inherit = ... | 36.357143 | 1,018 |
7,411 | py | PYTHON | 15.0 | # Copyright 2014-2021 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# Copyright 2016-2021 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from odoo import api, fields, models
logger = logging.getLogger(_... | 33.084821 | 7,411 |
3,349 | py | PYTHON | 15.0 | # Copyright 2014-2021 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# Copyright 2016-2021 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationErro... | 39.869048 | 3,349 |
1,006 | py | PYTHON | 15.0 | # Copyright 2014-2021 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# Copyright 2016-2021 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class StockRule(models.Model):
_inherit = "s... | 41.916667 | 1,006 |
704 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Product Supplierinfo for Customers Elaboration",
"summary": "Allows to define default elaborations and elaboration notes on product"
" customerinfos",
"version": "15.0.2.0.1",
"d... | 44 | 704 |
308 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
openupgrade.rename_columns(
env.cr, {"product_customerinfo": [("elaboration_id", None)]}
)
| 28 | 308 |
403 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
openupgrade.m2o_to_x2m(
env.cr,
env["product.customerinfo"],
"product_customerinfo",
... | 25.1875 | 403 |
2,963 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from odoo.tests.common import Form, TransactionCase
class TestCustomerinfoElaboration(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.customer0 = cls.env["... | 43.573529 | 2,963 |
623 | 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 api, fields, models
class ProductCustomerInfo(models.Model):
_inherit = "product.customerinfo"
elaboration_ids = fields.Many2many(comodel_name="product.elaboration")
elaboration... | 32.789474 | 623 |
1,823 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Carlos Roca
# Copyright 2023 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
elaboration_ids = fields.Many2many(
comodel_na... | 35.745098 | 1,823 |
612 | py | PYTHON | 15.0 | # Copyright 2018-2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Sale Credit Points",
"version": "15.0.1.0.1",
"category": "Sales",
"license": "AGPL-3",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OC... | 27.818182 | 612 |
2,326 | py | PYTHON | 15.0 | # Copyright 2018-2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import exceptions
from odoo.tests.common import TransactionCase
class TestWizard(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.partner = (
c... | 30.207792 | 2,326 |
2,228 | py | PYTHON | 15.0 | # Copyright 2018-2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestHistory(TransactionCase):
def setUp(self):
super().setUp()
self.history_model = self.env["credit.point.history"]
self.partner = (
... | 37.762712 | 2,228 |
2,907 | py | PYTHON | 15.0 | # Copyright 2018-2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import exceptions
from odoo.tests.common import TransactionCase
class TestCredit(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.partner = (
c... | 36.3375 | 2,907 |
4,161 | py | PYTHON | 15.0 | # Copyright 2018-2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import exceptions
from odoo.tests.common import tagged
from odoo.addons.sale.tests.common import TestSaleCommon
@tagged("post_install", "-at_install")
class TestSaleOrder(TestSaleCommon):
def setUp(self... | 37.827273 | 4,161 |
2,331 | py | PYTHON | 15.0 | # Copyright 2018-2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, models, tools
from odoo.exceptions import UserError
class SaleOrder(models.Model):
_inherit = "sale.order"
def credit_point_check(self, user=None):
"""Verify order amount agai... | 38.85 | 2,331 |
3,535 | py | PYTHON | 15.0 | # Copyright 2018-2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, api, exceptions, fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
credit_point = fields.Monetary(
string="Points Attribution",
currency_field="c... | 36.071429 | 3,535 |
963 | py | PYTHON | 15.0 | # Copyright 2018-2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
POINT_OPERATIONS = [
("replace", "Replace"),
("increase", "Increase"),
("decrease", "Decrease"),
]
class PointHistory(models.Model):
_name = "credit.point.history"... | 25.342105 | 963 |
1,179 | py | PYTHON | 15.0 | # Copyright 2018-2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, exceptions, fields, models
from ..models.point_history import POINT_OPERATIONS
class ManageCreditPoint(models.TransientModel):
_name = "wiz.manage.credit.point"
_description = "Wizard... | 31.026316 | 1,179 |
537 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Partner Sale Pivot",
"summary": "Sales analysis from customer form view",
"version": "15.0.1.0.0",
"category": "Sales",
"website": "https://github.com/OCA/sale-workflow",
"autho... | 38.357143 | 537 |
734 | py | PYTHON | 15.0 | # Copyright 2013-2014 Camptocamp SA - Guewen Baconnier
# © 2016-17 Eficent Business and IT Consulting Services S.L.
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Sale Sourced by Line",
"summary": "Multiple warehouse source locati... | 31.826087 | 732 |
4,879 | py | PYTHON | 15.0 | # Copyright 2013-2014 Camptocamp SA - Guewen Baconnier
# © 2016 Eficent Business and IT Consulting Services S.L.
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase
class TestSaleSourcedByLine(TransactionCa... | 36.125926 | 4,877 |
2,496 | py | PYTHON | 15.0 | # Copyright 2013-2014 Camptocamp SA - Guewen Baconnier
# © 2016 Eficent Business and IT Consulting Services S.L.
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class SaleOrder(models.Model):
_inherit = "sale.or... | 34.638889 | 2,494 |
574 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Sale Stock Return Request",
"version": "15.0.1.0.0",
"category": "Stock",
"website": "https://github.com/OCA/sale-workflow",
"development_status": "Beta",
"author": "Tecnativa, Odo... | 35.875 | 574 |
7,870 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.stock_return_request.tests.test_stock_return_request_common import (
StockReturnRequestCase,
)
class SaleReturnRequestCase(StockReturnRequestCase):
@classmethod
def setUpClass(cls):
... | 40.56701 | 7,870 |
1,488 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class StockReturnRequest(models.Model):
_inherit = "stock.return.request"
sale_order_ids = fields.Many2many(
comodel_name="sale.order",
string="Involve... | 36.292683 | 1,488 |
766 | py | PYTHON | 15.0 | # Copyright 2018-2020 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Sale Order Secondary Unit",
"summary": "Sale product in a secondary unit",
"version": "15.0.2.0.0",
"development_status": "Production/Stable",
"category": "Sale",
"website"... | 34.818182 | 766 |
4,805 | py | PYTHON | 15.0 | # Copyright 2018-2020 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import Form, TransactionCase, tagged
@tagged("post_install", "-at_install")
class TestSaleOrderSecondaryUnit(TransactionCase):
@classmethod
def setUpClass(cls):
super().setU... | 43.681818 | 4,805 |
2,284 | py | PYTHON | 15.0 | # Copyright 2018-2020 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class SaleOrderLine(models.Model):
_inherit = ["sale.order.line", "product.secondary.unit.mixin"]
_name = "sale.order.line"
_secondary_unit_fields = {
... | 36.83871 | 2,284 |
3,003 | py | PYTHON | 15.0 | # Copyright 2018-2020 Tecnativa - Sergio Teruel
# 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"
sale_secondary_uom_id = fields.Many2one(
comodel_name="product.secondary.unit",
... | 41.708333 | 3,003 |
631 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProductProduct(models.Model):
_inherit = "product.product"
sale_secondary_uom_id = fields.Many2one(
comodel_name="product.secondary.unit",
string="... | 37.117647 | 631 |
1,029 | 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": "Sale payment sheet",
"summary": "Allow to create invoice payments to commercial users without "
"accounting permissions",
"version": "15.0.1.1... | 36.75 | 1,029 |
6,451 | 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 freezegun import freeze_time
from odoo.exceptions import UserError, ValidationError
from odoo.tests import Form, TransactionCase
@freeze_time("2021-01-01 09:30:... | 41.089172 | 6,451 |
12,334 | 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 _, api, fields, models
from odoo.exceptions import UserError, ValidationError
from odoo.tools import float_compare
class SalePaymentSheet(models.Mode... | 35.24 | 12,334 |
387 | 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 ResUsers(models.Model):
_inherit = "res.users"
commercial_journal_ids = fields.Many2many(
comodel_name="account... | 27.642857 | 387 |
5,092 | 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 import api, fields, models
class SaleInvoicePaymentWiz(models.TransientModel):
_name = "sale.invoice.payment.wiz"
_description = "Sale invoice ... | 36.371429 | 5,092 |
779 | py | PYTHON | 15.0 | # Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Sale Order Product Recommendation",
"summary": "Recommend products to sell to customer based on history",
"version": "15.0.1.1.0",... | 33.869565 | 779 |
7,655 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - Jairo Llopis
# Copyright 2020 Tecnativa - Pedro M. Baeza
# Copyright 2021 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from freezegun import freeze_time
from odoo.exceptions import UserError
from .test_recommendation_common import Recommenda... | 44.754386 | 7,653 |
4,679 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from freezegun import freeze_time
from odoo.tests.common import TransactionCase
@freeze_time("2021-10-02 15:30:00")
class RecommendationCase(TransactionCase):
@classmethod
def setUpClass(cls):
su... | 34.659259 | 4,679 |
323 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
# Add database index to get last sale price query performance
product_id = fields.Many2one(index=Tru... | 29.363636 | 323 |
926 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Sergio Teruel
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
default_sale_recommendation_price_origin = fields.Selection(
[("pricelist", "Pricelist"), ("last_sale_price", "Last sale price")],
strin... | 31.931034 | 926 |
11,068 | py | PYTHON | 15.0 | # Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
# Copyright 2018 Carlos Dauden <carlos.dauden@tecnativa.com>
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from datetime import datetime, timedelta
from odoo import api, fields, mode... | 38.835088 | 11,068 |
799 | py | PYTHON | 15.0 | # Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
{
"name": "Sales Invoice Plan",
"summary": "Add to sales order, ability to manage future invoice plan",
"version": "15.0.1.3.2",
"author": "Ecosoft,Odoo Community Association (... | 34.73913 | 799 |
12,802 | py | PYTHON | 15.0 | # Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import logging
from odoo import _, fields
from odoo.exceptions import UserError, ValidationError
from odoo.tests import Form, tagged
from odoo.addons.sale.tests import common
_logger = logging.get... | 40.64127 | 12,802 |
601 | py | PYTHON | 15.0 | # Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import models
class SaleAdvancePaymentInv(models.TransientModel):
_inherit = "sale.advance.payment.inv"
def _create_invoice(self, order, so_line, amount):
invoice =... | 40.066667 | 601 |
1,552 | py | PYTHON | 15.0 | # Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# 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 SaleCreateInvoicePlan(models.TransientModel):
_name = "sale.create.invoice.plan"
_description... | 31.04 | 1,552 |
1,229 | py | PYTHON | 15.0 | # Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import models
class SaleAdvancePaymentInv(models.TransientModel):
_name = "sale.make.planned.invoice"
_description = "Wizard when create invoice by plan"
def create_inv... | 47.269231 | 1,229 |
7,285 | py | PYTHON | 15.0 | from odoo import _, api, fields, models
from odoo.exceptions import UserError, ValidationError
from odoo.tools.float_utils import float_compare, float_round
class SaleInvoicePlan(models.Model):
_name = "sale.invoice.plan"
_description = "Invoice Planning Detail"
_order = "installment"
sale_id = field... | 35.8867 | 7,285 |
5,796 | py | PYTHON | 15.0 | # Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from dateutil.relativedelta import relativedelta
from odoo import _, api, fields, models
from odoo.exceptions import UserError, ValidationError
from odoo.tools.float_utils import float_round
... | 39.69863 | 5,796 |
688 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Sale Invoice Blocking",
"summary": "Allow you to block the creation of invoices from a sale order.",
"version": "15.0.1.0.0",
"author": "Camptocamp, " "Odoo Community Association (OCA)",
... | 32.761905 | 688 |
502 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class InvoiceBlockingReason(models.Model):
_name = "invoice.blocking.reason"
_description = "Sale invoice blocking reason"
name = fields.Char(string="Reason", required=True)
... | 27.888889 | 502 |
1,338 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import UserError
class SaleOrder(models.Model):
_inherit = "sale.order"
invoice_blocking_reason_id = fields.Many2one(
"invoice.blocking.reason",
... | 30.409091 | 1,338 |
453 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Sale Force Whole Invoiceability",
"version": "15.0.1.0.0",
"category": "Sales",
"author": "Tecnativa," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale... | 34.846154 | 453 |
3,965 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.exceptions import UserError
from odoo.tests import Form, common, new_test_user, users
class SaleOrderForceInvoiceability(common.TransactionCase):
@classmethod
def setUpClass(cls):
super(... | 42.634409 | 3,965 |
987 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import _, models
from odoo.exceptions import UserError
class SaleOrder(models.Model):
_inherit = "sale.order"
def force_lines_to_invoice_policy_order(self):
"""Wrapper to launch th... | 36.555556 | 987 |
812 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Product Last Price Info - Sale",
"version": "15.0.1.0.1",
"author": "AvanzOSC, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow",
"category": "Sales",
"license": "AGPL-... | 36.909091 | 812 |
1,202 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import odoo.tests.common as common
class TestSaleLastPriceInfo(common.TransactionCase):
def setUp(self):
super(TestSaleLastPriceInfo, self).setUp()
self.sale_order_model = self.env["sale.order"]
self.sale_line_model = se... | 42.928571 | 1,202 |
1,094 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ProductProduct(models.Model):
_inherit = "product.product"
def _compute_last_sale(self):
"""Get last sale price, last sale date and last customer"""
so_line_obj = self.env["sale.order.l... | 39.071429 | 1,094 |
317 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
date_order_sale_last_price_info = fields.Datetime(
string="Order date", related="order_id.date_order", store=True, index=True
)
| 28.818182 | 317 |
521 | py | PYTHON | 15.0 | # Copyright 2021 Akretion - Florian Mounier
{
"name": "Sale Order Report Without Price",
"summary": "Allow you to generate quotation and order reports without price.",
"version": "15.0.1.0.0",
"author": "Akretion, Open Source Integrators, Odoo Community Association (OCA)",
"website": "https://github... | 34.733333 | 521 |
602 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Attached products in sales",
"summary": "Define products that will be added automatically when adding another "
"in a sales order",
"version": "15.0.1.0.0",
"development_status": "Bet... | 37.625 | 602 |
7,218 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import Form, TransactionCase
class TestSaleAttachedProduct(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
# No need for tracking and we scratch so... | 41.011364 | 7,218 |
9,386 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class SaleOrder(models.Model):
_name = "sale.order"
_inherit = ["sale.order", "sale.attached.product.mixin"]
@api.model
def _get_auto_refresh_attached_product... | 44.065728 | 9,386 |
1,492 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class SaleAttachedProductMixin(models.AbstractModel):
_name = "sale.attached.product.mixin"
_description = "Mixin class for sale attached product features"
@api.model
... | 37.3 | 1,492 |
547 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
attached_product_ids = fields.Many2many(
comodel_name="product.product",
relation="produ... | 36.466667 | 547 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.