size int64 0 304k | ext stringclasses 1
value | lang stringclasses 1
value | branch stringclasses 1
value | content stringlengths 0 304k | avg_line_length float64 0 238 | max_line_length int64 0 304k |
|---|---|---|---|---|---|---|
2,263 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class FSMLocationBuilderWizard(models.TransientModel):
_name = "fsm.location.builder.wizard"
_description = "FSM Location Builder Wizard"
level_ids = fields.One2man... | 39.701754 | 2,263 |
1,122 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class FSMLocationLevel(models.TransientModel):
_name = "fsm.location.level"
_description = "Level in the FSM location tree structure"
sequence = fields.Integer... | 40.071429 | 1,122 |
1,134 | py | PYTHON | 15.0 | # Copyright (C) 2019 Brian McMaster, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Field Service Recurring Work Orders",
"summary": "Manage recurring Field Service orders",
"version": "15.0.1.0.0",
"category": "Field Service",
"author": "Brian Mc... | 33.352941 | 1,134 |
10,679 | 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 datetime import datetime
from dateutil.relativedelta import relativedelta
from dateutil.rrule import WEEKLY, rrule
from odoo import fields
from odoo.exceptions import UserError
from odo... | 36.323129 | 10,679 |
1,186 | py | PYTHON | 15.0 | # Copyright (C) 2019 Brian McMaster, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from datetime import timedelta
from odoo import api, fields, models
class FSMOrder(models.Model):
_inherit = "fsm.order"
fsm_recurring_id = fields.Many2one(
"fsm.recurring", ... | 32.054054 | 1,186 |
881 | py | PYTHON | 15.0 | # Copyright (C) 2019 Brian McMaster, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class FSMRecurringTemplate(models.Model):
_name = "fsm.recurring.template"
_description = "Recurring Field Service Order Template"
_inherit = "mail.... | 36.708333 | 881 |
5,453 | py | PYTHON | 15.0 | # Copyright (C) 2019 Brian McMaster, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from dateutil.rrule import (
DAILY,
FR,
MO,
MONTHLY,
SA,
SU,
TH,
TU,
WE,
WEEKLY,
YEARLY,
rrule,
)
from odoo import _, api, fields, models
from od... | 30.80791 | 5,453 |
1,566 | py | PYTHON | 15.0 | # Copyright (C) 2019 Brian McMaster, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from dateutil.rrule import rruleset
from odoo import fields, models
class FSMFrequencySet(models.Model):
_name = "fsm.frequency.set"
_description = "Frequency Rule Set for Field Servi... | 33.319149 | 1,566 |
10,262 | py | PYTHON | 15.0 | # Copyright (C) 2019 Brian McMaster, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from datetime import datetime
from dateutil.relativedelta import relativedelta
from dateutil.rrule import rruleset
from odoo import _, api, fields, models
class FSMRecurringOrder(models.Mode... | 37.181159 | 10,262 |
713 | py | PYTHON | 15.0 | # Copyright (C) 2018 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Field Service - Accounting",
"summary": "Track invoices linked to Field Service orders",
"version": "15.0.1.0.0",
"category": "Field Service",
"author": "Open Source Integrators, ... | 35.65 | 713 |
7,030 | 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 datetime import datetime, timedelta
from odoo.tests.common import TransactionCase
class FSMAccountCase(TransactionCase):
def setUp(self):
super(FSMAccountCase, self).setUp(... | 41.352941 | 7,030 |
1,298 | py | PYTHON | 15.0 | # Copyright (C) 2018, Open Source Integrators
# Copyright 2019 Akretion <raphael.reverdy@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class AccountMove(models.Model):
_inherit = "account.move"
fsm_order_ids = fields.Many2many(
"fs... | 36.055556 | 1,298 |
1,476 | py | PYTHON | 15.0 | # Copyright (C) 2018 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class FSMOrder(models.Model):
_inherit = "fsm.order"
invoice_lines = fields.Many2many(
"account.move.line",
"fsm_order_account_move_line_rel",
... | 30.75 | 1,476 |
465 | py | PYTHON | 15.0 | # Copyright 2019 Akretion <raphael.reverdy@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AccountMoveLine(models.Model):
_inherit = "account.move.line"
fsm_order_ids = fields.Many2many(
"fsm.order",
"fsm_order_account_move_... | 25.833333 | 465 |
675 | py | PYTHON | 15.0 | # Copyright (C) 2021 - Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Field Service - Flow for ISP",
"summary": "Field Service workflow for Internet Service Providers",
"version": "15.0.1.0.0",
"category": "Field Service",
"author": "Open Source Integrators, " "... | 30.681818 | 675 |
4,462 | py | PYTHON | 15.0 | # Copyright (C) 2021 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from datetime import timedelta
from odoo import fields
from odoo.exceptions import ValidationError
from odoo.tests.common import Form, TransactionCase
class FSMIspFlowCase(TransactionCase):
... | 38.465517 | 4,462 |
3,774 | py | PYTHON | 15.0 | # Copyright (C) 2021 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, models
from odoo.exceptions import ValidationError
class FSMOrder(models.Model):
_inherit = "fsm.order"
def action_confirm(self):
return self.write(
{... | 34.944444 | 3,774 |
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 |
2,295 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-field-service",
description="Meta package for oca-field-service Odoo addons",
version=version,
install_requires=[
'odoo-addon-base_territory>=15.0dev,<15.1dev',
... | 48.829787 | 2,295 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
851 | py | PYTHON | 15.0 | # Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Field Service - Skills",
"summary": "Manage your Field Service workers skills",
"version": "15.0.1.0.0",
"category": "Field Service",
"license": "AGPL-3",
"author": "... | 34.04 | 851 |
8,638 | py | PYTHON | 15.0 | # Copyright 2020, Brian McMaster <brian@mcmpest.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
class TestFSMSkill(TransactionCase):
def setUp(self):
super(TestFSMSkill, self).setUp()
... | 39.085973 | 8,638 |
287 | py | PYTHON | 15.0 | # Copyright (C) 2018, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class FSMPerson(models.Model):
_inherit = "fsm.person"
skill_ids = fields.One2many("fsm.person.skill", "person_id", string="Skills")
| 28.7 | 287 |
280 | py | PYTHON | 15.0 | # Copyright (C) 2018, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class FSMTemplate(models.Model):
_inherit = "fsm.template"
skill_ids = fields.Many2many("hr.skill", string="Required Skills")
| 28 | 280 |
2,038 | py | PYTHON | 15.0 | # Copyright (C) 2018, Open Source Integrators
# Copyright (C) 2020, Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class FSMPersonSkill(models.Model):
_name = "fsm.person.skill"
_rec_name = "sk... | 37.740741 | 2,038 |
1,897 | py | PYTHON | 15.0 | # Copyright (C) 2018, Open Source Integrators
# Copyright (C) 2020, Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from odoo import api, fields, models
_logger = logging.getLogger(__name__)
class FSMOrder(models.Model):
_inherit = "fsm.order"
skill_ids = field... | 34.490909 | 1,897 |
280 | py | PYTHON | 15.0 | # Copyright (C) 2018, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class FSMCategory(models.Model):
_inherit = "fsm.category"
skill_ids = fields.Many2many("hr.skill", string="Required Skills")
| 28 | 280 |
276 | py | PYTHON | 15.0 | # Copyright (C) 2020, Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class HRSkill(models.Model):
_inherit = "hr.skill"
color = fields.Integer(
string="Color Index",
default=10,
)
| 21.230769 | 276 |
895 | py | PYTHON | 15.0 | # Copyright (C) 2020, Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Field Service - Stock Equipment",
"summary": "Integrate stock operations with your field service equipments",
"version": "15.0.1.0.0",
"category": "Field Service",
"author": "Open Source ... | 28.870968 | 895 |
1,837 | py | PYTHON | 15.0 | # Copyright (C) 2021 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestStockMove(TransactionCase):
def setUp(self):
super(TestStockMove, self).setUp()
self.Move = self.env["stock.move"]
self.stoc... | 36.019608 | 1,837 |
2,918 | py | PYTHON | 15.0 | # Copyright (C) 2020 - TODAY, Marcel Savegnago (Escodoo)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import Form, TransactionCase
class TestFSMEquipment(TransactionCase):
def setUp(self):
super(TestFSMEquipment, self).setUp()
self.Equipment = self.env["fs... | 34.329412 | 2,918 |
301 | py | PYTHON | 15.0 | # Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
create_fsm_equipment = fields.Boolean(string="Creates a FSM Equipment")
| 30.1 | 301 |
446 | py | PYTHON | 15.0 | # Copyright (C) 2020 Open Source Integrators, Daniel Reis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class StockPickingType(models.Model):
_inherit = "stock.picking.type"
create_fsm_equipment = fields.Boolean(
name="Create FSM Equipment",
h... | 34.307692 | 446 |
1,313 | py | PYTHON | 15.0 | # Copyright (C) 2018 Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class StockMove(models.Model):
_inherit = "stock.move"
def prepare_equipment_values(self, move_line):
move = move_line.move_id
return {
"name": "%s (%s)" % (... | 39.787879 | 1,313 |
337 | py | PYTHON | 15.0 | # Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class StockProductionLot(models.Model):
_inherit = "stock.production.lot"
fsm_equipment_id = fields.Many2one(
"fsm.equipment", string="Equipment", rea... | 28.083333 | 337 |
1,550 | py | PYTHON | 15.0 | # Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class FSMEquipment(models.Model):
_inherit = "fsm.equipment"
product_id = fields.Many2one("product.product", string="Product", required=True)
lot_id ... | 34.444444 | 1,550 |
748 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# Copyright (C) 2019 Serpent Consulting Services
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Field Service - Accounting Payment",
"summary": "Allow workers to collect payments from the order.",
"version": "15.0.1.0.0",
"category... | 34 | 748 |
5,714 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# Copyright (C) 2019 Serpent consulting Services
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from datetime import datetime, timedelta
from odoo.tests.common import TransactionCase
class FSMAccountPaymentCase(TransactionCase):
def setUp(self):
... | 42.641791 | 5,714 |
1,150 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# Copyright (C) 2019 Serpent Consulting Services
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class FSMOrder(models.Model):
_inherit = "fsm.order"
payment_ids = fields.Many2many(
"account.payment",
... | 32.857143 | 1,150 |
1,635 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# Copyright (C) 2019 Serpent Consulting Services
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class AccountPayment(models.Model):
_inherit = "account.payment"
fsm_order_ids = fields.Many2many(
"fsm.or... | 34.787234 | 1,635 |
935 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# Copyright (C) 2019 Serpent consulting Services
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Field Service Route",
"summary": "Organize the routes of each day.",
"version": "15.0.1.0.0",
"category": "Field Service",
"... | 33.392857 | 935 |
2,164 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# Copyright (C) 2019 Serpent consulting Services
# Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from datetime import datetime
from odoo.tests import Form, common
class FSMOrderRouteCase(common.Transactio... | 44.122449 | 2,162 |
340 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# Copyright (C) 2019 Serpent consulting Services
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class FSMLocation(models.Model):
_inherit = "fsm.location"
fsm_route_id = fields.Many2one(comodel_name="fsm.rout... | 30.909091 | 340 |
612 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# Copyright (C) 2019 Serpent consulting Services
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class FSMRouteDay(models.Model):
_name = "fsm.route.day"
_description = "Route Day"
name = fields.Selection(... | 27.818182 | 612 |
963 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# Copyright (C) 2019 Serpent consulting Services
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class FSMRoute(models.Model):
_name = "fsm.route"
_description = "Field Service Route"
name = fields.Char(req... | 34.392857 | 963 |
3,896 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# Copyright (C) 2019 Serpent consulting Services
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from datetime import datetime
from odoo import api, fields, models
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT
class FSMOrder(models.Model):
... | 37.104762 | 3,896 |
5,339 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# Copyright (C) 2019 Serpent consulting Services
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from datetime import datetime
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
from odoo.tools import DEFAULT_SERVER_DAT... | 37.598592 | 5,339 |
372 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# Copyright (C) 2019 Serpent consulting Services
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class FSMStage(models.Model):
_inherit = "fsm.stage"
stage_type = fields.Selection(
selection_add=[("rou... | 28.615385 | 372 |
896 | py | PYTHON | 15.0 | # Copyright (C) 2018 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Field Service - Sales",
"version": "15.0.2.0.2",
"summary": "Sell field services.",
"category": "Field Service",
"author": "Open Source Integrators, Odoo Community Association (OCA... | 28.903226 | 896 |
319 | py | PYTHON | 15.0 | # Copyright (C) 2021, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
def migrate(env, version):
if not version:
return
env.execute(
"UPDATE product_template SET field_service_tracking = 'sale' "
"WHERE field_service_tracking = 'order';"
)
| 26.583333 | 319 |
5,084 | py | PYTHON | 15.0 | # Copyright (C) 2019 Brian McMaster <brian@mcmpest.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.sale.tests.common import TestSaleCommonBase
class TestFSMSale(TestSaleCommonBase):
@classmethod
def setUpClass(cls):
super(TestFSMSale, cls).setUpClass()
@clas... | 39.410853 | 5,084 |
20,184 | py | PYTHON | 15.0 | # Copyright (C) 2019 Brian McMaster <brian@mcmpest.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields
from odoo.exceptions import ValidationError
from .test_fsm_sale_common import TestFSMSale
class TestFSMSaleOrder(TestFSMSale):
@classmethod
def setUpClass(cls):
... | 38.011299 | 20,184 |
4,343 | py | PYTHON | 15.0 | # Copyright (C) 2019 Clément Mombereau (Akretion)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from odoo.tests.common import TransactionCase
class FSMSale(TransactionCase):
def setUp(self):
"""Create 3 related partners : a parent company, a child partner and
a child shippin... | 40.962264 | 4,342 |
7,007 | py | PYTHON | 15.0 | # Copyright (C) 2019 Brian McMaster
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class SaleOrder(models.Model):
_inherit = "sale.order"
fsm_location_id = fields.... | 40.50289 | 7,007 |
702 | py | PYTHON | 15.0 | # Copyright (C) 2019 Brian McMaster
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, fields, models
class FSMOrder(models.Model):
_inherit = "fsm.order"
sale_id = fields.Many2one("sale.order")
sale_line_id = fields.Many2one("... | 31.909091 | 702 |
2,392 | py | PYTHON | 15.0 | # Copyright (C) 2019 Brian McMaster
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
qty_delivered_method = fields.Selection(
selection_add=... | 35.176471 | 2,392 |
1,388 | py | PYTHON | 15.0 | # Copyright (C) 2019 Brian McMaster
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
service_type = fields.Selection(
selection_add=[
... | 35.589744 | 1,388 |
679 | py | PYTHON | 15.0 | # Copyright (C) 2021 Raphaël Reverdy <raphael.reverdy@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Field Service - Calendar",
"summary": "Add calendar to FSM Orders",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/fi... | 28.25 | 678 |
3,515 | py | PYTHON | 15.0 | # Copyright (C) 2021 Raphaël Reverdy <raphael.reverdy@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields
from odoo.tests.common import TransactionCase
class TestFSMOrder(TransactionCase):
def setUp(self):
super(TestFSMOrder, self).setUp()
self.Or... | 36.989474 | 3,514 |
4,281 | py | PYTHON | 15.0 | # Copyright (C) 2021 Raphaël Reverdy <raphael.reverdy@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class FSMOrder(models.Model):
_inherit = "fsm.order"
calendar_event_id = fields.Many2one(
"calendar.event",
string="Meeting... | 36.896552 | 4,280 |
1,733 | py | PYTHON | 15.0 | # Copyright (C) 2021 Raphaël Reverdy <raphael.reverdy@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class Meeting(models.Model):
_inherit = "calendar.event"
fsm_order_id = fields.One2many(
string="Order id",
comodel_name="fsm.or... | 33.307692 | 1,732 |
375 | py | PYTHON | 15.0 | # Copyright (C) 2021 Raphaël Reverdy <raphael.reverdy@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class FSMTeam(models.Model):
_inherit = "fsm.team"
calendar_user_id = fields.Many2one(
"res.users",
string="Team's calendar",
... | 26.714286 | 374 |
867 | py | PYTHON | 15.0 | # Copyright (C) 2018 Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Field Service - Stock",
"summary": "Integrate the logistics operations with Field Service",
"version": "15.0.1.0.1",
"category": "Field Service",
"author": "Open Source Integrators, "
... | 33.346154 | 867 |
569 | py | PYTHON | 15.0 | # Copyright (C) 2021 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class FSMWizard(TransactionCase):
"""
Test used to check that the base functionalities of Field Service Stock.
"""
def setUp(self):
... | 31.611111 | 569 |
6,702 | py | PYTHON | 15.0 | # Copyright (C) 2020, Brian McMaster
# Copyright (C) 2021 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from datetime import timedelta
from odoo import fields
from odoo.tests.common import TransactionCase
class TestFSMStockCommon(TransactionCase):
def setU... | 40.865854 | 6,702 |
787 | py | PYTHON | 15.0 | # Copyright (C) 2018 - TODAY, Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class FSMLocation(models.Model):
_inherit = "fsm.location"
inventory_location_id = fields.Many2one(
"stock.location",
string="Inventory Location",... | 34.217391 | 787 |
3,597 | py | PYTHON | 15.0 | # Copyright (C) 2018 - TODAY, Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class FSMOrder(models.Model):
_inherit = "fsm.order"
@api.model
def _default_warehouse_id(self):
company = self.env.user.company_id.id
warehou... | 37.46875 | 3,597 |
283 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResTerritory(models.Model):
_inherit = "res.territory"
warehouse_id = fields.Many2one("stock.warehouse", string="Warehouse")
| 31.444444 | 283 |
272 | py | PYTHON | 15.0 | # Copyright (C) 2018 Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class StockMove(models.Model):
_inherit = "stock.move"
fsm_order_id = fields.Many2one("fsm.order", string="Field Service Order")
| 30.222222 | 272 |
324 | py | PYTHON | 15.0 | # Copyright (C) 2018 Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class StockPicking(models.Model):
_inherit = "stock.picking"
fsm_order_id = fields.Many2one(
related="group_id.fsm_order_id", string="Field Service Order", store=True
... | 29.454545 | 324 |
279 | py | PYTHON | 15.0 | # Copyright (C) 2018 Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProcurementGroup(models.Model):
_inherit = "procurement.group"
fsm_order_id = fields.Many2one("fsm.order", "Field Service Order")
| 31 | 279 |
406 | py | PYTHON | 15.0 | # Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class FSMWizard(models.TransientModel):
_inherit = "fsm.wizard"
def _prepare_fsm_location(self, partner):
res = super()._prepare_fsm_location(partner)
... | 31.230769 | 406 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.