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 |
|---|---|---|---|---|---|---|
290 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class AccountBankStatementLine(models.Model):
_inherit = "account.bank.statement.line"
date_due = fields.Date(string="Due date")
| 28.8 | 288 |
577 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Auto-refresh delivery",
"summary": "Auto-refresh delivery price in sales orders",
"version": "15.0.1.0.1",
"category": "Delivery",
"website": "https://github.com/OCA/delivery-carr... | 36.0625 | 577 |
591 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Pilar Vargas
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
"""Remove system parameter records of 'delivery_auto_refresh' with value 0 or False,
to avoid their activation... | 34.764706 | 591 |
13,333 | py | PYTHON | 15.0 | # Copyright 2018-2023 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import Form, common, tagged
def _execute_onchanges(records, field_name):
"""Helper methods that executes all onchanges associated to a field."""
for onchange in records._onchange_... | 44.0033 | 13,333 |
6,253 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Pedro M. Baeza
# Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class SaleOrder(models.Model):
_inherit = "sale.order"
available_carrier_ids = fields.Many2many(
comodel_name="de... | 41.138158 | 6,253 |
3,527 | py | PYTHON | 15.0 | # Copyright 2018-2023 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class StockPicking(models.Model):
_inherit = "stock.picking"
def _add_delivery_cost_to_so(self):
"""Update delivery price in SO (no matter the type of carrier inv... | 41.494118 | 3,527 |
905 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Pilar Vargas Moreno
# 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"
set_default_carrier = fields.Boolean(
"Set Default Carrier Automatically"... | 36.2 | 905 |
542 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Picking Delivery Link",
"summary": "Adds link to the delivery on all intermediate operations.",
"version": "15.0.1.0.1",
"author": "Camptocamp, Odoo Community Association (OCA)",
"we... | 36.133333 | 542 |
2,739 | py | PYTHON | 15.0 | # Copyright 2021-2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from .common import StockPickingDeliveryLinkCommonCase
class TestStockPickingDeliveryLink(StockPickingDeliveryLinkCommonCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.p... | 33.814815 | 2,739 |
1,116 | py | PYTHON | 15.0 | # Copyright 2020-2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests import TransactionCase
class StockPickingDeliveryLinkCommonCase(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(context=dict(cls.... | 34.875 | 1,116 |
1,549 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
def get_first_move_dest(moves, done=False):
move_states = ("cancel", "done")
for move in moves.move_dest_ids:
if done and move.state in move_... | 34.422222 | 1,549 |
832 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Delivery CTT Express",
"summary": "Delivery Carrier implementation for CTT Express API",
"version": "15.0.1.1.0",
"category": "Delivery",
"website": "https://github.com/OCA/delivery-c... | 39.619048 | 832 |
4,239 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
# Copyright 2022 Tecnativa - David Vidal
from odoo.exceptions import UserError
from odoo.tests import Form, common
class TestDeliveryCTTExpress(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.s... | 41.558824 | 4,239 |
2,144 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
# Master Data provided by CTT Express
CTTEXPRESS_SERVICES = [
("01V", "VALIJA UNITOQUE DIARIA"),
("02V", "VALIJA BITOQUE DIARIA"),
("03V", "VALIJA UNITOQUE 3 DIAS"),
("04V", "VALIJA BITOQUE 3 DÍAS... | 35.7 | 2,142 |
9,799 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from lxml import etree
from zeep import Client
from zeep.helpers import serialize_object
from zeep.plugins import HistoryPlugin
_logger = logging.getLogger(__name__)
CTTEXPRESS_API_URL = {
"te... | 35.762774 | 9,799 |
720 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, models
class StockPicking(models.Model):
_inherit = "stock.picking"
def cttexpress_get_label(self):
"""Get label for current picking
:return tuple: (filename, filecon... | 30 | 720 |
12,268 | 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
from odoo.exceptions import UserError
from .cttexpress_master_data import (
CTTEXPRESS_DELIVERY_STATES_STATIC,
CTTEXPRESS_SERVICES,
)
from .cttexpress_request import... | 38.946032 | 12,268 |
2,168 | 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 CTTExpressPickupWizard(models.TransientModel):
_name = "cttexpress.pickup.wizard"
_description = "Generate shipping pickups"
carrier_id = fields.Many2one(
... | 37.37931 | 2,168 |
3,525 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import base64
from odoo import fields, models
class CTTExpressManifestWizard(models.TransientModel):
_name = "cttexpress.manifest.wizard"
_description = "Get the CTT Express Manifest for the given date r... | 40.056818 | 3,525 |
879 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Partner Delivery Zone",
"summary": "This module allows to create partner delivery zones for physical products",
"version": "15.0.1.1.0",
"development_status": "Beta",
"category": "D... | 36.625 | 879 |
6,875 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from lxml import etree
from odoo.tests import TransactionCase
class TestPartnerDeliveryZone(TransactionCase):
at_install = False
post_install = True
@classmethod
def setUpClass(cls):
s... | 40.441176 | 6,875 |
1,318 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class SaleOrder(models.Model):
_inherit = "sale.order"
delivery_zone_id = fields.Many2one(
comodel_name="partner.delivery.zone",
string="Delivery Zo... | 33.794872 | 1,318 |
383 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class PartnerDeliveryZone(models.Model):
_name = "partner.delivery.zone"
_description = "Partner delivery zone"
code = fields.Char()
name = fields.Char(string="Z... | 31.916667 | 383 |
805 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class StockMove(models.Model):
_inherit = "stock.move"
def get_original_move(self):
if self.move_dest_ids:
return self.move_dest_ids.get_original_move()
... | 32.2 | 805 |
1,279 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class StockPicking(models.Model):
_inherit = "stock.picking"
delivery_zone_id = fields.Many2one(
comodel_name="partner.delivery.zone",
string="Deliv... | 33.657895 | 1,279 |
1,516 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from lxml import etree
from odoo import api, fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
delivery_zone_id = fields.Many2one(
comodel_name="partner.delivery.zone",
... | 36.97561 | 1,516 |
1,093 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Routific Connector",
"summary": "Connector for Routific Platform",
"version": "15.0.1.0.0",
"development_status": "Production/Stable",
"category": "Inventory",
"website": "https://... | 37.689655 | 1,093 |
13,020 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import datetime
import json
from functools import partial
from unittest.mock import patch
import requests
import odoo
from odoo.exceptions import UserError
from odoo.tests.common import Form, TransactionCase
PAT... | 38.294118 | 13,020 |
9,689 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import json
from datetime import date, timedelta
from odoo import _, api, fields, models
from odoo.exceptions import UserError
class RoutificProject(models.Model):
_name = "routific.project"
_inherit = [... | 38.756 | 9,689 |
718 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class RoutificProjectDriver(models.Model):
"""Routifc creates new drivers for every project created."""
_name = "routific.project.driver"
_description = "Routific dr... | 32.636364 | 718 |
2,746 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from email_validator import validate_email
from odoo import fields, models
from odoo.addons.resource.models.resource import float_to_time
class StockPicking(models.Model):
_inherit = "stock.picking"
dr... | 40.382353 | 2,746 |
279 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProductAttribute(models.Model):
_inherit = "product.attribute"
is_routific_type = fields.Boolean(string="Is routific type")
| 31 | 279 |
4,868 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import requests
from odoo import _, api, fields, models
from odoo.exceptions import UserError
class RoutificConfig(models.Model):
_name = "routific.config"
_inherit = ["mail.thread", "mail.activity.mixin... | 40.533333 | 4,864 |
6,051 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import UserError
from odoo.addons.phone_validation.tools.phone_validation import phone_format
from odoo.addons.resource.models.resource import float_to_... | 37.583851 | 6,051 |
2,970 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from datetime import date, timedelta
from odoo import _, fields, models
from odoo.exceptions import UserError
class RoutificProjectCreator(models.TransientModel):
"""Wizard launched from stock.pickings that ... | 36.219512 | 2,970 |
646 | py | PYTHON | 15.0 | # Copyright 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza
# Copyright 2016-2017 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2017 Vicent Cubells <vicent.cubells@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Delivery costs in purchases",
"version": "15.0.1.... | 40.375 | 646 |
4,090 | py | PYTHON | 15.0 | # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo.tests import Form, common
class TestDeliveryPurchase(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.delivery_product = cls.env["product.product"].create(
{"name": "Deliv... | 38.584906 | 4,090 |
1,046 | py | PYTHON | 15.0 | # Copyright 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza
# Copyright 2016 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class PurchaseOrder(models.Model):
_inherit = "purchase.order"
carrier_id = fields.Many2one(
com... | 32.6875 | 1,046 |
2,147 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, models
class StockPicking(models.Model):
_inherit = "stock.picking"
def _send_confirmation_email(self):
for pick in self.filtered(
lambda r: r.carrier_id.integr... | 37.017241 | 2,147 |
6,007 | py | PYTHON | 15.0 | # Copyright 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import UserError, ValidationError
class DeliveryCarrier(models.Model):
_inherit = "delivery.carrier"
@api.model
def _get... | 37.080247 | 6,007 |
616 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Stock Picking Package Number",
"summary": "Set or compute number of packages for a picking",
"version": "15.0.1.1.0",
"category": "Delivery",
"website": "https://github.com/OCA/delive... | 34.222222 | 616 |
2,173 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import Form
from odoo.tests.common import TransactionCase
class TestDeliveryPackageNumber(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.produ... | 40.240741 | 2,173 |
788 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class StockImmediateTransfer(models.TransientModel):
_inherit = "stock.immediate.transfer"
number_of_packages = fields.Integer(
help="Set the number of packag... | 35.818182 | 788 |
562 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class StockPicking(models.Model):
_inherit = "stock.picking"
number_of_packages = fields.Integer(
string="Number of Packages",
compute="_compute_numbe... | 29.578947 | 562 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
1,487 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-delivery-carrier",
description="Meta package for oca-delivery-carrier Odoo addons",
version=version,
install_requires=[
'odoo-addon-base_delivery_carrier_label>=15.0dev,... | 43.735294 | 1,487 |
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 |
581 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Delivery cost in Picking Reports",
"summary": "Show delivery cost in delivery slip and picking operations " " reports",
"version": "15.0.1.0.0",
"category": "Stock",
"website": "h... | 38.733333 | 581 |
2,676 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import Form, common
class TestStockPickingReportDeliveryCost(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.partner = cls.env["res.... | 37.166667 | 2,676 |
943 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class StockPicking(models.Model):
_inherit = "stock.picking"
# Needed for fields.Monetary
currency_id = fields.Many2one(
related="sale_id.currency_id",... | 34.925926 | 943 |
652 | py | PYTHON | 15.0 | # Copyright 2020 Trey, Kilobytes de Soluciones
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Delivery Price Method",
"summary": "Provides fields to be able to contemplate the tracking states"
"and also adds a global fields",
"auth... | 40.75 | 652 |
4,509 | py | PYTHON | 15.0 | # Copyright 2020 Trey, Kilobytes de Soluciones
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import Form
from odoo.tests.common import TransactionCase
from odoo.tools import float_compare
class TestDeliveryPriceMethod(TransactionCase):
... | 37.890756 | 4,509 |
1,491 | py | PYTHON | 15.0 | # Copyright 2020 Trey, Kilobytes de Soluciones
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class DeliveryCarrier(models.Model):
_inherit = "delivery.carrier"
# pylint: disable=W8113
price_method = fields.Sele... | 36.365854 | 1,491 |
791 | py | PYTHON | 15.0 | # Copyright 2020 Trey, Kilobytes de Soluciones
# Copyright 2020 FactorLibre
# Copyright 2020 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Delivery State",
"summary": "Provides fields to be able to contemplate the tracking states"
"and also adds a global... | 32.958333 | 791 |
543 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
old_template = env.ref("delivery_state.delivery_notification")
new_template = env.ref("stock.mail_template... | 38.642857 | 541 |
446 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
"""Delete noupdate record because the xml_id is deprecated in favor of
stock.mail_template_data_delivery_confi... | 31.857143 | 446 |
4,594 | py | PYTHON | 15.0 | # Copyright 2020 Trey, Kilobytes de Soluciones
# Copyright 2020 FactorLibre
# Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields
from odoo.tests import Form
from odoo.tests.common import TransactionCase
from odoo.tools import float_compare... | 40.280702 | 4,592 |
560 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
delivery_state_delivered_email_validation = fields.Boolean(
string="Email Confirmation delivered pick... | 32.823529 | 558 |
3,247 | py | PYTHON | 15.0 | # Copyright 2020 Trey, Kilobytes de Soluciones
# Copyright 2020 FactorLibre
# Copyright 2020 Tecnativa - David Vidal
# Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class StockPicking(models.Model):
_inherit = "stoc... | 37.298851 | 3,245 |
548 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Víctor Martínez
# 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"
delivery_state_delivered_email_validation = fields.Boolean(
related="company_... | 36.4 | 546 |
838 | py | PYTHON | 15.0 | # Copyright 2020 Trey, Kilobytes de Soluciones
# Copyright 2020 FactorLibre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class DeliveryCarrier(models.Model):
_inherit = "delivery.carrier"
def send_shipping(self, pickings):
res = super().send_shippin... | 28.896552 | 838 |
728 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import SUPERUSER_ID, api
def post_init_hook(cr, registry):
"""Convert current ZIP field values to ZIP entries"""
env = api.Environment(cr, SUPERUSER_ID, dict())
carriers = (
env["... | 40.444444 | 728 |
556 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Multiple ZIP intervals for the same delivery method",
"version": "15.0.1.0.0",
"category": "Delivery",
"website": "https://github.com/OCA/delivery-carrier",
"author": "Tecnativa, O... | 39.714286 | 556 |
2,335 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import common
from odoo.addons.delivery_carrier_multi_zip.hooks import post_init_hook
class TestDeliveryCarrierMultiZip(common.TransactionCase):
@classmethod
def setUpClass(cls):
... | 43.240741 | 2,335 |
2,472 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class DeliveryCarrier(models.Model):
_inherit = "delivery.carrier"
zip_range_ids = fields.One2many(
comodel_name="delivery.carrier.zip",
inverse_n... | 33.405405 | 2,472 |
733 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Partner Delivery Schedule",
"summary": "Set on partners a schedule for delivery goods",
"version": "15.0.1.0.1",
"development_status": "Production/Stable",
"category": "Delivery",
... | 34.904762 | 733 |
3,793 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.exceptions import ValidationError
from odoo.tests import Form, TransactionCase
class TestStockPikingReturnRefundOption(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUp... | 37.93 | 3,793 |
2,788 | py | PYTHON | 15.0 | # Copyright 2018 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 ValidationError
class DeliverySchedule(models.Model):
_name = "delivery.schedule"
_description = "Delivery Schedule"
name = field... | 32.8 | 2,788 |
1,106 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
delivery_schedule_ids = fields.Many2many(
comodel_name="delivery.schedule",
column1="partner_id"... | 34.5625 | 1,106 |
781 | py | PYTHON | 15.0 | # Copyright 2013-2015 Yannick Vaucher (Camptocamp SA)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Base module for carrier labels",
"version": "15.0.1.0.1",
"author": "Camptocamp,Akretion,Odoo Community Association (OCA)",
"maintainer": "Camptocamp",
"category": "... | 33.956522 | 781 |
667 | py | PYTHON | 15.0 | # Copyright 2017 Angel Moya (PESOL)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields
from odoo.tests.common import TransactionCase
class ManifestWizardCase(TransactionCase):
def setUp(self):
super(ManifestWizardCase, self).setUp()
self.free_delivery = self.... | 35.105263 | 667 |
7,961 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestGetWeight(TransactionCase):
"""Test get_weight functions."""
# some helpers
def _create_order(self, customer):
return self.env["sale.order"].create({"partner_id": customer.id}... | 35.540179 | 7,961 |
1,527 | py | PYTHON | 15.0 | # Copyright 2020 Hunki Enterprises BV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import base64
from unittest import mock
from odoo.tests.common import Form, TransactionCase
class TestSend(TransactionCase):
"""Test sending a picking"""
def test_send(self):
"""Test if the module ... | 37.243902 | 1,527 |
3,241 | py | PYTHON | 15.0 | # Copyright 2020 Hunki Enterprises BV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.exceptions import UserError
from odoo.tests.common import TransactionCase
class CarrierLabelCase(TransactionCase):
"""Base class for carrier label tests. Inherit and override _get_carrier
to retur... | 33.071429 | 3,241 |
3,119 | py | PYTHON | 15.0 | # Copyright 2020 Hunki Enterprises BV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import base64
from odoo.tests.common import TransactionCase
class TestHelperFunctions(TransactionCase):
"""Test convenience functions on stock.picking"""
def test_get_carrier_account(self):
"""Test... | 37.130952 | 3,119 |
1,093 | py | PYTHON | 15.0 | # Copyright 2015 FactorLibre (http://www.factorlibre.com)
# Ismael Calvo <ismael.calvo@factorlibre.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import _, fields, models
class ManifestWizard(models.TransientModel):
_name = "manifest.wizard"
_description = "Delive... | 33.121212 | 1,093 |
1,598 | py | PYTHON | 15.0 | # Copyright 2014-TODAY Florian da Costa Akretion <http://www.akretion.com>.
# Copyright 2014 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class CarrierAccount(models.Model):
_name = "carrier.account"
_description = "Base account data... | 36.318182 | 1,598 |
1,551 | py | PYTHON | 15.0 | # Copyright 2016 Hpar
# Copyright 2016 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from odoo import fields, models
_logger = logging.getLogger(__name__)
class StockMoveLine(models.Model):
_inherit = "stock.move.line"
weight = fields.Float(digits="Stock Wei... | 32.3125 | 1,551 |
698 | py | PYTHON | 15.0 | # Copyright 2013-2016 Camptocamp SA
# Copyright 2014 Akretion <http://www.akretion.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ShippingLabel(models.Model):
"""Child class of ir attachment to identify which are labels"""
_name = "shipping.label"... | 31.727273 | 698 |
1,828 | py | PYTHON | 15.0 | # Copyright 2012 Akretion <http://www.akretion.com>.
# Copyright 2013-2016 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class DeliveryCarrierOption(models.Model):
"""Option selected for a carrier method
Those options define the list of a... | 34.490566 | 1,828 |
7,916 | py | PYTHON | 15.0 | # Copyright 2012-2015 Akretion <http://www.akretion.com>.
# Copyright 2013-2016 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from odoo import _, api, fields, models
from odoo.exceptions import UserError
_logger = logging.getLogger(__name__)
class StockPicking(models... | 38.057692 | 7,916 |
2,031 | py | PYTHON | 15.0 | # Copyright 2012 Akretion <http://www.akretion.com>.
# Copyright 2013-2016 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class DeliveryCarrier(models.Model):
_inherit = "delivery.carrier"
available_option_ids = fields.One2many(
comodel... | 42.3125 | 2,031 |
1,790 | py | PYTHON | 15.0 | # Copyright 2014-2015 Akretion <http://www.akretion.com>
# Copyright 2014-2016 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class StockQuantPackage(models.Model):
_inherit = "stock.quant.package"
parcel_tracking = fields.Char()
parce... | 35.098039 | 1,790 |
705 | py | PYTHON | 15.0 | # Copyright 2012 Akretion <http://www.akretion.com>.
# Copyright 2013-2016 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class DeliveryCarrierTemplateOption(models.Model):
"""Available options for a carrier (partner)"""
_name = "delivery.carri... | 35.25 | 705 |
600 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Vicent Cubells
# Copyright 2019 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Delivery Free Fee Removal",
"summary": "Hide free fee lines on sales orders",
"version": "15.0.1.0.0",
"category": "Delivery",
"website"... | 40 | 600 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.