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 |
|---|---|---|---|---|---|---|
3,434 | py | PYTHON | 15.0 | # Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr).
# @author Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from datetime import datetime
from odoo import fields
from odoo.tests import tagged
from odoo.addons.point_of_sale.tests.test_frontend i... | 39 | 3,432 |
3,558 | py | PYTHON | 15.0 | # Copyright 2021 Moka Tourisme (https://www.mokatourisme.fr).
# @author Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class EventSession(models.Model):
_inherit = "event.session"
pos_order_line_ids = fields.O... | 38.247312 | 3,557 |
1,419 | py | PYTHON | 15.0 | # Copyright 2021 Moka Tourisme (https://www.mokatourisme.fr).
# @author Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class PosOrderLine(models.Model):
_inherit = "pos.order.line"
event_session_id = fields.Many2on... | 34.585366 | 1,418 |
727 | py | PYTHON | 15.0 | # Copyright 2021 Moka Tourisme (https://www.mokatourisme.fr).
# @author Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class PosOrderReport(models.Model):
_inherit = "report.pos.order"
event_session_id = fields.Man... | 25.034483 | 726 |
1,466 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-pos",
description="Meta package for oca-pos Odoo addons",
version=version,
install_requires=[
'odoo-addon-pos_cash_move_reason>=15.0dev,<15.1dev',
'odoo-addon-po... | 43.117647 | 1,466 |
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 |
770 | py | PYTHON | 15.0 | # Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr).
# @author Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Point of Sale Registration QR Code",
"summary": "Print registration QR codes on Point of Sale receipts",
"author": ... | 36.619048 | 769 |
686 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa S.L. - David Vidal
# Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "POS Lot Selection",
"version": "15.0.1.0.1",
"category": "Point of Sale",
"author": "Tecnativa, Camptocamp, Odoo Community Association (OCA)",
... | 29.826087 | 686 |
797 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import api, models
from odoo.tools import float_compare
class ProductionLot(models.Model):
_inherit = "stock.production.lot"
@api.model
def get_available_lots_for_pos(self, product_id, company_id):
... | 26.566667 | 797 |
783 | py | PYTHON | 15.0 | # Copyright 2020 Lorenzo Battistini @ TAKOBI
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
{
"name": "Point of sale - Supplier barcodes",
"summary": "Search products by supplier barcode",
"version": "15.0.1.0.0",
"development_status": "Beta",
"category": "Point Of Sale",
"webs... | 30.115385 | 783 |
525 | py | PYTHON | 15.0 | import json
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
# technical field used in POS frontend
supplier_barcode_json = fields.Char(
"Supplier barcode list", readonly=True, compute="_compute_supplier_barcode_json"
)
def _compute_supp... | 30.882353 | 525 |
531 | py | PYTHON | 15.0 | # copyright 2020 Akretion David BEAL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Point Of Sale Default Partner",
"summary": "Add a default customer in pos order",
"license": "AGPL-3",
"version": "15.0.1.0.0",
"author": "Akretion," "Odoo Community Association (OCA... | 33.1875 | 531 |
4,824 | py | PYTHON | 15.0 | from odoo import fields
from odoo.tests.common import TransactionCase
class TestPosDefaultPartner(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.config = cls.env["pos.config"].create({"name": "DEMO Config"})
# Create a new cash payment method
cls.... | 36.824427 | 4,824 |
308 | py | PYTHON | 15.0 | # Copyright 2020 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class PosConfig(models.Model):
_inherit = "pos.config"
default_partner_id = fields.Many2one(
comodel_name="res.partner",
string="Default Customer",
)
| 22 | 308 |
524 | py | PYTHON | 15.0 | # copyright 2020 Akretion David BEAL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, models
class PosOrder(models.Model):
_inherit = "pos.order"
@api.model
def _complete_values_from_session(self, session, values):
result = super()._complete_values_from_... | 34.933333 | 524 |
848 | py | PYTHON | 15.0 | # Copyright (C) 2013 - 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.html).
{
"name": "Point Of Sale - Change Payments",
"version": "15.0.1.0.0",
"summary": "Allow cashier to change order payments... | 36.869565 | 848 |
6,597 | py | PYTHON | 15.0 | # Copyright (C) 2018 - 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.html).
from odoo import fields
from odoo.exceptions import UserError
from odoo.tests.common import TransactionCase
class TestModule(Tran... | 36.04918 | 6,597 |
1,977 | py | PYTHON | 15.0 | # Copyright (C) 2020 - 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.html).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class PosConfig(models.Model):
_inherit =... | 38.764706 | 1,977 |
3,793 | py | PYTHON | 15.0 | # Copyright (C) 2015 - Today: GRAP (http://www.grap.coop)
# @author: Julien WESTE
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from datetime import datetime
from odoo import _, fields, models
from odoo.exceptions import Warning as Us... | 37.554455 | 3,793 |
1,111 | py | PYTHON | 15.0 | # Copyright (C) 2015 - 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.html).
from odoo import fields, models
class PosPaymentChangeWizardOldLine(models.TransientModel):
_name = "pos.payment.change.wizar... | 29.236842 | 1,111 |
3,619 | py | PYTHON | 15.0 | # Copyright (C) 2015-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.html).
from odoo import _, api, fields, models
from odoo.exceptions import UserError
class PosPaymentChangeWizard(models.TransientModel):
... | 34.141509 | 3,619 |
1,767 | py | PYTHON | 15.0 | # Copyright (C) 2015 - 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.html).
from odoo import api, fields, models
class PosPaymentChangeWizardLine(models.TransientModel):
_name = "pos.payment.change.wiz... | 32.127273 | 1,767 |
572 | py | PYTHON | 15.0 | # copyright Odoo SA
# copyright OCA
# Licence : LGPL-3
{
"name": "POS report Session Summary",
"version": "15.0.1.0.0",
"category": "Point Of Sale",
"summary": "Adds a Session Summary PDF report on the POS session",
"author": "Akretion, Odoo SA, Odoo Community Association (OCA)",
"license": "LG... | 31.777778 | 572 |
1,886 | py | PYTHON | 15.0 | # Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr).
# @author Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from odoo import SUPERUSER_ID, api
from odoo.tools.sql import column_exists, create_column
_logger = logging.getLogger(__... | 41.888889 | 1,885 |
1,518 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Point of Sale Events",
"summary": "Sell events from Point of Sale",
"author": "Camptocamp, Odoo Community Associat... | 36.119048 | 1,517 |
3,375 | py | PYTHON | 15.0 | # Copyright 2023 Camptocamp SA (https://www.camptocamp.com).
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import tagged
from .common import TestPoSEventCommon
@tagged("post_install", "-at_install")
class TestPoSEvent(TestPoSEventCommon):
@classmethod
def setUpClass(cls):
... | 37.921348 | 3,375 |
1,083 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp SA (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import tagged
from .common import TestPoSEventHttpCommon
@tagged("post_install", "-at_install")
class TestPoSEventH... | 34.903226 | 1,082 |
8,682 | py | PYTHON | 15.0 | # Copyright 2023 Camptocamp SA (https://www.camptocamp.com).
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from random import randint
from odoo import fields
from odoo.addons.point_of_sale.tests.common import TestPoSCommon
from odoo.addons.point_of_sale.tests.test_frontend import TestPointOfSaleHt... | 38.074561 | 8,681 |
2,823 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
from odoo.tools import float_is_zero
class EventRegistration(models.Model):
_inherit = "event.... | 36.179487 | 2,822 |
1,995 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class PosConfig(models.Model):
_inherit = "pos.config"
iface_event_sale = fields.Boolean(... | 36.254545 | 1,994 |
5,237 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
class PosOrderLine(models.Model):
_inherit = "pos.order.line"
event_ticket_id = fields... | 37.4 | 5,236 |
3,666 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class Event(models.Model):
_inherit = "event.event"
pos_order_line_ids = fields.One2many(... | 38.177083 | 3,665 |
1,975 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class PosOrder(models.Model):
_inherit = "pos.order"
event_registrations_count = fields.Intege... | 35.25 | 1,974 |
590 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class EventTypeTicket(models.Model):
_inherit = "event.type.ticket"
available_in_pos = fields.... | 36.8125 | 589 |
1,133 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class PosOrderReport(models.Model):
_inherit = "report.pos.order"
event_ticket_id = fields.Man... | 26.325581 | 1,132 |
740 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "POS Lot Barcode",
"summary": "Scan barcode to enter lot/serial numbers",
"version": "15.0.1.0.0",
"development_status": "Alpha",
"category": "Sales/Point of Sale",
"website": "https://github... | 29.6 | 740 |
734 | py | PYTHON | 15.0 | # Copyright 2020 Lorenzo Battistini @ TAKOBI
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
{
"name": "Point of sale - Search products by supplier",
"summary": "Search products by supplier data",
"version": "15.0.1.0.0",
"development_status": "Beta",
"category": "Point Of Sale",
... | 30.583333 | 734 |
789 | py | PYTHON | 15.0 | import json
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
supplier_data_json = fields.Char(
"Supplier data dict",
help="Technical field: Used in POS frontend to search products by supplierinfo",
compute="_compute_supplier_data_json... | 30.346154 | 789 |
588 | py | PYTHON | 15.0 | {
"name": "PoS Product Display Default Code",
"summary": "pos: display product default code before product name",
"version": "15.0.1.0.0",
"category": "Point of Sale",
"website": "https://github.com/OCA/pos",
"author": "Odoo Community Association (OCA), Akretion",
"license": "AGPL-3",
"a... | 28 | 588 |
676 | py | PYTHON | 15.0 | # Copyright (C) 2022 - Today: camptocamp (https://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "PoS Hide Cost and Margin",
"summary": "Hide Cost and Margin on PoS",
"version": "15.0.1.0.1",
"category": "Point Of Sale",
"author": "CampToCamp, Odo... | 29.391304 | 676 |
750 | py | PYTHON | 15.0 | # Copyright 2021 Akretion - Florian Mounier
{
"name": "POS Receipt Hide Price",
"summary": "Add button to remove price from receipt.",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/pos",
"category": "Point of Sale",
"version": "15.0.1.0.0",
"licen... | 35.714286 | 750 |
773 | py | PYTHON | 15.0 | # Copyright 2020 Lorenzo Battistini @ TAKOBI
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
{
"name": "Point of Sale - Restrict users",
"summary": "Restrict some users to see and use only certain points of sale",
"version": "15.0.1.0.0",
"development_status": "Beta",
"category": "P... | 32.208333 | 773 |
3,258 | py | PYTHON | 15.0 | from odoo.tests.common import TransactionCase
class TestUserRestriction(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(
context=dict(
cls.env.context,
tracking_disable=True,
no_reset_passwor... | 37.448276 | 3,258 |
645 | py | PYTHON | 15.0 | from odoo import models
class PosSession(models.Model):
_inherit = "pos.session"
def set_cashbox_pos(self, cashbox_value, notes):
if self.env.user.has_group(
"pos_user_restriction.group_assigned_points_of_sale_user"
):
self = self.with_context(bypass_pos_user=True)
... | 33.947368 | 645 |
979 | py | PYTHON | 15.0 | from odoo import api, fields, models
class PosConfig(models.Model):
_inherit = "pos.config"
assigned_user_ids = fields.Many2many(
"res.users",
string="Assigned users",
help="Restrict some users to only access their assigned points of sale."
"In order to apply the restriction, ... | 33.758621 | 979 |
668 | py | PYTHON | 15.0 | from odoo import api, models
from odoo.tools import ormcache
class ResUsers(models.Model):
_inherit = "res.users"
@api.model
def has_group(self, group_ext_id):
if group_ext_id == "point_of_sale.group_pos_user" and self.env.context.get(
"bypass_pos_user"
):
return T... | 27.833333 | 668 |
748 | py | PYTHON | 15.0 | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "POS cash in-out reason",
"summary": """""",
"author": "ACSONE SA/NV," "GRAP," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/pos",
"category": "P... | 35.619048 | 748 |
3,759 | py | PYTHON | 15.0 | # © 2015 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.exceptions import UserError
from odoo.tests.common import Form, TransactionCase
class TestPosCashMoveReason(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass(... | 36.134615 | 3,758 |
3,601 | py | PYTHON | 15.0 | # © 2015 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
from odoo.exceptions import UserError
class WizardPosMoveReason(models.TransientModel):
_name = "wizard.pos.move.reason"
_description = "PoS Move Reasons Wiz... | 33.027523 | 3,600 |
1,598 | py | PYTHON | 15.0 | # Copyright (C) 2019-Today: GTRAP (<http://www.grap.coop/>)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class PosSession(models.Model):
_inherit = "pos.session"
display_move_reason_income = ... | 35.511111 | 1,598 |
1,698 | py | PYTHON | 15.0 | # Copyright (C) 2019-Today: GTRAP (<http://www.grap.coop/>)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class PosMoveReason(models.Model):
_name = "pos.move.reason"
_description = "PoS -... | 28.779661 | 1,698 |
777 | py | PYTHON | 15.0 | # Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr).
# @author Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "POS Sale and POS Event Sale Session",
"summary": "Glue module between pos_sale and pos_event_sale_session",
"versio... | 36.952381 | 776 |
685 | py | PYTHON | 15.0 | # Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr).
# @author Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
def read_converted(self):
# OVE... | 38 | 684 |
834 | py | PYTHON | 15.0 | # Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr).
# @author Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "POS Sale and POS Event Sale",
"summary": "Glue module between pos_sale and pos_event_sale",
"version": "15.0.1.0.0"... | 34.708333 | 833 |
5,443 | py | PYTHON | 15.0 | # Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr).
# @author Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from datetime import datetime
from odoo import fields
from odoo.tests import RecordCapturer, tagged
from odoo.addons.point_of_sale.tests... | 41.534351 | 5,441 |
696 | py | PYTHON | 15.0 | # Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr).
# @author Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
def read_converted(self):
# OVE... | 38.611111 | 695 |
2,455 | py | PYTHON | 15.0 | # Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr).
# @author Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from collections import defaultdict
from odoo import models
class PosOrderLine(models.Model):
_inherit = "pos.order.line"
def ... | 45.444444 | 2,454 |
552 | py | PYTHON | 15.0 | # Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
"name": "Account Invoice Payment Block",
"version": "15.0.1.0.0",
"summary": "Module to block payment of invoices",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://gith... | 30.666667 | 552 |
843 | py | PYTHON | 15.0 | # Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from odoo.exceptions import UserError
from odoo.tests import TransactionCase
class TestAccountInvoice(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
# create an invoice... | 38.318182 | 843 |
720 | py | PYTHON | 15.0 | # Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from odoo import _, fields, models
from odoo.exceptions import UserError
class AccountMove(models.Model):
_inherit = "account.move"
payment_blocked = fields.Boolean(
help="if true, the payment of the i... | 30 | 720 |
619 | py | PYTHON | 15.0 | # Copyright 2011-2016 Agile Business Group
# Copyright 2017 Alex Comba - Agile Business Group
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Force Invoice Number",
"version": "15.0.1.0.0",
"category": "Accounting & Finance",
"summary": "Allows to force invoice numbering on sp... | 41.266667 | 619 |
2,032 | py | PYTHON | 15.0 | # Copyright 2016 Davide Corio - davidecorio.com
# Copyright 2017 Alex Comba - Agile Business Group
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo.exceptions import UserError
from odoo.tests import tagged
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
@tagged("pos... | 35.649123 | 2,032 |
1,184 | py | PYTHON | 15.0 | # Copyright 2019 Ecosoft Co., Ltd (https://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import _, fields, models
from odoo.exceptions import UserError
class AccountMove(models.Model):
_inherit = "account.move"
move_name = fields.Char(
string="Force N... | 32.888889 | 1,184 |
569 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Display invoices date due when using payment terms",
"version": "15.0.1.1.0",
"author": "Camptocamp, Odoo Commu... | 37.866667 | 568 |
649 | py | PYTHON | 15.0 | # Copyright 2015 - Camptocamp SA - Author Vincent Renaville
# Copyright 2016 - Tecnativa - Angel Moya <odoo@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Tax required in invoice",
"version": "15.0.1.0.1",
"author": "Camptocamp,Tecnativa,Punt Sistemes, " "Odoo Comm... | 43.266667 | 649 |
3,224 | py | PYTHON | 15.0 | # Copyright 2016 - Tecnativa - Angel Moya <odoo@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import exceptions
from odoo.tests import tagged
from odoo.addons.account.tests.common import TestAccountReconciliationCommon
@tagged("post_install", "-at_install")
class TestAccou... | 37.057471 | 3,224 |
2,017 | py | PYTHON | 15.0 | # Copyright 2015 - Camptocamp SA - Author Vincent Renaville
# Copyright 2016 - Tecnativa - Angel Moya <odoo@tecnativa.com>
# Copyright 2019 - Tecnativa - Pedro M. Baeza
# Copyright 2019 - Punt Sistemes - Juan Vicente Pascual
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import SUPERUSER_ID,... | 37.351852 | 2,017 |
765 | py | PYTHON | 15.0 | # Copyright 2004-2010 Tiny SPRL (http://tiny.be).
# Copyright 2010-2011 Elico Corp.
# Copyright 2016 Acsone (https://www.acsone.eu/)
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2019 Okia SPRL
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.ht... | 33.26087 | 765 |
7,034 | py | PYTHON | 15.0 | # Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.exceptions import UserError
from odoo.tests.common import TransactionCase
class TestAccountInvoiceMerge(TransactionCase):
"""
Tests for... | 35.346734 | 7,034 |
3,440 | py | PYTHON | 15.0 | # Copyright 2004-2010 Tiny SPRL (http://tiny.be).
# Copyright 2010-2011 Elico Corp.
# Copyright 2016 Acsone (https://www.acsone.eu/)
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2019 Okia SPRL
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.ht... | 37.391304 | 3,440 |
9,573 | py | PYTHON | 15.0 | # Copyright 2004-2010 Tiny SPRL (http://tiny.be).
# Copyright 2010-2011 Elico Corp.
# Copyright 2016 Acsone (https://www.acsone.eu/)
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2019 Okia SPRL
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.ht... | 40.222689 | 9,573 |
582 | py | PYTHON | 15.0 | # Copyright 2017 ForgeFlow S.L.
# (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
{
"name": "Account Invoice View Payment",
"summary": "Access to the payment from an invoice",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"website": "https://g... | 36.375 | 582 |
5,440 | py | PYTHON | 15.0 | # Copyright 2017 ForgeFlow S.L.
# (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import fields
from odoo.tests.common import TransactionCase
class TestAccountInvoiceViewPayment(TransactionCase):
"""
Tests for Account Invoice View Payment.
... | 34.871795 | 5,440 |
1,257 | py | PYTHON | 15.0 | # Copyright 2017 ForgeFlow S.L.
# (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import models
class AccountMove(models.Model):
_inherit = "account.move"
def action_view_payments(self):
"""
This function returns an action tha... | 36.970588 | 1,257 |
1,501 | py | PYTHON | 15.0 | # Copyright 2017 ForgeFlow S.L.
# (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo import _, models
class AccountPayment(models.Model):
_inherit = "account.payment"
def post_and_open_payment(self):
self.action_post()
res = {
... | 31.93617 | 1,501 |
472 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Account Portal Invoice Search",
"version": "15.0.1.0.0",
"category": "Accounting",
"website": "https://github.com/OCA/account-invoicing",
"author": "Tecnativa, Odoo Community Associat... | 33.714286 | 472 |
1,063 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
from odoo.osv import expression
class AccountMove(models.Model):
_inherit = "account.move"
@api.model
def _get_portal_search_domain(self, portal_invoice_filter):
... | 36.655172 | 1,063 |
1,908 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _
from odoo.http import request, route
from odoo.addons.account.controllers.portal import PortalAccount
from odoo.addons.portal.controllers.portal import pager as portal_pager
class PortalA... | 38.16 | 1,908 |
724 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Account Invoice Check Picking Date",
"summary": "Check if date of pickings match with accounting date",
"version": "15.0.1.1.0",
"development_status": "Production/Stable",
"category... | 36.2 | 724 |
2,569 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, models
from odoo.tools import config
class AccountMove(models.Model):
_inherit = "account.move"
def _get_min_max_stock_move_dates(self):
self.ensure_one()
moves = s... | 39.523077 | 2,569 |
936 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, fields, models
class InvoicePickingDateCheckWiz(models.TransientModel):
_name = "invoice.picking.date.check.wiz"
_description = "Invoice and picking date check wizard"
invoice_... | 32.275862 | 936 |
656 | py | PYTHON | 15.0 | import logging
from odoo import tools
_logger = logging.getLogger(__name__)
def pre_init_hook(cr):
"""
Initializing column custom_rate on table account_move
for the improvement in performance to avoid long
duration in databases with thousand of moves
"""
_logger.info("Initializing column cus... | 22.62069 | 656 |
675 | py | PYTHON | 15.0 | # Copyright 2017 Komit <http://komit-consulting.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Account Invoice - Change Currency",
"version": "15.0.2.0.0",
"category": "Accounting & Finance",
"summary": "Allows to change currency of Invoice by wizard",
"author"... | 37.5 | 675 |
12,032 | py | PYTHON | 15.0 | # Copyright 2018 Komit <http://komit-consulting.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import odoo.tests.common as common
from odoo import fields
from odoo.tools import float_compare
class TestAccountInvoiceChangeCurrency(common.TransactionCase):
def setUp(self):
super(... | 38.812903 | 12,032 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.