# License along with this program. If not, see <http://www.gnu.org/licenses/>. # from freppledb.menu import menu import freppledb.output.views.buffer import freppledb.output.views.demand import freppledb.output.views.problem import freppledb.output.views.constraint import freppledb.output.views.resource import freppledb.output.views.operation import freppledb.output.views.kpi # Adding reports. We use an index value to keep the same order of the entries in all languages. menu.addItem("reports", "inventory report", url="/buffer/", report=freppledb.output.views.buffer.OverviewReport, index=100) menu.addItem("reports", "resource report", url="/resource/", report=freppledb.output.views.resource.OverviewReport, index=200) menu.addItem("reports", "demand report", url="/demand/", report=freppledb.output.views.demand.OverviewReport, index=300) menu.addItem("reports", "operation report", url="/operation/",
# by the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see <http://www.gnu.org/licenses/>. # from django.utils.translation import ugettext_lazy as _ from django.conf import settings from freppledb.menu import menu from freppledb.admin import admin_site # Admin menu menu.addItem("admin", "admin_site", admin=admin_site, index=200) # User menu menu.addItem("user", "logout", url="/admin/logout/", label=_('Log out'), prefix=False, index=100) menu.addItem("user", "preferences", url="/preferences/", label=_('Preferences'), index=200) menu.addItem("user", "change password", url="/admin/password_change/", label=_('Change password'), index=300) # Help menu menu.addItem("help", "tour", javascript="tour.start('0,0,0')", label=_('Guided tour'), index=100) menu.addItem("help", "documentation", url="%sdoc/index.html" % settings.STATIC_URL, label=_('Documentation'), window=True, prefix=False, index=300) menu.addItem("help", "website", url="http://frepple.com", window=True, label=_('frePPLe website'), prefix=False, index=400)
from freppledb.input.models import OperationPlanMaterial, OperationPlanResource from freppledb.input.models import Demand, Operation, Resource, DistributionOrder, PurchaseOrder from freppledb.input.models import ManufacturingOrder, ItemDistribution, ItemSupplier import freppledb.output.views.buffer import freppledb.output.views.demand import freppledb.output.views.problem import freppledb.output.views.constraint import freppledb.output.views.resource import freppledb.output.views.operation import freppledb.output.views.kpi # Adding reports. We use an index value to keep the same order of the entries in all languages. menu.addItem( "sales", "demand report", url="/demand/", report=freppledb.output.views.demand.OverviewReport, index=200, dependencies=[Demand] ) menu.addItem( "sales", "problem report", url="/problem/?entity=demand", report=freppledb.output.views.problem.Report, index=400, dependencies=[Demand] ) menu.addItem( "sales", "constraint report", url="/constraint/", report=freppledb.output.views.constraint.BaseReport, index=500, dependencies=[Demand] ) menu.addItem( "admin", "kpi report", url="/kpi/", report=freppledb.output.views.kpi.Report, index=200
PurchaseOrder, ) from freppledb.input.models import ManufacturingOrder, ItemDistribution, ItemSupplier import freppledb.output.views.buffer import freppledb.output.views.demand import freppledb.output.views.problem import freppledb.output.views.constraint import freppledb.output.views.resource import freppledb.output.views.operation import freppledb.output.views.kpi # Adding reports. We use an index value to keep the same order of the entries in all languages. menu.addItem( "sales", "demand report", url="/demand/", report=freppledb.output.views.demand.OverviewReport, index=200, dependencies=[Demand], ) menu.addItem( "sales", "problem report", url="/problem/?entity=demand", report=freppledb.output.views.problem.Report, index=400, dependencies=[Demand], ) menu.addItem( "sales", "constraint report", url="/constraint/",
request.database).filter(Q(user=request.user) | Q(public=True)).order_by("name")): result.append(( index, x.name, MenuItem( x.name, url="/reportmanager/%s/" % x.id, label=x.name, index=index, prefix=request.prefix, ), )) index += 1 return result menu.addGroup("myreports", label=_("my reports"), index=750) menu.addItem("myreports", "myreports", callback=MyReports, index=100) menu.addItem("myreports", "data", separator=True, index=1000) menu.addItem( "myreports", "reportmanager", url="/data/reportmanager/sqlreport/", report=ReportList, permission="reportmanager.change_sqlreport", model=SQLReport, index=1100, admin=True, )
# License along with this program. If not, see <http://www.gnu.org/licenses/>. # from freppledb.menu import menu import freppledb.input.views from freppledb.input.models import Buffer, Item, Customer, Location, Demand from freppledb.input.models import DistributionOrder, ManufacturingOrder, CalendarBucket from freppledb.input.models import PurchaseOrder, Supplier, ItemSupplier, OperationMaterial from freppledb.input.models import ItemDistribution, Skill, Resource, OperationResource from freppledb.input.models import ResourceSkill, SetupMatrix, SubOperation from freppledb.input.models import Calendar, Operation menu.addItem("inventory", "locations", url="/data/input/location/", report=freppledb.input.views.LocationList, index=1100, model=Location) menu.addItem("inventory", "buffer admin", url="/data/input/buffer/", report=freppledb.input.views.BufferList, index=1200, model=Buffer) menu.addItem("sales", "demand", url="/data/input/demand/", report=freppledb.input.views.DemandList, index=100, model=Demand) menu.addItem("sales",
# Copyright (C) 2013 by frePPLe bvba # # This library is free software; you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see <http://www.gnu.org/licenses/>. # from freppledb.menu import menu from freppledb.admin import data_site # Admin menu menu.addItem("input", "data_site", admin=data_site, index=100)
# Copyright (C) 2019 by frePPLe bvba # # This library is free software; you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see <http://www.gnu.org/licenses/>. # from django.utils.translation import gettext_lazy as _ from freppledb.menu import menu from .views import ExecuteSQL menu.addGroup("custom", label=_("custom"), index=750) menu.addItem( "custom", "executesql", url="/executesql/", report=ExecuteSQL, label=_("Execute SQL"), index=1100, )
# Copyright (C) 2013 by frePPLe bvba # # This library is free software; you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see <http://www.gnu.org/licenses/>. # from django.utils.translation import ugettext_lazy as _ from django.conf import settings from freppledb.menu import menu from freppledb.admin import admin_site # Admin menu menu.addItem("admin", "admin_site", admin=admin_site, index=200) # Help menu menu.addItem("help", "tour", javascript="tour.start('0,0,0')", label=_('Guided tour'), index=100) menu.addItem("help", "documentation", url="%sdoc/index.html" % settings.STATIC_URL, label=_('Documentation'), window=True, prefix=False, index=300) menu.addItem("help", "website", url="http://frepple.com", window=True, label=_('frePPLe website'), prefix=False, index=400)
# License along with this program. If not, see <http://www.gnu.org/licenses/>. # from django.utils.translation import ugettext_lazy as _ from django.conf import settings from django.contrib.auth.models import Group import freppledb.common.views from freppledb.common.models import User, Bucket, BucketDetail, Parameter, Comment from freppledb.menu import menu from freppledb import VERSION # Settings menu menu.addItem( "admin", "parameter admin", url="/data/common/parameter/", report=freppledb.common.views.ParameterList, index=1100, model=Parameter ) menu.addItem( "admin", "bucket admin", url="/data/common/bucket/", report=freppledb.common.views.BucketList, index=1200, model=Bucket ) menu.addItem( "admin", "bucketdetail admin", url="/data/common/bucketdetail/", report=freppledb.common.views.BucketDetailList, index=1300, model=BucketDetail ) menu.addItem( "admin", "comment admin", url="/data/common/comment/", report=freppledb.common.views.CommentList, index=1400, model=Comment ) # User maintenance
# License along with this program. If not, see <http://www.gnu.org/licenses/>. # from freppledb.menu import menu import freppledb.input.views from freppledb.input.models import Buffer, Item, Customer, Location, Demand from freppledb.input.models import DistributionOrder, OperationPlan, CalendarBucket from freppledb.input.models import PurchaseOrder, Supplier, ItemSupplier,Flow from freppledb.input.models import ItemDistribution, Skill, Resource, Load from freppledb.input.models import ResourceSkill, SetupMatrix, SubOperation from freppledb.input.models import Calendar, Operation menu.addItem( "inventory", "buffer admin", url="/data/input/buffer/", report=freppledb.input.views.BufferList, index=1100, model=Buffer ) menu.addItem( "sales", "demand", url="/data/input/demand/", report=freppledb.input.views.DemandList, index=100, model=Demand ) menu.addItem( "sales", "item", url="/data/input/item/", report=freppledb.input.views.ItemList, index=1100, model=Item ) menu.addItem( "sales", "customer", url="/data/input/customer/", report=freppledb.input.views.CustomerList, index=1200, model=Customer ) menu.addItem( "purchasing", "purchase orders", url="/data/input/purchaseorder/",
# This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see <http://www.gnu.org/licenses/>. # from freppledb.menu import menu import freppledb.output.views.buffer import freppledb.output.views.demand import freppledb.output.views.problem import freppledb.output.views.constraint import freppledb.output.views.resource import freppledb.output.views.operation import freppledb.output.views.kpi # Adding reports. We use an index value to keep the same order of the entries in all languages. menu.addItem("reports", "inventory report", url="/buffer/", report=freppledb.output.views.buffer.OverviewReport, index=100) menu.addItem("reports", "resource report", url="/resource/", report=freppledb.output.views.resource.OverviewReport, index=200) menu.addItem("reports", "demand report", url="/demand/", report=freppledb.output.views.demand.OverviewReport, index=300) menu.addItem("reports", "operation report", url="/operation/", report=freppledb.output.views.operation.OverviewReport, index=400) menu.addItem("reports", "operation detail report", url="/operationplan/", report=freppledb.output.views.operation.DetailReport, index=500) menu.addItem("reports", "resource detail report", url="/loadplan/", report=freppledb.output.views.resource.DetailReport, index=600) menu.addItem("reports", "inventory detail report", url="/flowplan/", report=freppledb.output.views.buffer.DetailReport, index=700) menu.addItem("reports", "demand detail report", url="/demandplan/", report=freppledb.output.views.demand.DetailReport, index=800) menu.addItem("reports", "problem report", url="/problem/", report=freppledb.output.views.problem.Report, index=900) menu.addItem("reports", "constraint report", url="/constraint/", report=freppledb.output.views.constraint.BaseReport, index=1000) menu.addItem("reports", "kpi report", url="/kpi/", report=freppledb.output.views.kpi.Report, index=1100)
# Copyright (C) 2013 by frePPLe bvba # # This library is free software; you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see <http://www.gnu.org/licenses/>. # from django.utils.translation import ugettext_lazy as _ from django.conf import settings from freppledb.menu import menu from freppledb.admin import admin_site # Admin menu menu.addItem("admin", "admin_site", admin=admin_site, index=1100) # Help menu menu.addItem("help", "tour", javascript="tour.start('0,0,0')", label=_('Guided tour'), index=100) menu.addItem("help", "documentation", url="%sdoc/index.html" % settings.STATIC_URL, label=_('Documentation'), window=True, prefix=False, index=300) menu.addItem("help", "website", url="http://frepple.com", window=True, label=_('frePPLe website'), prefix=False, index=400)
# You should have received a copy of the GNU Affero General Public # License along with this program. If not, see <http://www.gnu.org/licenses/>. # from django.conf import settings from django.utils.translation import ugettext_lazy as _ import freppledb.common.views from freppledb.common.models import User, Bucket, BucketDetail, Parameter, Comment from freppledb.menu import menu from freppledb import VERSION # Settings menu menu.addItem( "admin", "parameter admin", url="/data/common/parameter/", report=freppledb.common.views.ParameterList, index=1100, model=Parameter ) menu.addItem( "admin", "bucket admin", url="/data/common/bucket/", report=freppledb.common.views.BucketList, index=1200, model=Bucket ) menu.addItem( "admin", "bucketdetail admin", url="/data/common/bucketdetail/", report=freppledb.common.views.BucketDetailList, index=1300, model=BucketDetail ) menu.addItem( "admin", "comment admin", url="/data/common/comment/", report=freppledb.common.views.CommentList, index=1400, model=Comment ) # User maintenance
# Copyright (C) 2013 by frePPLe bvba # # This library is free software; you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see <http://www.gnu.org/licenses/>. # from django.utils.translation import ugettext_lazy as _ from freppledb.menu import menu # Add an item to the Admin menu menu.addItem("admin", "execute", url="/execute/", label=_('Execute'), index=100)
# General Public License for more details. # # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see <http://www.gnu.org/licenses/>. # from freppledb.menu import menu import freppledb.output.views.buffer import freppledb.output.views.demand import freppledb.output.views.problem import freppledb.output.views.constraint import freppledb.output.views.resource import freppledb.output.views.operation import freppledb.output.views.kpi # Adding reports. We use an index value to keep the same order of the entries in all languages. menu.addItem("sales", "demand report", url="/demand/", report=freppledb.output.views.demand.OverviewReport, index=200) menu.addItem("sales", "demand detail report", url="/demandplan/", report=freppledb.output.views.demand.DetailReport, index=300) menu.addItem("sales", "problem report", url="/problem/?entity=demand", report=freppledb.output.views.problem.Report, index=400) menu.addItem("sales", "constraint report", url="/constraint/", report=freppledb.output.views.constraint.BaseReport, index=500) menu.addItem("admin", "kpi report", url="/kpi/", report=freppledb.output.views.kpi.Report, index=200) menu.addItem("inventory", "inventory report", url="/buffer/", report=freppledb.output.views.buffer.OverviewReport, index=100) menu.addItem("inventory", "inventory detail report", url="/flowplan/", report=freppledb.output.views.buffer.DetailReport, index=200) menu.addItem("inventory", "problem report", url="/problem/?entity=material", report=freppledb.output.views.problem.Report, index=300) menu.addItem("capacity", "resource report", url="/resource/", report=freppledb.output.views.resource.OverviewReport, index=100) menu.addItem("capacity", "resource detail report", url="/loadplan/", report=freppledb.output.views.resource.DetailReport, index=200) menu.addItem("capacity", "problem report", url="/problem/?entity=capacity", report=freppledb.output.views.problem.Report, index=300) menu.addItem("manufacturing", "operation report", url="/operation/", report=freppledb.output.views.operation.OverviewReport, index=100) menu.addItem("manufacturing", "problem report", url="/problem/?entity=operation", report=freppledb.output.views.problem.Report, index=200) menu.addItem("admin", "problem report", url="/problem/?name=invalid%20data", report=freppledb.output.views.problem.Report, index=400)
# Copyright (C) 2013 by frePPLe bvba # # This library is free software; you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see <http://www.gnu.org/licenses/>. # from django.utils.translation import gettext_lazy as _ from freppledb.menu import menu from .views import TaskReport menu.addItem( "admin", "execute", url="/execute/", label=_("Execute"), report=TaskReport, index=100, )
# Copyright (C) 2019 by frePPLe bvba # # This library is free software; you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see <http://www.gnu.org/licenses/>. # from django.utils.translation import gettext_lazy as _ from freppledb.menu import menu from .views import ExecuteSQL menu.addGroup("myreports", label=_("my reports"), index=750) menu.addItem( "myreports", "executesql", url="/executesql/", report=ExecuteSQL, label=_("Execute SQL"), index=1200, )
# Copyright (C) 2021 Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). """ This file is used to add customized entries to the menu. """ from django.utils.translation import ugettext as _ from freppledb.menu import menu from .models import My_Model from .views import MyModelList menu.addGroup("my_menu", label=_("My App"), index=1) menu.addItem( "my_menu", "my_model", url="/data/my_app/my_model/", report=MyModelList, index=100, model=My_Model, ) menu.addItem( "my_menu", "google", url="http://google.com", window=True, label=_("link to my company"), prefix=False, index=300, )
# # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see <http://www.gnu.org/licenses/>. # from django.utils.translation import ugettext_lazy as _ import freppledb.common.views from freppledb.common.models import User, Bucket, BucketDetail, Parameter, Comment from freppledb.menu import menu from freppledb import VERSION # Settings menu menu.addItem( "admin", "parameter admin", url="/data/common/parameter/", report=freppledb.common.views.ParameterList, index=1100, model=Parameter ) menu.addItem( "admin", "bucket admin", url="/data/common/bucket/", report=freppledb.common.views.BucketList, index=1200, model=Bucket ) menu.addItem( "admin", "bucketdetail admin", url="/data/common/bucketdetail/", report=freppledb.common.views.BucketDetailList, index=1300, model=BucketDetail ) menu.addItem( "admin", "comment admin", url="/data/common/comment/", report=freppledb.common.views.CommentList, index=1400, model=Comment ) # User maintenance
Comment, ) from freppledb.menu import menu from freppledb import __version__ def isDefaultDatabase(request): return getattr(request, "database", DEFAULT_DB_ALIAS) == DEFAULT_DB_ALIAS # Settings menu menu.addItem( "admin", "parameter admin", url="/data/common/parameter/", report=freppledb.common.views.ParameterList, index=1100, model=Parameter, admin=True, ) menu.addItem( "admin", "attribute admin", url="/data/common/attribute/", report=freppledb.common.views.AttributeList, index=1150, model=Attribute, admin=True, dependencies=[ isDefaultDatabase, ],
# from freppledb.menu import menu import freppledb.input.views from freppledb.input.models import Buffer, Item, Customer, Location, Demand from freppledb.input.models import DistributionOrder, ManufacturingOrder, CalendarBucket from freppledb.input.models import PurchaseOrder, Supplier, ItemSupplier, OperationMaterial from freppledb.input.models import ItemDistribution, Skill, Resource, OperationResource from freppledb.input.models import ResourceSkill, SetupMatrix, SetupRule, SubOperation from freppledb.input.models import Calendar, Operation, DeliveryOrder from freppledb.input.models import OperationPlanMaterial, OperationPlanResource menu.addItem("inventory", "inventory detail", url="/flowplan/", report=freppledb.input.views.InventoryDetail, index=200, model=OperationPlanMaterial) menu.addItem("inventory", "distribution orders", url="/data/input/distributionorder/", report=freppledb.input.views.DistributionOrderList, index=50, model=DistributionOrder, dependencies=[ItemDistribution]) menu.addItem("inventory", "buffer admin", url="/data/input/buffer/", report=freppledb.input.views.BufferList, index=1200, model=Buffer,
# Copyright (C) 2013 by Johan De Taeye, frePPLe bvba # # This library is free software; you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see <http://www.gnu.org/licenses/>. # from freppledb.menu import menu from freppledb.admin import data_site # Admin menu menu.addItem("input", "data_site", admin=data_site, index=100)